a7ebac2eae
This patch allows a given board to configure which pins are used for the CAN peripherals, in a similar way to all the other bus peripherals (I2C, UART, SPI). To enable CAN on a board the mpconfigboard.h file should define (for example): #define MICROPY_HW_CAN1_TX (pin_B9) #define MICROPY_HW_CAN1_RX (pin_B8) #define MICROPY_HW_CAN2_TX (pin_B13) #define MICROPY_HW_CAN2_RX (pin_B12) And the board config file should no longer define MICROPY_HW_ENABLE_CAN.
477 B
477 B
1 | JP1 | 3.3V |
---|---|---|
2 | JP2 | GND |
3 | JP3 | PA8 |
4 | JP4 | PA13 |
5 | JP5 | PA7 |
6 | JP6 | PA6 |
7 | JP7 | PC10 |
8 | JP8 | PA14 |
9 | JP9 | PC11 |
10 | JP10 | PB4 |
11 | JP11 | PB9 |
12 | JP12 | PB3 |
13 | JP13 | PD2 |
14 | JP14 | PC12 |
15 | JP15 | VBAT |
16 | JP16 | PB8 |
17 | JP17 | Loader |
18 | JP18 | PB7 |
19 | JP19 | PB6 |
20 | JP20 | PB5 |
21 | JP21 | Reset |
22 | JP22 | PC0 |
23 | JP23 | PC1 |
24 | JP24 | PC2 |
25 | JP25 | PC3 |
26 | JP26 | PA0 |
27 | JP27 | PA1 |
28 | JP28 | PA2 |
29 | JP29 | PA3 |
30 | JP30 | PA4 |
31 | JP31 | PA5 |
32 | JP32 | PB10 |
33 | JP33 | PB11 |
34 | JP34 | PB14 |
35 | JP35 | PB15 |
36 | JP36 | PC6 |
37 | JP37 | PC7 |
38 | JP38 | PC8 |
39 | JP39 | PC9 |
40 | JP40 | VUSB |
41 | UART1_TX | PA9 |
42 | UART1_RX | PA10 |
43 | UART3_TX | PD8 |
44 | UART3_RX | PD9 |
45 | UART3_RTS | PD12 |
46 | UART3_CTS | PD11 |
47 | CAN2_TX | PB13 |
48 | CAN2_RX | PB12 |