summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorverylowfreq <[email protected]>2024-09-11 23:25:49 +0900
committerverylowfreq <[email protected]>2025-03-16 10:13:25 +0900
commit7ed5503a5c2bc0b755d97303064614275e74ffb2 (patch)
tree5790a5758bc768aaada74b45152d3b9d31dc3e68
parent879f78a91df08f0b3c6df7f56d6dd2293455dbcd (diff)
Fix the condition related to CFG_TUH_WCH_USBIP_USBFS macro
-rw-r--r--hw/bsp/ch32v20x/family.c2
-rw-r--r--src/portable/wch/hcd_ch32_usbfs.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/hw/bsp/ch32v20x/family.c b/hw/bsp/ch32v20x/family.c
index 8a9ee6819..d674ccd6f 100644
--- a/hw/bsp/ch32v20x/family.c
+++ b/hw/bsp/ch32v20x/family.c
@@ -32,7 +32,7 @@ void USBHD_IRQHandler(void) {
#if CFG_TUD_WCH_USBIP_USBFS
tud_int_handler(0);
#endif
- #if CFG_TUH_WCH_USBIP_USBFS
+ #if defined(CFG_TUH_WCH_USBIP_USBFS) && CFG_TUH_WCH_USBIP_USBFS
tuh_int_handler(0);
#endif
}
diff --git a/src/portable/wch/hcd_ch32_usbfs.c b/src/portable/wch/hcd_ch32_usbfs.c
index b775d6eee..7e73f686f 100644
--- a/src/portable/wch/hcd_ch32_usbfs.c
+++ b/src/portable/wch/hcd_ch32_usbfs.c
@@ -26,7 +26,7 @@
#include "tusb_option.h"
-#if CFG_TUH_ENABLED && defined(TUP_USBIP_WCH_USBFS) && CFG_TUH_WCH_USBIP_USBFS
+#if CFG_TUH_ENABLED && defined(TUP_USBIP_WCH_USBFS) && defined(CFG_TUH_WCH_USBIP_USBFS) && CFG_TUH_WCH_USBIP_USBFS
#include "host/hcd.h"
#include "host/usbh.h"