Skip to content

Commit 29ffd57

Browse files
authored
Merge pull request #2990 from dauc/master
Add full/high speed compile flag for Microchip SAME70 examples
2 parents 334ac80 + aa86004 commit 29ffd57

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

hw/bsp/same70_xplained/board.mk

+8
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@ CFLAGS += \
1414
# suppress following warnings from mcu driver
1515
CFLAGS += -Wno-error=unused-parameter -Wno-error=cast-align -Wno-error=redundant-decls
1616

17+
SPEED ?= high
18+
19+
ifeq ($(SPEED), high)
20+
CFLAGS += -DBOARD_TUD_MAX_SPEED=OPT_MODE_HIGH_SPEED
21+
else
22+
CFLAGS += -DBOARD_TUD_MAX_SPEED=OPT_MODE_FULL_SPEED
23+
endif
24+
1725
# SAM driver is flooded with -Wcast-qual which slow down complication significantly
1826
CFLAGS_SKIP += -Wcast-qual
1927

0 commit comments

Comments
 (0)