diff options
| author | Ha Thach <[email protected]> | 2021-04-11 12:39:54 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-04-11 12:39:54 +0700 |
| commit | cb1eee8b2d432ae5a9645edd7c9a932fe3972f1e (patch) | |
| tree | 17dd630b71336957a98dddc7dd9f1dde708bcda2 /src | |
| parent | 1d20c84798305043c2783725a496070c39d2d966 (diff) | |
| parent | 861fff00fff9b6cd1b67c58c862e4d10f8fb7502 (diff) | |
Merge pull request #776 from joeycastillo/master
Add support for SAM L22 family
Diffstat (limited to 'src')
| -rw-r--r-- | src/portable/microchip/samd/dcd_samd.c | 6 | ||||
| -rw-r--r-- | src/tusb_option.h | 1 |
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 |
