circuitpython/stm/boards/PYBOARD3/pins.csv
Dave Hylands 51dabac096 Add pin mapping code.
This commit also introduces board directories and moves board
specific config into the appropriate board directory.

boards/stm32f4xx-af.csv was extracted from the STM32F4xx datasheet
and hand-tweaked.

make-pins.py takes boards/stm32f4xx-af.csv, boards/stm32f4xx-prefix.c,
and boards/BOARD-NAME/pins.csv as input and generates the file
build/pins_BOARD_NAME.c

The generated pin file for PYBOARD4 looks like this:
https://gist.github.com/dhylands/9063231

The generated pins file includes all of the supported alternate
functions, and includes upsupported alternate functions as comments.

See the commnet block at the top of stm/pin_map.c for details on
how to use the pin mapper.

I also went ahead and modified stm/gpio.c to use the pin mapper.
2014-02-17 21:20:38 -08:00

289 B

1B13PB13
2B14PB14
3B15PB15
4C6PC6
5C7PC7
6A13PA13
7A14PA14
8A15PA15
9B3PB3
10B4PB4
11B6PB6
12B7PB7
13B8PB8
14B9PB9
15C0PC0
16C1PC1
17C2PC2
18C3PC3
19A0PA0
20A1PA1
21A2PA2
22A3PA3
23A4PA4
24A5PA5
25A6PA6
26A7PA7
27B0PB0
28B1PB1
29B10PB10
30B11PB11
31B12PB12
32LED_R1PA8
33LED_R2PA10
34LED_G1PC4
35LED_G2PC5
36SWPA13