stm32f4discovery/include/arduino_pinmap.h

Mapping from MCU pins to Arduino pins.

You can use the defines in this file for simplified interaction with the Arduino specific pin numbers.

ARDUINO_PIN_0
1
GPIO_PIN(PORT_D, 12)
ARDUINO_PIN_1
1
GPIO_PIN(PORT_D, 13)
ARDUINO_PIN_2
1
GPIO_PIN(PORT_D, 14)
ARDUINO_PIN_3
1
GPIO_PIN(PORT_D, 15)
ARDUINO_PIN_4
1
GPIO_PIN(PORT_A, 12)
ARDUINO_PIN_5
1
GPIO_PIN(PORT_A, 15)
ARDUINO_PIN_6
1
GPIO_PIN(PORT_B, 1)
ARDUINO_PIN_7
1
GPIO_PIN(PORT_B, 2)
ARDUINO_A0
1
ADC_LINE(0)
ARDUINO_A1
1
ADC_LINE(1)
ARDUINO_A2
1
ADC_LINE(2)
ARDUINO_A3
1
ADC_LINE(3)