diff options
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 +//--------------------------------------------------------------------+ |
