diff options
| author | hathach <[email protected]> | 2021-01-23 00:59:50 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2021-01-23 00:59:50 +0700 |
| commit | c58c8c4229b04007cfe6b4d8cdbd59e06eaac7f2 (patch) | |
| tree | 3964a31342c7c4f9b40de1e9a9bd0c8d0e8060d3 /hw | |
| parent | a780a8762b8f8255cbb0fd775610f0cddd32ff9b (diff) | |
rp2040 cdc_msc work well
Diffstat (limited to 'hw')
| -rw-r--r-- | hw/bsp/rp2040/family.c | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/hw/bsp/rp2040/family.c b/hw/bsp/rp2040/family.c index bb9e88e33..e616acd19 100644 --- a/hw/bsp/rp2040/family.c +++ b/hw/bsp/rp2040/family.c @@ -83,6 +83,8 @@ void board_init(void) gpio_set_dir(LED_PIN, GPIO_OUT); // Button +#ifndef BUTTON_BOOTSEL +#endif // todo probably set up device mode? #if TUSB_OPT_DEVICE_ENABLED @@ -94,20 +96,6 @@ void board_init(void) #endif } -////--------------------------------------------------------------------+ -//// USB Interrupt Handler -////--------------------------------------------------------------------+ -//void USB_IRQHandler(void) -//{ -//#if CFG_TUSB_RHPORT0_MODE & OPT_MODE_HOST -// tuh_isr(0); -//#endif -// -//#if CFG_TUSB_RHPORT0_MODE & OPT_MODE_DEVICE -// tud_int_handler(0); -//#endif -//} - //--------------------------------------------------------------------+ // Board porting API //--------------------------------------------------------------------+ @@ -141,3 +129,9 @@ int board_uart_write(void const * buf, int len) } return 0; } + +//--------------------------------------------------------------------+ +// USB Interrupt Handler +// rp2040 implementation will install approriate handler when initializing +// tinyusb. There is no need to forward IRQ from application +//--------------------------------------------------------------------+ |
