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/portable/microchip | |
| parent | 1d20c84798305043c2783725a496070c39d2d966 (diff) | |
| parent | 861fff00fff9b6cd1b67c58c862e4d10f8fb7502 (diff) | |
Merge pull request #776 from joeycastillo/master
Add support for SAM L22 family
Diffstat (limited to 'src/portable/microchip')
| -rw-r--r-- | src/portable/microchip/samd/dcd_samd.c | 6 |
1 files changed, 4 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) { |
