Skip to content

Commit

Permalink
stm32/boards/NUCLEO_F446RE: Enable CAN bus support.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sashkoiv authored and dpgeorge committed Jul 22, 2021
1 parent b099db4 commit 753b08c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ports/stm32/boards/NUCLEO_F446RE/mpconfigboard.h
Expand Up @@ -53,6 +53,12 @@
#define MICROPY_HW_SPI4_MISO (pin_A1) // pin 30 on CN7
#define MICROPY_HW_SPI4_MOSI (pin_A11) // pin 14 on CN10

// CAN buses
#define MICROPY_HW_CAN1_TX (pin_B9) // pin 5 on CN10
#define MICROPY_HW_CAN1_RX (pin_B8) // pin 3 on CN10
#define MICROPY_HW_CAN2_TX (pin_B6) // pin 17 on CN10
#define MICROPY_HW_CAN2_RX (pin_B5) // pin 29 on CN10

// USRSW is pulled low. Pressing the button makes the input go high.
#define MICROPY_HW_USRSW_PIN (pin_C13)
#define MICROPY_HW_USRSW_PULL (GPIO_NOPULL)
Expand Down

0 comments on commit 753b08c

Please sign in to comment.