Skip to content

Commit b7f6c03

Browse files
authored
Merge pull request adafruit#11143 from dhalbert/same51-fixes
Handle SAME51 boards properly
2 parents b609318 + 536d52f commit b7f6c03

2 files changed

Lines changed: 6 additions & 29 deletions

File tree

ports/atmel-samd/mpconfigport.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@
6666
#define CIRCUITPY_MCU_FAMILY samd51
6767
#ifdef SAMD51
6868
#define MICROPY_PY_SYS_PLATFORM "MicroChip SAMD51"
69+
#elif defined(SAME51)
70+
#define MICROPY_PY_SYS_PLATFORM "MicroChip SAME51"
6971
#elif defined(SAME54)
7072
#define MICROPY_PY_SYS_PLATFORM "MicroChip SAME54"
7173
#endif

ports/atmel-samd/mpconfigport.mk

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@ endif # samd21
9595
######################################################################
9696

9797
######################################################################
98-
# Put samd51-only choices here.
98+
# Put samx5x-only choices here.
9999

100-
ifeq ($(CHIP_FAMILY),samd51)
100+
ifneq ($(filter $(CHIP_FAMILY),samd51 same51 same54),)
101101

102-
# No native touchio on SAMD51.
102+
# No native touchio on SAMx5x.
103103
CIRCUITPY_TOUCHIO_USE_NATIVE = 0
104104

105105
ifeq ($(CIRCUITPY_FULL_BUILD),0)
@@ -135,32 +135,7 @@ ifeq ($(CHIP_VARIANT),SAMD51G19A)
135135
CIRCUITPY_AUDIOBUSIO = 0
136136
endif
137137

138-
endif # samd51
139-
######################################################################
140-
141-
######################################################################
142-
# Put same51-only choices here.
143-
144-
ifeq ($(CHIP_FAMILY),same51)
145-
146-
# No native touchio on SAME51.
147-
CIRCUITPY_TOUCHIO_USE_NATIVE = 0
148-
149-
ifeq ($(CIRCUITPY_FULL_BUILD),0)
150-
CIRCUITPY_LTO_PARTITION ?= one
151-
endif
152-
153-
# The ?='s allow overriding in mpconfigboard.mk.
154-
155-
CIRCUITPY_ALARM ?= 1
156-
CIRCUITPY_PS2IO ?= 1
157-
CIRCUITPY_SAMD ?= 1
158-
CIRCUITPY_FLOPPYIO ?= $(CIRCUITPY_FULL_BUILD)
159-
CIRCUITPY_FRAMEBUFFERIO ?= $(CIRCUITPY_FULL_BUILD)
160-
CIRCUITPY_RGBMATRIX ?= $(CIRCUITPY_FRAMEBUFFERIO)
161-
CIRCUITPY_ULAB_OPTIMIZE_SIZE ?= 1
162-
163-
endif # same51
138+
endif # samx5x
164139
######################################################################
165140

166141
CIRCUITPY_BUILD_EXTENSIONS ?= uf2

0 commit comments

Comments
 (0)