rp2040 cdc_msc work well

This commit is contained in:
hathach
2021-01-23 00:59:50 +07:00
parent a780a8762b
commit c58c8c4229
4 changed files with 110 additions and 21 deletions

View File

@@ -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
//--------------------------------------------------------------------+