51dabac096
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.
382 B
382 B
1 | X1 | PB6 |
---|---|---|
2 | X2 | PB7 |
3 | X3 | PC4 |
4 | X4 | PB5 |
5 | X5 | Reset |
6 | X6 | GND |
7 | X7 | 3.3V |
8 | X8 | VIN |
9 | X9 | PA0 |
10 | X10 | PA1 |
11 | X11 | PA2 |
12 | X12 | PA3 |
13 | X13 | PA4 |
14 | X14 | PA5 |
15 | X15 | PA6 |
16 | X16 | PA7 |
17 | X17 | PB3 |
18 | X18 | PC13 |
19 | X19 | PC0 |
20 | X20 | PC1 |
21 | X21 | PC2 |
22 | X22 | PC3 |
23 | X23 | A3.3V |
24 | X24 | AGND |
25 | Y1 | PB10 |
26 | Y2 | PB11 |
27 | Y3 | PB0 |
28 | Y4 | PB1 |
29 | Y5 | Reset |
30 | Y6 | GND |
31 | Y7 | 3.3V |
32 | Y8 | VIN |
33 | Y9 | PC6 |
34 | Y10 | PC7 |
35 | Y11 | PB8 |
36 | Y12 | PB9 |
37 | Y13 | PB12 |
38 | Y14 | PB13 |
39 | Y15 | PB14 |
40 | Y16 | PB15 |
41 | LED_BLUE | PB4 |
42 | LED_RED | PA13 |
43 | LED_GREEN | PA14 |
44 | LED_YELLOW | PA15 |
45 | SW | PB3 |