Fix the condition related to CFG_TUH_WCH_USBIP_USBFS macro

This commit is contained in:
verylowfreq
2024-09-11 23:25:49 +09:00
parent 879f78a91d
commit 7ed5503a5c
2 changed files with 2 additions and 2 deletions

View File

@@ -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
}

View File

@@ -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"