summaryrefslogtreecommitdiff
path: root/hw/bsp/mbed1768
diff options
context:
space:
mode:
authorhathach <[email protected]>2022-06-06 12:51:10 +0700
committerhathach <[email protected]>2022-06-06 12:51:10 +0700
commit7187cd9a8528bfe2b570567ca2d0a2ae36b7c478 (patch)
tree69420646c32dea57cde33784e39fbb99fba35808 /hw/bsp/mbed1768
parentf626916a5733fc7beff29ff6f907433e28ff14e0 (diff)
fix ci, remove use of CFG_TUSB_RHPORT0_MODE in bsp
Diffstat (limited to 'hw/bsp/mbed1768')
-rw-r--r--hw/bsp/mbed1768/mbed1768.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/hw/bsp/mbed1768/mbed1768.c b/hw/bsp/mbed1768/mbed1768.c
index 7c2b37016..08cf3adbd 100644
--- a/hw/bsp/mbed1768/mbed1768.c
+++ b/hw/bsp/mbed1768/mbed1768.c
@@ -146,12 +146,12 @@ void board_init(void)
//--------------------------------------------------------------------+
void USB_IRQHandler(void)
{
- #if CFG_TUSB_RHPORT0_MODE & OPT_MODE_HOST
- tuh_int_handler(0);
+ #if CFG_TUD_ENABLED
+ tud_int_handler(0);
#endif
- #if CFG_TUSB_RHPORT0_MODE & OPT_MODE_DEVICE
- tud_int_handler(0);
+ #if CFG_TUH_ENABLED
+ tuh_int_handler(0);
#endif
}