summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2021-08-24 12:20:07 +0700
committerGitHub <[email protected]>2021-08-24 12:20:07 +0700
commitfc2ffed5c60513338188a36b66187b6b0ed35f93 (patch)
tree19a16e72364d257c283932ddbc6b788fa47ccda1 /src
parentea902493db49843dcdeca6bfa2b2efe540f44b2f (diff)
parent5bd7788950c8e7118d2394e7821f0486ca66aaab (diff)
Merge pull request #1044 from nxf58843/feature-k32l2b
Feature k32l2b
Diffstat (limited to 'src')
-rw-r--r--src/device/dcd_attr.h2
-rw-r--r--src/portable/nxp/khci/dcd_khci.c4
-rw-r--r--src/tusb_option.h1
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