diff options
-rw-r--r-- | usb-benchmark-project/benchm_drv.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usb-benchmark-project/benchm_drv.c b/usb-benchmark-project/benchm_drv.c index c6295f0..ecf2f0c 100644 --- a/usb-benchmark-project/benchm_drv.c +++ b/usb-benchmark-project/benchm_drv.c @@ -30,7 +30,7 @@ void benchmark_drv_init(void) USBD_Init(); } -const uint8_t test_data[2048]; +static uint8_t test_data[8192]; static void wr_compl_cb(void *arg, unsigned char status, unsigned int transferred, unsigned int remain) { @@ -47,5 +47,10 @@ static void wr_compl_cb(void *arg, unsigned char status, unsigned int transferre void benchmark_start(uint8_t epnr) { + int i; + + for (i = 0; i < sizeof(test_data); i++) + test_data[i] = i & 0xff; + USBD_Write(epnr, &test_data, sizeof(test_data), wr_compl_cb, epnr); } |