2017-02-16 10:51:19 +01:00
|
|
|
BOARD ?= samr21-xpro
|
2023-05-05 10:26:35 +02:00
|
|
|
include ../Makefile.periph_common
|
2014-08-07 16:51:52 +02:00
|
|
|
|
2023-11-29 12:57:43 +01:00
|
|
|
# Disable benchmark, optional features and longer in-app help message
|
|
|
|
# on boards with low RAM/ROM.
|
|
|
|
#
|
|
|
|
# In addition, all MSP430 based boards won't work with schedstatistics, as this
|
|
|
|
# imposes too much overhead for interrupt handlers (when unblocking the shell
|
|
|
|
# thread) for UART RX to work correctly.
|
|
|
|
LOW_MEMORY_BOARDS := \
|
|
|
|
arduino-duemilanove \
|
|
|
|
arduino-leonardo \
|
|
|
|
arduino-nano \
|
|
|
|
arduino-uno \
|
|
|
|
atmega328p \
|
|
|
|
atmega328p-xplained-mini \
|
|
|
|
atmega8 \
|
|
|
|
msb-430 \
|
|
|
|
msb-430h \
|
|
|
|
nucleo-l011k4 \
|
|
|
|
olimex-msp430-h1611 \
|
|
|
|
olimex-msp430-h2618 \
|
|
|
|
samd10-xmini \
|
|
|
|
stm32f030f4-demo \
|
|
|
|
telosb \
|
|
|
|
z1 \
|
|
|
|
#
|
2020-10-28 00:32:09 +01:00
|
|
|
|
2020-11-17 16:35:44 +01:00
|
|
|
FEATURES_REQUIRED += periph_spi
|
|
|
|
FEATURES_OPTIONAL += periph_spi_on_qspi
|
|
|
|
|
2020-10-28 00:32:09 +01:00
|
|
|
ifeq (,$(filter $(BOARD),$(LOW_MEMORY_BOARDS)))
|
|
|
|
FEATURES_OPTIONAL += periph_spi_reconfigure
|
2023-11-29 12:57:43 +01:00
|
|
|
ENABLE_BENCHMARK ?= 1
|
|
|
|
LOW_MEMORY := 0
|
|
|
|
else
|
|
|
|
ENABLE_BENCHMARK ?= 0
|
|
|
|
LOW_MEMORY := 1
|
2020-10-28 00:32:09 +01:00
|
|
|
endif
|
2014-08-07 16:51:52 +02:00
|
|
|
|
2021-11-17 10:14:59 +01:00
|
|
|
USEMODULE += ztimer_usec
|
|
|
|
USEMODULE += ztimer_sec
|
2022-08-16 16:35:20 +02:00
|
|
|
USEMODULE += shell_cmds_default
|
2023-11-29 12:57:43 +01:00
|
|
|
|
|
|
|
ifeq (1,$(ENABLE_BENCHMARK))
|
|
|
|
USEMODULE += schedstatistics
|
|
|
|
endif
|
2014-08-07 16:51:52 +02:00
|
|
|
|
2020-09-24 15:44:52 +02:00
|
|
|
# avoid running Kconfig by default
|
|
|
|
SHOULD_RUN_KCONFIG ?=
|
|
|
|
|
2014-08-07 16:51:52 +02:00
|
|
|
include $(RIOTBASE)/Makefile.include
|
2023-11-29 12:57:43 +01:00
|
|
|
|
|
|
|
CFLAGS += -DENABLE_BENCHMARK=$(ENABLE_BENCHMARK)
|
|
|
|
CFLAGS += -DLOW_MEMORY=$(LOW_MEMORY)
|