summaryrefslogtreecommitdiff
path: root/docs/templates/replace.inc
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-04-11 16:27:48 +1000
committerDamien George <damien.p.george@gmail.com>2018-04-11 16:35:24 +1000
commita7ebac2eaed7eb0da362568b9333339634f1da1d (patch)
tree0f5d9832bf9f61e8b968d00fc22a93cb706a983d /docs/templates/replace.inc
parent0041396f05bc1f43657c343df6b291fc4bbdc901 (diff)
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.
Diffstat (limited to 'docs/templates/replace.inc')
0 files changed, 0 insertions, 0 deletions