-
Notifications
You must be signed in to change notification settings - Fork 0
/
pins_af.py
86 lines (86 loc) · 4.06 KB
/
pins_af.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
PINS_AF = (
('PC0', ),
('PC1', ),
('PC2', (5, 'SPI2_MISO'), (6, 'I2S2_EXTSD'), ),
('PC3', (5, 'SPI2_MOSI'), (5, 'I2S2_SD'), ),
('PA0', (1, 'TIM2_CH1'), (1, 'TIM2_ETR'), (2, 'TIM5_CH1'), (3, 'TIM8_ETR'), (7, 'USART2_CTS'), (8, 'UART4_TX'), ),
('PA1', (1, 'TIM2_CH2'), (2, 'TIM5_CH2'), (7, 'USART2_RTS'), (8, 'UART4_RX'), ),
('PA2', (1, 'TIM2_CH3'), (2, 'TIM5_CH3'), (3, 'TIM9_CH1'), (7, 'USART2_TX'), ),
('PA3', (1, 'TIM2_CH4'), (2, 'TIM5_CH4'), (3, 'TIM9_CH2'), (7, 'USART2_RX'), ),
('PA4', (5, 'SPI1_NSS'), (6, 'SPI3_NSS'), (6, 'I2S3_WS'), (7, 'USART2_CK'), ),
('PA5', (1, 'TIM2_CH1'), (1, 'TIM2_ETR'), (3, 'TIM8_CH1N'), (5, 'SPI1_SCK'), ),
('PA6', (1, 'TIM1_BKIN'), (2, 'TIM3_CH1'), (3, 'TIM8_BKIN'), (5, 'SPI1_MISO'), (9, 'TIM13_CH1'), ),
('PA7', (1, 'TIM1_CH1N'), (2, 'TIM3_CH2'), (3, 'TIM8_CH1N'), (5, 'SPI1_MOSI'), (9, 'TIM14_CH1'), ),
('PC4', ),
('PC5', ),
('PB0', (1, 'TIM1_CH2N'), (2, 'TIM3_CH3'), (3, 'TIM8_CH2N'), ),
('PB1', (1, 'TIM1_CH3N'), (2, 'TIM3_CH4'), (3, 'TIM8_CH3N'), ),
('PB2', ),
('PE7', (1, 'TIM1_ETR'), ),
('PE8', (1, 'TIM1_CH1N'), ),
('PE9', (1, 'TIM1_CH1'), ),
('PE10', (1, 'TIM1_CH2N'), ),
('PE11', (1, 'TIM1_CH2'), ),
('PE12', (1, 'TIM1_CH3N'), ),
('PE13', (1, 'TIM1_CH3'), ),
('PE14', (1, 'TIM1_CH4'), ),
('PE15', (1, 'TIM1_BKIN'), ),
('PB10', (1, 'TIM2_CH3'), (4, 'I2C2_SCL'), (5, 'SPI2_SCK'), (5, 'I2S2_CK'), (7, 'USART3_TX'), ),
('PB11', (1, 'TIM2_CH4'), (4, 'I2C2_SDA'), (7, 'USART3_RX'), ),
('PB12', (1, 'TIM1_BKIN'), (5, 'SPI2_NSS'), (5, 'I2S2_WS'), (7, 'USART3_CK'), ),
('PB13', (1, 'TIM1_CH1N'), (5, 'SPI2_SCK'), (5, 'I2S2_CK'), (7, 'USART3_CTS'), ),
('PB14', (1, 'TIM1_CH2N'), (3, 'TIM8_CH2N'), (5, 'SPI2_MISO'), (6, 'I2S2_EXTSD'), (7, 'USART3_RTS'), (9, 'TIM12_CH1'), ),
('PB15', (1, 'TIM1_CH3N'), (3, 'TIM8_CH3N'), (5, 'SPI2_MOSI'), (5, 'I2S2_SD'), (9, 'TIM12_CH2'), ),
('PD8', (7, 'USART3_TX'), ),
('PD9', (7, 'USART3_RX'), ),
('PD10', (7, 'USART3_CK'), ),
('PD11', (7, 'USART3_CTS'), ),
('PD12', (2, 'TIM4_CH1'), (7, 'USART3_RTS'), ),
('PD13', (2, 'TIM4_CH2'), ),
('PD14', (2, 'TIM4_CH3'), ),
('PD15', (2, 'TIM4_CH4'), ),
('PC6', (2, 'TIM3_CH1'), (3, 'TIM8_CH1'), (5, 'I2S2_MCK'), (8, 'USART6_TX'), ),
('PC7', (2, 'TIM3_CH2'), (3, 'TIM8_CH2'), (6, 'I2S3_MCK'), (8, 'USART6_RX'), ),
('PC8', (2, 'TIM3_CH3'), (3, 'TIM8_CH3'), (8, 'USART6_CK'), ),
('PC9', (2, 'TIM3_CH4'), (3, 'TIM8_CH4'), (4, 'I2C3_SDA'), ),
('PA8', (1, 'TIM1_CH1'), (4, 'I2C3_SCL'), (7, 'USART1_CK'), ),
('PA9', (1, 'TIM1_CH2'), (7, 'USART1_TX'), ),
('PA10', (1, 'TIM1_CH3'), (7, 'USART1_RX'), ),
('PA13', ),
('PA14', ),
('PA15', (1, 'TIM2_CH1'), (1, 'TIM2_ETR'), (5, 'SPI1_NSS'), (6, 'SPI3_NSS'), (6, 'I2S3_WS'), ),
('PC10', (6, 'SPI3_SCK'), (6, 'I2S3_CK'), (7, 'USART3_TX'), (8, 'UART4_TX'), ),
('PC11', (5, 'I2S3_EXTSD'), (6, 'SPI3_MISO'), (7, 'USART3_RX'), (8, 'UART4_RX'), ),
('PC12', (6, 'SPI3_MOSI'), (6, 'I2S3_SD'), (7, 'USART3_CK'), (8, 'UART5_TX'), ),
('PD0', ),
('PD1', ),
('PD2', (2, 'TIM3_ETR'), (8, 'UART5_RX'), ),
('PD3', (7, 'USART2_CTS'), ),
('PD4', (7, 'USART2_RTS'), ),
('PD5', (7, 'USART2_TX'), ),
('PD6', (7, 'USART2_RX'), ),
('PD7', (7, 'USART2_CK'), ),
('PB4', (2, 'TIM3_CH1'), (5, 'SPI1_MISO'), (6, 'SPI3_MISO'), (7, 'I2S3_EXTSD'), ),
('PB5', (2, 'TIM3_CH2'), (5, 'SPI1_MOSI'), (6, 'SPI3_MOSI'), (6, 'I2S3_SD'), ),
('PB6', (2, 'TIM4_CH1'), (4, 'I2C1_SCL'), (7, 'USART1_TX'), ),
('PB7', (2, 'TIM4_CH2'), (4, 'I2C1_SDA'), (7, 'USART1_RX'), ),
('PB8', (2, 'TIM4_CH3'), (3, 'TIM10_CH1'), (4, 'I2C1_SCL'), ),
('PB9', (2, 'TIM4_CH4'), (3, 'TIM11_CH1'), (4, 'I2C1_SDA'), (5, 'SPI2_NSS'), (5, 'I2S2_WS'), ),
('PE0', (2, 'TIM4_ETR'), ),
('PE1', ),
('PE2', ),
('PE3', ),
('PE4', ),
('PE5', (3, 'TIM9_CH1'), ),
('PE6', (3, 'TIM9_CH2'), ),
('PC13', ),
('PC14', ),
('PC15', ),
('PH0', ),
('PH1', ),
('LED_GREEN', (2, 'TIM4_CH1'), (7, 'USART3_RTS'), ),
('LED_ORANGE', (2, 'TIM4_CH2'), ),
('LED_RED', (2, 'TIM4_CH3'), ),
('LED_BLUE', (2, 'TIM4_CH4'), ),
('SW', (1, 'TIM2_CH1'), (1, 'TIM2_ETR'), (2, 'TIM5_CH1'), (3, 'TIM8_ETR'), (7, 'USART2_CTS'), (8, 'UART4_TX'), ),
)