Made "usb tx done" notification bypass the usual bounce via the main thread, made higher samplerate achievable

This commit is contained in:
2018-02-08 21:31:06 +01:00
parent 4a2fcf17f0
commit 3c51c0633f
6 changed files with 34 additions and 14 deletions
+3 -3
View File
@@ -81,9 +81,9 @@ void TaskMain(void const * argument)
#endif
// CDC - config packets and data in/out
if (msg & (USBEVT_FLAG_EPx_IN(CDC_IN_EP))) {
USBD_CDC_DataIn(&hUsbDeviceFS, CDC_IN_EP);
}
// if (msg & (USBEVT_FLAG_EPx_IN(CDC_IN_EP))) {
// USBD_CDC_DataIn(&hUsbDeviceFS, CDC_IN_EP);
// }
if (msg & (USBEVT_FLAG_EPx_IN(CDC_CMD_EP))) {
USBD_CDC_DataIn(&hUsbDeviceFS, CDC_CMD_EP);
}