@@ -294,7 +294,9 @@ int board_getchar(void) {
|
||||
#if CFG_TUH_ENABLED && defined(CFG_TUH_MAX3421) && CFG_TUH_MAX3421
|
||||
|
||||
void max3421_int_handler(uint gpio, uint32_t event_mask) {
|
||||
if (!(gpio == MAX3421_INTR_PIN && event_mask & GPIO_IRQ_EDGE_FALL)) return;
|
||||
if (!(gpio == MAX3421_INTR_PIN && event_mask & GPIO_IRQ_EDGE_FALL)) {
|
||||
return;
|
||||
}
|
||||
tuh_int_handler(BOARD_TUH_RHPORT, true);
|
||||
}
|
||||
|
||||
|
@@ -113,6 +113,7 @@ target_sources(tinyusb_host_base INTERFACE
|
||||
${TOP}/src/host/hub.c
|
||||
${TOP}/src/class/cdc/cdc_host.c
|
||||
${TOP}/src/class/hid/hid_host.c
|
||||
${TOP}/src/class/midi/midi_host.c
|
||||
${TOP}/src/class/msc/msc_host.c
|
||||
${TOP}/src/class/vendor/vendor_host.c
|
||||
)
|
||||
|
Reference in New Issue
Block a user