circuitpython/stm/boards/PYBOARD4/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

382 B

1X1PB6
2X2PB7
3X3PC4
4X4PB5
5X5Reset
6X6GND
7X73.3V
8X8VIN
9X9PA0
10X10PA1
11X11PA2
12X12PA3
13X13PA4
14X14PA5
15X15PA6
16X16PA7
17X17PB3
18X18PC13
19X19PC0
20X20PC1
21X21PC2
22X22PC3
23X23A3.3V
24X24AGND
25Y1PB10
26Y2PB11
27Y3PB0
28Y4PB1
29Y5Reset
30Y6GND
31Y73.3V
32Y8VIN
33Y9PC6
34Y10PC7
35Y11PB8
36Y12PB9
37Y13PB12
38Y14PB13
39Y15PB14
40Y16PB15
41LED_BLUEPB4
42LED_REDPA13
43LED_GREENPA14
44LED_YELLOWPA15
45SWPB3