summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiFiPhile <[email protected]>2025-03-08 11:57:41 +0100
committerGitHub <[email protected]>2025-03-08 11:57:41 +0100
commit29ffd57237554b1f2339af543e3789ae04d3b29b (patch)
tree7e9e700b0e4df3a0a2e24ab83b9563e0140d1e9e
parent334ac8072650e3b18278042c2c2b402db73c7359 (diff)
parentaa860041b8cfad9b5740db93d013add03667f01c (diff)
Merge pull request #2990 from dauc/master
Add full/high speed compile flag for Microchip SAME70 examples
-rw-r--r--hw/bsp/same70_xplained/board.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/hw/bsp/same70_xplained/board.mk b/hw/bsp/same70_xplained/board.mk
index 3edc128a5..60702f14a 100644
--- a/hw/bsp/same70_xplained/board.mk
+++ b/hw/bsp/same70_xplained/board.mk
@@ -14,6 +14,14 @@ CFLAGS += \
# suppress following warnings from mcu driver
CFLAGS += -Wno-error=unused-parameter -Wno-error=cast-align -Wno-error=redundant-decls
+SPEED ?= high
+
+ifeq ($(SPEED), high)
+ CFLAGS += -DBOARD_TUD_MAX_SPEED=OPT_MODE_HIGH_SPEED
+else
+ CFLAGS += -DBOARD_TUD_MAX_SPEED=OPT_MODE_FULL_SPEED
+endif
+
# SAM driver is flooded with -Wcast-qual which slow down complication significantly
CFLAGS_SKIP += -Wcast-qual