Source

pymite / src / platform / stm32f4 / pin.py

Full commit
#-----------------------------------------------------------------------------
# Name:        pin.py
# Purpose:     pin from STM32F4 declaration for general purpose
#
#              to simplify pin usage, just import pin module
#              sample :
#              from pin import *
#              from lcd import LiquidCrystal
#              screen = LiquidCrystal(PE7, None, PE8, PE9, PE10, PE11, PE12)
#              ...
#              
# Author:      Stéphane Bard
#
# Created:     2012/10/25
# RCS-ID:      $Id: lcd.py $
# Licence:     BSD
#-----------------------------------------------------------------------------


PC0 = ('C',0)
PC1 = ('C',1)
PC2 = ('C',2)
PC3 = ('C',3)
PA0 = ('A',0)
PA1 = ('A',1)
PA2 = ('A',2)
PA3 = ('A',3)
PA4 = ('A',4)
PA5 = ('A',5)
PA6 = ('A',6)
PA8 = ('A',8)
PC4 = ('C',4)
PC5 = ('C',5)
PB0 = ('B',0)
PB1 = ('B',1)
PB2 = ('B',2)
PE7 = ('E',7)
PE8 = ('E',8)
PE9 = ('E',9)
PE10 = ('E',10)
PE11 = ('E',11)
PE12 = ('E',12)
PE13 = ('E',13)
PE14 = ('E',14)
PE15 = ('E',15)
PB10 = ('B',10)
PB11 = ('B',11)
PB12 = ('B',12)
PB13 = ('B',13)
PB14 = ('B',14)
PB15 = ('B',15)
PD8 = ('D',8)
PD9 = ('D',9)
PD10 = ('D',10)
PD11 = ('D',11)
PD12 = ('D',12)
PD13 = ('D',13)
PD14 = ('D',14)
PD15 = ('D',15)
PH0 = ('H',0)
PH1 = ('H',1)
PC14 = ('C',14)
PC15 = ('C',15)
PE6 = ('E',6)
PC13 = ('C',13)
PE4 = ('E',4)
PE5 = ('E',5)
PE2 = ('E',2)
PE3 = ('E',3)
PE0 = ('E',0)
PE1 = ('E',1)
PB8 = ('B',8)
PB9 = ('B',9)
PB6 = ('B',6)
PB7 = ('B',7)
PB4 = ('B',4)
PB5 = ('B',5)
PD7 = ('D',7)
PB3 = ('B',3)
PD5 = ('D',5)
PD6 = ('D',6)
PD3 = ('D',3)
PD4 = ('D',4)
PD1 = ('D',1)
PD2 = ('D',2)
PC12 = ('C',12)
PD0 = ('D',0)
PC10 = ('C',10)
PC11 = ('C',11)
PA14 = ('A',14)
PA15 = ('A',15)
PA10 = ('A',10)
PA13 = ('A',13)
PA8 = ('A',8)
PA9 = ('A',9)
PC8 = ('C',8)
PC9 = ('C',9)
PC6 = ('C',6)
PC7 = ('C',7)