forked from dhylands/upy-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pins_af.py
38 lines (38 loc) · 2.15 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
PINS_AF = (
('X1', (1, 'TIM2_CH1_ETR'), (2, 'TIM5_CH1'), (3, 'TIM8_ETR'), (7, 'USART2_CTS'), (8, 'UART4_TX'), ),
('X2', (1, 'TIM2_CH2'), (2, 'TIM5_CH2'), (7, 'USART2_RTS'), (8, 'UART4_RX'), ),
('X3', (1, 'TIM2_CH3'), (2, 'TIM5_CH3'), (3, 'TIM9_CH1'), (7, 'USART2_TX'), ),
('X4', (1, 'TIM2_CH4'), (2, 'TIM5_CH4'), (3, 'TIM9_CH2'), (7, 'USART2_RX'), ),
('X5', (5, 'SPI1_NSS'), (6, 'SPI3_NSS'), (7, 'USART2_CK'), ),
('X6', (1, 'TIM2_CH1_ETR'), (3, 'TIM8_CH1N'), (5, 'SPI1_SCK'), ),
('X7', (1, 'TIM1_BKIN'), (2, 'TIM3_CH1'), (3, 'TIM8_BKIN'), (5, 'SPI1_MISO'), (9, 'TIM13_CH1'), ),
('X8', (1, 'TIM1_CH1N'), (2, 'TIM3_CH2'), (3, 'TIM8_CH1N'), (5, 'SPI1_MOSI'), (9, 'TIM14_CH1'), ),
('X9', (2, 'TIM4_CH1'), (4, 'I2C1_SCL'), (7, 'USART1_TX'), ),
('X10', (2, 'TIM4_CH2'), (4, 'I2C1_SDA'), (7, 'USART1_RX'), ),
('X11', ),
('X12', ),
('X17', (1, 'TIM2_CH2'), (5, 'SPI1_SCK'), (6, 'SPI3_SCK'), ),
('X18', ),
('X19', ),
('X20', ),
('X21', (5, 'SPI2_MISO'), ),
('X22', (5, 'SPI2_MOSI'), ),
('Y1', (2, 'TIM3_CH1'), (3, 'TIM8_CH1'), (8, 'USART6_TX'), ),
('Y2', (2, 'TIM3_CH2'), (3, 'TIM8_CH2'), (8, 'USART6_RX'), ),
('Y3', (2, 'TIM4_CH3'), (3, 'TIM10_CH1'), (4, 'I2C1_SCL'), ),
('Y4', (2, 'TIM4_CH4'), (3, 'TIM11_CH1'), (4, 'I2C1_SDA'), (5, 'SPI2_NSS'), ),
('Y5', (1, 'TIM1_BKIN'), (5, 'SPI2_NSS'), (7, 'USART3_CK'), ),
('Y6', (1, 'TIM1_CH1N'), (5, 'SPI2_SCK'), (7, 'USART3_CTS'), ),
('Y7', (1, 'TIM1_CH2N'), (3, 'TIM8_CH2N'), (5, 'SPI2_MISO'), (7, 'USART3_RTS'), (9, 'TIM12_CH1'), ),
('Y8', (1, 'TIM1_CH3N'), (3, 'TIM8_CH3N'), (5, 'SPI2_MOSI'), (9, 'TIM12_CH2'), ),
('Y9', (1, 'TIM2_CH3'), (4, 'I2C2_SCL'), (5, 'SPI2_SCK'), (7, 'USART3_TX'), ),
('Y10', (1, 'TIM2_CH4'), (4, 'I2C2_SDA'), (7, 'USART3_RX'), ),
('Y11', (1, 'TIM1_CH2N'), (2, 'TIM3_CH3'), (3, 'TIM8_CH2N'), ),
('Y12', (1, 'TIM1_CH3N'), (2, 'TIM3_CH4'), (3, 'TIM8_CH3N'), ),
('LED_BLUE', (2, 'TIM3_CH1'), (5, 'SPI1_MISO'), (6, 'SPI3_MISO'), ),
('LED_RED', ),
('LED_GREEN', ),
('LED_YELLOW', (1, 'TIM2_CH1'), (1, 'TIM2_ETR'), (5, 'SPI1_NSS'), (6, 'SPI3_NSS'), ),
('SW', (1, 'TIM2_CH2'), (5, 'SPI1_SCK'), (6, 'SPI3_SCK'), ),
('SD', (1, 'TIM1_CH1'), (4, 'I2C3_SCL'), (7, 'USART1_CK'), ),
)