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
..
2018-03-27 21:24:15 +11:00
2018-04-11 16:35:24 +10:00
2018-03-27 21:24:15 +11:00
2018-03-27 21:24:15 +11:00
2018-03-27 21:24:15 +11:00
2018-03-27 21:24:15 +11:00
2018-03-27 21:24:15 +11:00
2018-03-27 21:24:15 +11:00
2018-04-11 16:35:24 +10:00
2018-03-27 21:24:15 +11:00
2018-04-11 16:35:24 +10:00
2018-04-11 16:35:24 +10:00
2018-04-10 14:21:26 +10:00
2018-03-27 21:24:15 +11:00
2018-04-11 16:35:24 +10:00
2018-03-27 21:24:15 +11:00
2018-04-11 16:35:24 +10:00
2018-04-11 16:35:24 +10:00
2018-04-11 16:35:24 +10:00
2018-04-11 16:35:24 +10:00
2018-04-11 16:35:24 +10:00
2018-04-11 16:35:24 +10:00
2018-03-27 21:24:15 +11:00
2018-04-11 16:35:24 +10:00
2018-04-11 16:35:24 +10:00
2018-04-11 16:35:24 +10:00
2018-04-11 16:35:24 +10:00
2018-03-27 21:29:45 +11:00
2018-03-27 21:30:45 +11:00
2018-03-27 21:17:48 +11:00
2018-04-11 16:35:24 +10:00
2017-09-06 13:40:51 +10:00
2017-09-06 13:40:51 +10:00
2017-09-06 13:40:51 +10:00
2017-09-06 13:40:51 +10:00
2018-03-09 15:14:03 +11:00
2018-03-09 15:13:56 +11:00
2018-03-09 15:13:13 +11:00
2018-03-09 15:14:10 +11:00
2018-04-11 16:14:58 +10:00
2017-12-01 14:51:36 +11:00
2018-03-27 21:17:48 +11:00
2018-03-27 21:17:48 +11:00
2017-12-01 14:51:36 +11:00
2018-03-27 21:17:48 +11:00
2017-12-01 14:51:36 +11:00
2018-03-27 21:17:48 +11:00
2017-12-01 14:51:36 +11:00
2018-03-27 21:17:48 +11:00
2017-12-01 14:51:36 +11:00
2018-03-27 21:17:48 +11:00
2017-11-20 14:19:12 +11:00
2018-03-27 21:17:48 +11:00
2018-03-07 18:40:06 +11:00
2018-03-27 21:35:03 +11:00
2018-03-27 21:17:48 +11:00
2018-03-09 14:06:34 +11:00
2018-03-28 13:20:07 +11:00
2017-12-01 14:51:36 +11:00
2018-03-27 21:17:48 +11:00
2018-03-27 21:17:48 +11:00