We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 334ac80 + aa86004 commit 29ffd57Copy full SHA for 29ffd57
hw/bsp/same70_xplained/board.mk
@@ -14,6 +14,14 @@ CFLAGS += \
14
# suppress following warnings from mcu driver
15
CFLAGS += -Wno-error=unused-parameter -Wno-error=cast-align -Wno-error=redundant-decls
16
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
25
# SAM driver is flooded with -Wcast-qual which slow down complication significantly
26
CFLAGS_SKIP += -Wcast-qual
27
0 commit comments