Skip to content

Commit 177f96c

Browse files
committed
Define GPIO_AF_NONE
Some pin does not have AF defined, PinMap use GPIO_AF_NONE to identify them. See stm32duino/Arduino_Tools#31 Signed-off-by: Frederic.Pillon <[email protected]>
1 parent 116da52 commit 177f96c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cores/arduino/stm32/pinmap.h

+3
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ extern "C" {
2929

3030
extern const uint32_t pin_map_ll[16];
3131

32+
#ifndef GPIO_AF_NONE
33+
#define GPIO_AF_NONE 0
34+
#endif
3235
#define STM_LL_GPIO_PIN(X) (pin_map_ll[STM_PIN(X)])
3336

3437
// No peripheral

0 commit comments

Comments
 (0)