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.
86 lines
754 B
Plaintext
86 lines
754 B
Plaintext
PC0,PC0
|
|
PC1,PC1
|
|
PC2,PC2
|
|
PC3,PC3
|
|
PA0,PA0
|
|
PA1,PA1
|
|
PA2,PA2
|
|
PA3,PA3
|
|
PA4,PA4
|
|
PA5,PA5
|
|
PA6,PA6
|
|
PA7,PA7
|
|
PC4,PC4
|
|
PC5,PC5
|
|
PB0,PB0
|
|
PB1,PB1
|
|
PB2,PB2
|
|
PE7,PE7
|
|
PE8,PE8
|
|
PE9,PE9
|
|
PE10,PE10
|
|
PE11,PE11
|
|
PE12,PE12
|
|
PE13,PE13
|
|
PE14,PE14
|
|
PE15,PE15
|
|
PB10,PB10
|
|
PB11,PB11
|
|
PB12,PB12
|
|
PB13,PB13
|
|
PB14,PB14
|
|
PB15,PB15
|
|
PD8,PD8
|
|
PD9,PD9
|
|
PD10,PD10
|
|
PD11,PD11
|
|
PD12,PD12
|
|
PD13,PD13
|
|
PD14,PD14
|
|
PD15,PD15
|
|
PC6,PC6
|
|
PC7,PC7
|
|
PC8,PC8
|
|
PC9,PC9
|
|
PA8,PA8
|
|
PA9,PA9
|
|
PA10,PA10
|
|
PA13,PA13
|
|
PA14,PA14
|
|
PA15,PA15
|
|
PC10,PC10
|
|
PC11,PC11
|
|
PC12,PC12
|
|
PD0,PD0
|
|
PD1,PD1
|
|
PD2,PD2
|
|
PD3,PD3
|
|
PD4,PD4
|
|
PD5,PD5
|
|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