summaryrefslogtreecommitdiff
path: root/src/portable
diff options
context:
space:
mode:
authorhathach <[email protected]>2023-03-18 19:50:24 +0700
committerhathach <[email protected]>2023-03-18 19:50:24 +0700
commit1fc203b085ba6ce2edef90e9dcc75ec72eaeb314 (patch)
tree880ed6819dec97ee830a7526b06a77766c21bf2f /src/portable
parent2d187777c0eb625ad7c63c21dd881ca7362363fc (diff)
more update to kinetis bsp
Diffstat (limited to 'src/portable')
-rw-r--r--src/portable/nxp/khci/hcd_khci.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/portable/nxp/khci/hcd_khci.c b/src/portable/nxp/khci/hcd_khci.c
index 27073dce7..6d25cd862 100644
--- a/src/portable/nxp/khci/hcd_khci.c
+++ b/src/portable/nxp/khci/hcd_khci.c
@@ -26,15 +26,14 @@
#include "tusb_option.h"
-#if CFG_TUH_ENABLED && \
- ( \
- ( CFG_TUSB_MCU == OPT_MCU_MKL25ZXX ) || \
- ( CFG_TUSB_MCU == OPT_MCU_K32L2AXX ) || \
- ( CFG_TUSB_MCU == OPT_MCU_K32L2BXX ) \
- )
+#if CFG_TUH_ENABLED && defined(TUP_USBIP_CHIPIDEA_FS)
-#include "fsl_device_registers.h"
-#define KHCI USB0
+#ifdef TUP_USBIP_CHIPIDEA_FS_KINETIS
+ #include "fsl_device_registers.h"
+ #define KHCI USB0
+#else
+ #error "MCU is not supported"
+#endif
#include "host/hcd.h"