Skip to content

Commit 753b08c

Browse files
Sashkoivdpgeorge
authored andcommitted
stm32/boards/NUCLEO_F446RE: Enable CAN bus support.
1 parent b099db4 commit 753b08c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ports/stm32/boards/NUCLEO_F446RE/mpconfigboard.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@
5353
#define MICROPY_HW_SPI4_MISO (pin_A1) // pin 30 on CN7
5454
#define MICROPY_HW_SPI4_MOSI (pin_A11) // pin 14 on CN10
5555

56+
// CAN buses
57+
#define MICROPY_HW_CAN1_TX (pin_B9) // pin 5 on CN10
58+
#define MICROPY_HW_CAN1_RX (pin_B8) // pin 3 on CN10
59+
#define MICROPY_HW_CAN2_TX (pin_B6) // pin 17 on CN10
60+
#define MICROPY_HW_CAN2_RX (pin_B5) // pin 29 on CN10
61+
5662
// USRSW is pulled low. Pressing the button makes the input go high.
5763
#define MICROPY_HW_USRSW_PIN (pin_C13)
5864
#define MICROPY_HW_USRSW_PULL (GPIO_NOPULL)

0 commit comments

Comments
 (0)