Skip to content

Commit 4f78ba3

Browse files
iabdalkaderdpgeorge
authored andcommitted
stm32/boards/NUCLEO_H743ZI: Enable FDCAN on this board.
1 parent f7a07b3 commit 4f78ba3

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

ports/stm32/boards/NUCLEO_H743ZI/mpconfigboard.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ void NUCLEO_H743ZI_board_early_init(void);
6666
#define MICROPY_HW_USB_VBUS_DETECT_PIN (pin_A9)
6767
#define MICROPY_HW_USB_OTG_ID_PIN (pin_A10)
6868

69+
// FDCAN bus
70+
#define MICROPY_HW_CAN1_NAME "FDCAN1"
71+
#define MICROPY_HW_CAN1_TX (pin_D1)
72+
#define MICROPY_HW_CAN1_RX (pin_D0)
73+
6974
// SD card detect switch
7075
#define MICROPY_HW_SDCARD_DETECT_PIN (pin_G2)
7176
#define MICROPY_HW_SDCARD_DETECT_PULL (GPIO_PULLUP)

ports/stm32/boards/NUCLEO_H743ZI/pins.csv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ D14,PB9
2222
D15,PB8
2323
D22,PB5
2424
D23,PB3
25+
D67,PD0
26+
D66,PD1
2527
DAC1,PA4
2628
DAC2,PA5
2729
LED1,PB0

ports/stm32/boards/stm32h7xx_hal_conf_base.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
#include "stm32h7xx_hal_crc.h"
3535
#include "stm32h7xx_hal_dac.h"
3636
#include "stm32h7xx_hal_dcmi.h"
37+
#include "stm32h7xx_hal_fdcan.h"
3738
#include "stm32h7xx_hal_flash.h"
3839
#include "stm32h7xx_hal_gpio.h"
3940
#include "stm32h7xx_hal_hash.h"
@@ -60,6 +61,7 @@
6061
#define HAL_DAC_MODULE_ENABLED
6162
#define HAL_DCMI_MODULE_ENABLED
6263
#define HAL_DMA_MODULE_ENABLED
64+
#define HAL_FDCAN_MODULE_ENABLED
6365
#define HAL_FLASH_MODULE_ENABLED
6466
#define HAL_GPIO_MODULE_ENABLED
6567
#define HAL_HASH_MODULE_ENABLED

0 commit comments

Comments
 (0)