|
|
|
@ -44,9 +44,15 @@ extern "C" {
|
|
|
|
|
#define ARDUINO_PIN_8 GPIO_PIN(PORT_A, 9) |
|
|
|
|
#define ARDUINO_PIN_9 GPIO_PIN(PORT_C, 7) |
|
|
|
|
#define ARDUINO_PIN_10 GPIO_PIN(PORT_B, 6) |
|
|
|
|
#ifdef CPU_MODEL_STM32F302R8 |
|
|
|
|
#define ARDUINO_PIN_11 GPIO_PIN(PORT_B, 15) |
|
|
|
|
#define ARDUINO_PIN_12 GPIO_PIN(PORT_B, 14) |
|
|
|
|
#define ARDUINO_PIN_13 GPIO_PIN(PORT_B, 13) /* on-board LED */ |
|
|
|
|
#else |
|
|
|
|
#define ARDUINO_PIN_11 GPIO_PIN(PORT_A, 7) |
|
|
|
|
#define ARDUINO_PIN_12 GPIO_PIN(PORT_A, 6) |
|
|
|
|
#define ARDUINO_PIN_13 GPIO_PIN(PORT_A, 5) /* on-board LED */ |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
#define ARDUINO_PIN_A0 GPIO_PIN(PORT_C, 0) |
|
|
|
|
#define ARDUINO_PIN_A1 GPIO_PIN(PORT_C, 1) |
|
|
|
|