diff options
| author | Ha Thach <[email protected]> | 2020-08-22 19:12:11 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-08-22 19:12:11 +0700 |
| commit | 88da422c7ce8e9c78150fc033d3f62467c0a3617 (patch) | |
| tree | d875dcfd2107ac04bbddf775195763117e784dc5 /src/portable | |
| parent | 97ca7a95499447b8ab9be67d4340a14ba52801cf (diff) | |
| parent | 9d3a9cf546580907d0e72fd6e36e23050bcab850 (diff) | |
Merge pull request #493 from hathach/followup-490-samd11
add OPT_MCU_SAMD11
Diffstat (limited to 'src/portable')
| -rw-r--r-- | src/portable/microchip/samd/dcd_samd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/portable/microchip/samd/dcd_samd.c b/src/portable/microchip/samd/dcd_samd.c index d0cc8560a..f1dca88a5 100644 --- a/src/portable/microchip/samd/dcd_samd.c +++ b/src/portable/microchip/samd/dcd_samd.c @@ -27,7 +27,8 @@ #include "tusb_option.h" #if TUSB_OPT_DEVICE_ENABLED && \ - (CFG_TUSB_MCU == OPT_MCU_SAMD21 || CFG_TUSB_MCU == OPT_MCU_SAMD51 || CFG_TUSB_MCU == OPT_MCU_SAME5X) + (CFG_TUSB_MCU == OPT_MCU_SAMD11 || CFG_TUSB_MCU == OPT_MCU_SAMD21 || \ + CFG_TUSB_MCU == OPT_MCU_SAMD51 || CFG_TUSB_MCU == OPT_MCU_SAME5X) #include "sam.h" #include "device/dcd.h" @@ -113,7 +114,7 @@ void dcd_int_disable(uint8_t rhport) NVIC_DisableIRQ(USB_0_IRQn); } -#elif CFG_TUSB_MCU == OPT_MCU_SAMD21 +#elif CFG_TUSB_MCU == OPT_MCU_SAMD11 || CFG_TUSB_MCU == OPT_MCU_SAMD21 void dcd_int_enable(uint8_t rhport) { |
