[riot-notifications] [RIOT-OS/RIOT] boards/common/nucleo32/include/arduino_pinmap.h not correct/complete (#12138)
notifications at github.com
Sun Sep 1 18:20:59 CEST 2019
It looks like the `arduino_pinmap.h` in `boards/common/nucleo32/include/arduino_pinmap.h` is not quite correct or rather complete:
#define ARDUINO_PIN_0 GPIO_PIN(PORT_A, 10)
#define ARDUINO_PIN_1 GPIO_PIN(PORT_A, 9)
#define ARDUINO_PIN_2 GPIO_PIN(PORT_A, 12)
#define ARDUINO_PIN_3 GPIO_PIN(PORT_B, 0)
#define ARDUINO_PIN_4 GPIO_PIN(PORT_B, 7)
#define ARDUINO_PIN_5 GPIO_PIN(PORT_B, 6)
#define ARDUINO_PIN_6 GPIO_PIN(PORT_B, 1)
#define ARDUINO_PIN_7 GPIO_PIN(PORT_C, 14)
#define ARDUINO_PIN_8 GPIO_PIN(PORT_C, 15)
#define ARDUINO_PIN_7 GPIO_PIN(PORT_F, 0)
#define ARDUINO_PIN_8 GPIO_PIN(PORT_F, 1)
The pins defined in `#if defined(CPU_MODEL_STM32L031K6)` seem to be that way for other boards (e.g. the L432KC) as well. I tried using `ARDUINO_PIN_7` on L432KC just now, resulting in this output:
Attempting to reconstruct state for debugging...
ISR stack overflowed by at least 16 bytes.
main(): This is RIOT! (Version: 2019.10-devel-406-g91361)
However, when I manually set the pins to the same values as for the `CPU_MODEL_STM32L031K6` it seems to work just fine.
I can create a PR, however maybe someone could check if my assumption is right first? Also I'm not sure for which other models this might be true - my naive guess is that for at least the ones with the same form factor as the `CPU_MODEL_STM32L031K6`. 🤷♂
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications