mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-17 10:33:49 +01:00
21 lines
761 B
Makefile
21 lines
761 B
Makefile
# Don't show warnings for info and generate targets
|
|
ifeq (,$(filter info-% generate-%,$(MAKECMDGOALS)))
|
|
ifneq (,$(filter periph_spi, $(USEMODULE)))
|
|
ifeq (,$(filter periph_init_buttons, $(DISABLE_MODULE)))
|
|
DISABLE_MODULE += periph_init_buttons
|
|
|
|
MSG="Warning: Using periph_spi on Seeed Studio Xiao ESP32C3 board will disable BUTTON0 due to pin conflict."
|
|
$(shell $(COLOR_ECHO) "$(COLOR_YELLOW)$(MSG)$(COLOR_RESET)" 1>&2)
|
|
endif
|
|
else ifneq (,$(filter saul_default,$(USEMODULE)))
|
|
# The button is the only SAUL device. Enable it only when SPI is not enabled.
|
|
USEMODULE += saul_gpio
|
|
endif
|
|
endif
|
|
|
|
ifeq (,$(filter stdio_% slipdev_stdio,$(USEMODULE)))
|
|
USEMODULE += stdio_usb_serial_jtag
|
|
endif
|
|
|
|
USEMODULE += boards_common_esp32c3
|