Skip to content

Commit 4d0742f

Browse files
committed
[STM32] Define VERSION_BLINK_PIN only if LED_BUILTIN is defined
Not all STM32 boards have a LED_BUILTIN. Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 4650504 commit 4d0742f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Boards.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,9 @@ writePort(port, value, bitmask): Write an 8 bit port.
854854
#define TOTAL_ANALOG_PINS NUM_ANALOG_INPUTS
855855
#define TOTAL_PINS NUM_DIGITAL_PINS
856856
#define TOTAL_PORTS MAX_NB_PORT
857+
#ifdef LED_BUILTIN
857858
#define VERSION_BLINK_PIN LED_BUILTIN
859+
#endif
858860
// PIN_SERIALY_RX/TX defined in the variant.h
859861
#define IS_PIN_DIGITAL(p) (digitalPinIsValid(p) && !pinIsSerial(p))
860862
#define IS_PIN_ANALOG(p) ((p >= A0) && (p < (A0 + TOTAL_ANALOG_PINS)) && !pinIsSerial(p))

0 commit comments

Comments
 (0)