1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-24 14:03:55 +01:00

boards/esp32-wrover-kit: fix definition of LED2_PIN

- GPIO2 (LED1_PIN) is used as SPI signal, not only if `sdcard_spi` is enabled. herefore, it must not be defined as LED pin if `periph_spi` is used.
- GIO4 (LED2_PIN) is used by the SDMMC Host Controller as SD Card DAT1 signal and must not be defined as LED pin in that case.
This commit is contained in:
Gunar Schorcht 2025-05-12 11:06:19 +02:00
parent 3961f2af70
commit c5baceb4b0

View File

@ -57,13 +57,14 @@
#define LED0_ACTIVE (1) /**< LED0 is high active */
#endif
#if !MODULE_SDCARD_SPI || DOXYGEN
#define LED1_PIN GPIO2 /**< LED1 is available when the SD-Card is not used */
#if !MODULE_PERIPH_SPI || DOXYGEN
#define LED1_PIN GPIO2 /**< LED1 is available when the SPI bus is not used */
#define LED1_ACTIVE (1) /**< LED1 is high active */
#endif
#if !MODULE_ESP32_WROVER_KIT_CAMERA || DOXYGEN
#define LED2_PIN GPIO4 /**< LED2 is available when the camera is not plugged in */
#if (!MODULE_ESP32_WROVER_KIT_CAMERA && !MODULE_PERIPH_SDMMC) || DOXYGEN
#define LED2_PIN GPIO4 /**< LED2 is available when the camera is not plugged in
and SDMMD is not used */
#define LED2_ACTIVE (1) /**< LED2 is high active */
#endif