shared/tinyusb: Wake main task if needed at end of USB ISR.
Signed-off-by: Andrew Leech <andrew@alelec.net>
This commit is contained in:
committed by
Damien George
parent
11bc7d0fc1
commit
548f88d2bd
@@ -24,7 +24,7 @@
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "py/mpconfig.h"
|
||||
#include "py/mphal.h"
|
||||
|
||||
#if MICROPY_HW_ENABLE_USBDEV
|
||||
|
||||
@@ -55,6 +55,7 @@ extern void __real_dcd_event_handler(dcd_event_t const *event, bool in_isr);
|
||||
TU_ATTR_FAST_FUNC void __wrap_dcd_event_handler(dcd_event_t const *event, bool in_isr) {
|
||||
__real_dcd_event_handler(event, in_isr);
|
||||
mp_usbd_schedule_task();
|
||||
mp_hal_wake_main_task_from_isr();
|
||||
}
|
||||
|
||||
TU_ATTR_FAST_FUNC void mp_usbd_schedule_task(void) {
|
||||
|
||||
Reference in New Issue
Block a user