1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-26 06:53:52 +01:00

Merge pull request #21338 from crasbe/pr/nucleo64-spiled-warning

boards/nucleo64: Add Compile Warning about LED0 when using SPI
This commit is contained in:
Marian Buschsieweke 2025-04-02 09:18:03 +00:00 committed by GitHub
commit 1f3a693473
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,15 @@
# include color echo macros
include $(RIOTMAKE)/utils/ansi.mk
include $(RIOTMAKE)/color.inc.mk
ifneq (,$(filter periph_spi,$(USEMODULE)))
# The LED pin is also used for SPI
DISABLE_MODULE += periph_init_led0
# The LED pin is also used for SPI, disable the LED0 module (once)
ifeq (,$(filter periph_init_led0,$(DISABLE_MODULE)))
DISABLE_MODULE += periph_init_led0
MSG="Warning: Using periph_spi on Nucleo64 boards will disable LED0 due to pin conflicts."
$(shell $(COLOR_ECHO) "$(COLOR_RED)$(MSG)$(COLOR_RESET)" 1>&2)
endif
endif
include $(RIOTBOARD)/common/nucleo/Makefile.dep