mirror of
https://github.com/licsber/micropython.git
synced 2024-09-21 17:40:24 +08:00
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.
46 lines
382 B
Plaintext
46 lines
382 B
Plaintext
X1,PB6
|
|
X2,PB7
|
|
X3,PC4
|
|
X4,PB5
|
|
X5,Reset
|
|
X6,GND
|
|
X7,3.3V
|
|
X8,VIN
|
|
X9,PA0
|
|
X10,PA1
|
|
X11,PA2
|
|
X12,PA3
|
|
X13,PA4
|
|
X14,PA5
|
|
X15,PA6
|
|
X16,PA7
|
|
X17,PB3
|
|
X18,PC13
|
|
X19,PC0
|
|
X20,PC1
|
|
X21,PC2
|
|
X22,PC3
|
|
X23,A3.3V
|
|
X24,AGND
|
|
Y1,PB10
|
|
Y2,PB11
|
|
Y3,PB0
|
|
Y4,PB1
|
|
Y5,Reset
|
|
Y6,GND
|
|
Y7,3.3V
|
|
Y8,VIN
|
|
Y9,PC6
|
|
Y10,PC7
|
|
Y11,PB8
|
|
Y12,PB9
|
|
Y13,PB12
|
|
Y14,PB13
|
|
Y15,PB14
|
|
Y16,PB15
|
|
LED_BLUE,PB4
|
|
LED_RED,PA13
|
|
LED_GREEN,PA14
|
|
LED_YELLOW,PA15
|
|
SW,PB3
|