diff options
| author | hathach <[email protected]> | 2023-03-18 18:30:51 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-03-18 18:30:51 +0700 |
| commit | 2d187777c0eb625ad7c63c21dd881ca7362363fc (patch) | |
| tree | 9a272ea3136071b036ee032dd7834b05d6908f59 /src/portable | |
| parent | b13b95a6705348947aa2117423788b5dc2289047 (diff) | |
merge kinetis into its own family in bsp
Diffstat (limited to 'src/portable')
| -rw-r--r-- | src/portable/nxp/khci/dcd_khci.c | 15 | ||||
| -rw-r--r-- | src/portable/nxp/khci/hcd_khci.c | 2 |
2 files changed, 8 insertions, 9 deletions
diff --git a/src/portable/nxp/khci/dcd_khci.c b/src/portable/nxp/khci/dcd_khci.c index 2678cdca1..52f4145f2 100644 --- a/src/portable/nxp/khci/dcd_khci.c +++ b/src/portable/nxp/khci/dcd_khci.c @@ -26,15 +26,14 @@ #include "tusb_option.h" -#if CFG_TUD_ENABLED && \ - ( \ - ( CFG_TUSB_MCU == OPT_MCU_MKL25ZXX ) || \ - ( CFG_TUSB_MCU == OPT_MCU_K32L2AXX ) || \ - ( CFG_TUSB_MCU == OPT_MCU_K32L2BXX ) \ - ) +#if CFG_TUD_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 "device/dcd.h" diff --git a/src/portable/nxp/khci/hcd_khci.c b/src/portable/nxp/khci/hcd_khci.c index 8ff1feff7..27073dce7 100644 --- a/src/portable/nxp/khci/hcd_khci.c +++ b/src/portable/nxp/khci/hcd_khci.c @@ -26,7 +26,7 @@ #include "tusb_option.h" -#if CFG_TUD_ENABLED && \ +#if CFG_TUH_ENABLED && \ ( \ ( CFG_TUSB_MCU == OPT_MCU_MKL25ZXX ) || \ ( CFG_TUSB_MCU == OPT_MCU_K32L2AXX ) || \ |
