micropython/ports/stm32/boards/CERB40/pins.csv
Damien George a7ebac2eae stm32/can: Allow CAN pins to be configured per board.
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.
2018-04-11 16:35:24 +10:00

49 lines
477 B
Plaintext

JP1,3.3V
JP2,GND
JP3,PA8
JP4,PA13
JP5,PA7
JP6,PA6
JP7,PC10
JP8,PA14
JP9,PC11
JP10,PB4
JP11,PB9
JP12,PB3
JP13,PD2
JP14,PC12
JP15,VBAT
JP16,PB8
JP17,Loader
JP18,PB7
JP19,PB6
JP20,PB5
JP21,Reset
JP22,PC0
JP23,PC1
JP24,PC2
JP25,PC3
JP26,PA0
JP27,PA1
JP28,PA2
JP29,PA3
JP30,PA4
JP31,PA5
JP32,PB10
JP33,PB11
JP34,PB14
JP35,PB15
JP36,PC6
JP37,PC7
JP38,PC8
JP39,PC9
JP40,VUSB
UART1_TX,PA9
UART1_RX,PA10
UART3_TX,PD8
UART3_RX,PD9
UART3_RTS,PD12
UART3_CTS,PD11
CAN2_TX,PB13
CAN2_RX,PB12