mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
64b95a34e9
Use `tiny_strerror()` to report back errors when calling initialization functions.
43 lines
1.1 KiB
Makefile
43 lines
1.1 KiB
Makefile
BOARD ?= arduino-due
|
|
|
|
include ../Makefile.periph_common
|
|
|
|
FEATURES_REQUIRED += arduino_pins
|
|
FEATURES_REQUIRED += arduino_shield_uno
|
|
|
|
FEATURES_OPTIONAL += arduino_analog
|
|
FEATURES_OPTIONAL += arduino_i2c
|
|
FEATURES_OPTIONAL += arduino_pwm
|
|
FEATURES_OPTIONAL += arduino_shield_isp
|
|
FEATURES_OPTIONAL += arduino_spi
|
|
FEATURES_OPTIONAL += arduino_uart
|
|
FEATURES_OPTIONAL += periph_adc
|
|
FEATURES_OPTIONAL += periph_gpio
|
|
FEATURES_OPTIONAL += periph_gpio_irq
|
|
FEATURES_OPTIONAL += periph_i2c
|
|
FEATURES_OPTIONAL += periph_pwm
|
|
FEATURES_OPTIONAL += periph_spi
|
|
FEATURES_OPTIONAL += periph_timer
|
|
FEATURES_OPTIONAL += periph_uart
|
|
|
|
USEMODULE += tiny_strerror
|
|
|
|
STOP_ON_FAILURE ?= 0
|
|
DETAILED_OUTPUT ?= 0
|
|
|
|
include $(RIOTBASE)/Makefile.include
|
|
|
|
ifneq ($(MCU),esp32)
|
|
# We only need 1 thread (+ the Idle thread on some platforms) and we really
|
|
# want this app working on as many boards as possible
|
|
CFLAGS += -DMAXTHREADS=2
|
|
else
|
|
# ESP32x SoCs uses an extra thread for esp_timer
|
|
CFLAGS += -DMAXTHREADS=3
|
|
endif
|
|
|
|
CFLAGS += \
|
|
'-DSTOP_ON_FAILURE=$(STOP_ON_FAILURE)' \
|
|
'-DDETAILED_OUTPUT=$(DETAILED_OUTPUT)' \
|
|
#
|