1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/periph/spi/Makefile

56 lines
1.3 KiB
Makefile
Raw Normal View History

BOARD ?= samr21-xpro
include ../Makefile.periph_common
2014-08-07 16:51:52 +02: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
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
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
USEMODULE += shell_cmds_default
ifeq (1,$(ENABLE_BENCHMARK))
USEMODULE += schedstatistics
endif
2014-08-07 16:51:52 +02:00
# avoid running Kconfig by default
SHOULD_RUN_KCONFIG ?=
2014-08-07 16:51:52 +02:00
include $(RIOTBASE)/Makefile.include
CFLAGS += -DENABLE_BENCHMARK=$(ENABLE_BENCHMARK)
CFLAGS += -DLOW_MEMORY=$(LOW_MEMORY)