diff options
| author | HiFiPhile <[email protected]> | 2025-03-08 11:57:41 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-03-08 11:57:41 +0100 |
| commit | 29ffd57237554b1f2339af543e3789ae04d3b29b (patch) | |
| tree | 7e9e700b0e4df3a0a2e24ab83b9563e0140d1e9e | |
| parent | 334ac8072650e3b18278042c2c2b402db73c7359 (diff) | |
| parent | aa860041b8cfad9b5740db93d013add03667f01c (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.mk | 8 |
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 |
