diff options
| author | Rafael Silva <[email protected]> | 2021-06-11 22:50:00 +0100 |
|---|---|---|
| committer | Rafael Silva <[email protected]> | 2021-06-12 00:09:24 +0100 |
| commit | 776a7709474a0736ed21218c2ff84208745c58cc (patch) | |
| tree | fb64499b0dbd458208d1e370d0d0fb91a165c8df /src | |
| parent | 2196991df31f27dcf2bf71cc4bf743774ea395e8 (diff) | |
dcd: sam7x: rename family dcd to include the whole family
Signed-off-by: Rafael Silva <[email protected]>
Diffstat (limited to 'src')
| -rw-r--r-- | src/portable/microchip/sam7x/dcd_sam7x.c (renamed from src/portable/microchip/same70/dcd_same70.c) | 4 | ||||
| -rw-r--r-- | src/tusb_option.h | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/portable/microchip/same70/dcd_same70.c b/src/portable/microchip/sam7x/dcd_sam7x.c index 0ad9ad625..53ea796b4 100644 --- a/src/portable/microchip/same70/dcd_same70.c +++ b/src/portable/microchip/sam7x/dcd_sam7x.c @@ -27,7 +27,7 @@ #include "tusb_option.h" -#if CFG_TUSB_MCU == OPT_MCU_SAME70 +#if TUSB_OPT_DEVICE_ENABLED && CFG_TUSB_MCU == OPT_MCU_SAM7X #include "device/dcd.h" @@ -43,7 +43,7 @@ #endif // Dual bank can imporve performance, but need 2 times bigger packet buffer -// As SAME70 has only 4KB packet buffer, use with caution ! +// As SAM7x has only 4KB packet buffer, use with caution ! // Enable in FS mode as packets are smaller #ifndef USE_DUAL_BANK # if TUD_OPT_HIGH_SPEED diff --git a/src/tusb_option.h b/src/tusb_option.h index fb86d7f9c..2e1678ccf 100644 --- a/src/tusb_option.h +++ b/src/tusb_option.h @@ -61,7 +61,8 @@ #define OPT_MCU_SAME5X 203 ///< MicroChip SAM E5x #define OPT_MCU_SAMD11 204 ///< MicroChip SAMD11 #define OPT_MCU_SAML22 205 ///< MicroChip SAML22 -#define OPT_MCU_SAME70 206 ///< MicroChip SAME70 series +#define OPT_MCU_SAM7X 206 ///< MicroChip SAME70, S70, V70, V71 family + // STM32 #define OPT_MCU_STM32F0 300 ///< ST STM32F0 |
