mirror of
https://github.com/micropython/micropython.git
synced 2025-12-16 01:40:14 +01:00
samd: Switch TinyUSB to run via a scheduled task.
Previously the TinyUSB task was run in the ISR immediately after the interrupt handler. This approach gives very similar performance (no change in CDC throughput tests) but reduces the amount of time spent in the ISR, and allows TinyUSB callbacks to run in thread mode. This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <angus@redyak.com.au>
This commit is contained in:
committed by
Damien George
parent
bcbdee2357
commit
26d5032980
@@ -36,10 +36,6 @@ void samd_init(void);
|
||||
void samd_main(void);
|
||||
|
||||
void USB_Handler_wrapper(void);
|
||||
void USB_0_Handler_wrapper(void);
|
||||
void USB_1_Handler_wrapper(void);
|
||||
void USB_2_Handler_wrapper(void);
|
||||
void USB_3_Handler_wrapper(void);
|
||||
|
||||
void sercom_enable(Sercom *spi, int state);
|
||||
void sercom_register_irq(int sercom_id, void (*sercom_irq_handler));
|
||||
|
||||
Reference in New Issue
Block a user