diff options
| author | Ha Thach <[email protected]> | 2020-06-26 01:31:39 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-06-26 01:31:39 +0700 |
| commit | d489581debc9a9e63e242f4ab1528592c86c0b1b (patch) | |
| tree | fc1434ae07ace6b6367c278cb53d850b57fdc737 /src | |
| parent | d5bfb70b72279cc202a3a10920f8900382938fd6 (diff) | |
| parent | 504b152f88ad256492425f88041a526f48c32761 (diff) | |
Merge pull request #441 from hathach/add-same5x
added OPT_MCU_SAME5X option
Diffstat (limited to 'src')
| -rw-r--r-- | src/portable/microchip/samd/dcd_samd.c | 3 | ||||
| -rw-r--r-- | src/tusb_option.h | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/portable/microchip/samd/dcd_samd.c b/src/portable/microchip/samd/dcd_samd.c index a859b72b9..06959b98d 100644 --- a/src/portable/microchip/samd/dcd_samd.c +++ b/src/portable/microchip/samd/dcd_samd.c @@ -26,7 +26,8 @@ #include "tusb_option.h" -#if TUSB_OPT_DEVICE_ENABLED && (CFG_TUSB_MCU == OPT_MCU_SAMD51 || CFG_TUSB_MCU == OPT_MCU_SAMD21) +#if TUSB_OPT_DEVICE_ENABLED && \ + (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" diff --git a/src/tusb_option.h b/src/tusb_option.h index 0a227483f..6ce43f885 100644 --- a/src/tusb_option.h +++ b/src/tusb_option.h @@ -58,6 +58,7 @@ #define OPT_MCU_SAMD21 200 ///< MicroChip SAMD21 #define OPT_MCU_SAMD51 201 ///< MicroChip SAMD51 #define OPT_MCU_SAMG 202 ///< MicroChip SAMDG series +#define OPT_MCU_SAME5X 203 ///< MicroChip SAM E5x // STM32 #define OPT_MCU_STM32F0 300 ///< ST STM32F0 |
