Logo
Explore Help
Register Sign In
fengqi/lv_micropython
1
0
Fork 0
You've already forked lv_micropython
Code Issues Pull Requests 1 Actions Packages Projects Releases Wiki Activity
lv_micropython/stm/boards/PYBOARD4/pins.csv

46 lines
382 B
CSV
Raw Normal View History

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 17:57:13 -08:00
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
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 37ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API