board/nucleo32: fix Arduino pin mapping

On Nucleo-32 boards with STM32 MCUs that do not have the GPIO port F, the Arduino pins D7 and D8 are not connected to PF0 and PF1 but to PC14 and PC15. This is also the case for the Nucleo-L412KB.
This commit is contained in:
Gunar Schorcht 2020-07-23 00:16:48 +02:00
parent 044d08d599
commit b082fd1941

View File

@ -39,7 +39,8 @@ extern "C" {
#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)
#if defined(CPU_MODEL_STM32L031K6) || defined(CPU_MODEL_STM32L432KC)
#if defined(CPU_MODEL_STM32L031K6) || defined(CPU_MODEL_STM32L432KC) || \
defined(CPU_MODEL_STM32L412KB)
#define ARDUINO_PIN_7 GPIO_PIN(PORT_C, 14)
#define ARDUINO_PIN_8 GPIO_PIN(PORT_C, 15)
#else