summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoey Castillo <[email protected]>2021-04-05 00:02:51 -0400
committerJoey Castillo <[email protected]>2021-04-09 17:33:14 -0400
commit7c8b4991f17809ec924e86914868a3043d13d34d (patch)
tree9675d1d13a87e3e0bcf6d3adedd042611fc7616a /src
parent1d20c84798305043c2783725a496070c39d2d966 (diff)
Add support for SAM L22 family
Diffstat (limited to 'src')
-rw-r--r--src/portable/microchip/samd/dcd_samd.c6
-rw-r--r--src/tusb_option.h1
2 files changed, 5 insertions, 2 deletions
diff --git a/src/portable/microchip/samd/dcd_samd.c b/src/portable/microchip/samd/dcd_samd.c
index 3cff92fcd..13e56453d 100644
--- a/src/portable/microchip/samd/dcd_samd.c
+++ b/src/portable/microchip/samd/dcd_samd.c
@@ -28,7 +28,8 @@
#if TUSB_OPT_DEVICE_ENABLED && \
(CFG_TUSB_MCU == OPT_MCU_SAMD11 || CFG_TUSB_MCU == OPT_MCU_SAMD21 || \
- CFG_TUSB_MCU == OPT_MCU_SAMD51 || CFG_TUSB_MCU == OPT_MCU_SAME5X)
+ CFG_TUSB_MCU == OPT_MCU_SAMD51 || CFG_TUSB_MCU == OPT_MCU_SAME5X || \
+ CFG_TUSB_MCU == OPT_MCU_SAML22)
#include "sam.h"
#include "device/dcd.h"
@@ -123,7 +124,8 @@ void dcd_int_disable(uint8_t rhport)
NVIC_DisableIRQ(USB_0_IRQn);
}
-#elif CFG_TUSB_MCU == OPT_MCU_SAMD11 || CFG_TUSB_MCU == OPT_MCU_SAMD21
+#elif CFG_TUSB_MCU == OPT_MCU_SAMD11 || CFG_TUSB_MCU == OPT_MCU_SAMD21 || \
+ CFG_TUSB_MCU == OPT_MCU_SAML22
void dcd_int_enable(uint8_t rhport)
{
diff --git a/src/tusb_option.h b/src/tusb_option.h
index 56950d364..7585a9ff6 100644
--- a/src/tusb_option.h
+++ b/src/tusb_option.h
@@ -60,6 +60,7 @@
#define OPT_MCU_SAMD51 201 ///< MicroChip SAMD51
#define OPT_MCU_SAME5X 203 ///< MicroChip SAM E5x
#define OPT_MCU_SAMG 202 ///< MicroChip SAMDG series
+#define OPT_MCU_SAML22 205 ///< MicroChip SAML22
// STM32
#define OPT_MCU_STM32F0 300 ///< ST STM32F0