tests: gadget0: delay between calls to trigger races
Attempt to be more brutal by delaying more often, instead of always promptly servicing the usb stack. This is implemented via using timer6 to do a known number of microseconds busy delay, and so only works on platforms that have reached at least core timer functionality, and provide the rcc_apb1_frequency variable. NOTE! This will _fail_ on devices using the st_usbfs drivers at present, but the code _should_ work, and the tests land to verify that the library fix, fixes the problem. (see subsequent commit)
This commit is contained in:
@@ -83,7 +83,7 @@ int main(void)
|
||||
ER_DPRINTF("bootup complete\n");
|
||||
gpio_clear(GPIOA, GPIO5);
|
||||
while (1) {
|
||||
usbd_poll(usbd_dev);
|
||||
gadget0_run(usbd_dev);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user