diff options
| author | Greg Steiert <[email protected]> | 2021-08-23 16:17:57 -0700 |
|---|---|---|
| committer | Greg Steiert <[email protected]> | 2021-08-23 16:17:57 -0700 |
| commit | 86201f77be1c2fc058f7896b99d6069b4b0b12a5 (patch) | |
| tree | 3448419643e9e473b7f24fb49e50b1fb35127c83 /src | |
| parent | fb16e80e575a44828f5367f4fb7380162b0354f0 (diff) | |
initial commit of support for K32L2B
Diffstat (limited to 'src')
| -rw-r--r-- | src/device/dcd_attr.h | 2 | ||||
| -rw-r--r-- | src/portable/nxp/khci/dcd_khci.c | 4 | ||||
| -rw-r--r-- | src/tusb_option.h | 1 |
3 files changed, 5 insertions, 2 deletions
diff --git a/src/device/dcd_attr.h b/src/device/dcd_attr.h index 7772a6d96..a35fc0ac5 100644 --- a/src/device/dcd_attr.h +++ b/src/device/dcd_attr.h @@ -60,7 +60,7 @@ #elif TU_CHECK_MCU(MIMXRT10XX) #define DCD_ATTR_ENDPOINT_MAX 8 -#elif TU_CHECK_MCU(MKL25ZXX) +#elif TU_CHECK_MCU(MKL25ZXX) || TU_CHECK_MCU(K32L2BXX) #define DCD_ATTR_ENDPOINT_MAX 16 //------------- Nordic -------------// diff --git a/src/portable/nxp/khci/dcd_khci.c b/src/portable/nxp/khci/dcd_khci.c index 519b8fb7b..dce464fd2 100644 --- a/src/portable/nxp/khci/dcd_khci.c +++ b/src/portable/nxp/khci/dcd_khci.c @@ -26,7 +26,9 @@ #include "tusb_option.h" -#if TUSB_OPT_DEVICE_ENABLED && ( CFG_TUSB_MCU == OPT_MCU_MKL25ZXX ) +#if TUSB_OPT_DEVICE_ENABLED && ( \ + ( CFG_TUSB_MCU == OPT_MCU_MKL25ZXX ) || ( CFG_TUSB_MCU == OPT_MCU_K32L2BXX ) \ + ) #include "fsl_device_registers.h" #define KHCI USB0 diff --git a/src/tusb_option.h b/src/tusb_option.h index e189c65bb..d551765ae 100644 --- a/src/tusb_option.h +++ b/src/tusb_option.h @@ -108,6 +108,7 @@ // NXP Kinetis #define OPT_MCU_MKL25ZXX 1200 ///< NXP MKL25Zxx +#define OPT_MCU_K32L2BXX 1201 ///< NXP K32L2Bxx // Silabs #define OPT_MCU_EFM32GG 1300 ///< Silabs EFM32GG |
