stm32/boards/NUCLEO_H743ZI: Enable FDCAN on this board.
This commit is contained in:
parent
f7a07b3605
commit
4f78ba3cf4
|
@ -66,6 +66,11 @@ void NUCLEO_H743ZI_board_early_init(void);
|
|||
#define MICROPY_HW_USB_VBUS_DETECT_PIN (pin_A9)
|
||||
#define MICROPY_HW_USB_OTG_ID_PIN (pin_A10)
|
||||
|
||||
// FDCAN bus
|
||||
#define MICROPY_HW_CAN1_NAME "FDCAN1"
|
||||
#define MICROPY_HW_CAN1_TX (pin_D1)
|
||||
#define MICROPY_HW_CAN1_RX (pin_D0)
|
||||
|
||||
// SD card detect switch
|
||||
#define MICROPY_HW_SDCARD_DETECT_PIN (pin_G2)
|
||||
#define MICROPY_HW_SDCARD_DETECT_PULL (GPIO_PULLUP)
|
||||
|
|
|
@ -22,6 +22,8 @@ D14,PB9
|
|||
D15,PB8
|
||||
D22,PB5
|
||||
D23,PB3
|
||||
D67,PD0
|
||||
D66,PD1
|
||||
DAC1,PA4
|
||||
DAC2,PA5
|
||||
LED1,PB0
|
||||
|
|
|
|
@ -34,6 +34,7 @@
|
|||
#include "stm32h7xx_hal_crc.h"
|
||||
#include "stm32h7xx_hal_dac.h"
|
||||
#include "stm32h7xx_hal_dcmi.h"
|
||||
#include "stm32h7xx_hal_fdcan.h"
|
||||
#include "stm32h7xx_hal_flash.h"
|
||||
#include "stm32h7xx_hal_gpio.h"
|
||||
#include "stm32h7xx_hal_hash.h"
|
||||
|
@ -60,6 +61,7 @@
|
|||
#define HAL_DAC_MODULE_ENABLED
|
||||
#define HAL_DCMI_MODULE_ENABLED
|
||||
#define HAL_DMA_MODULE_ENABLED
|
||||
#define HAL_FDCAN_MODULE_ENABLED
|
||||
#define HAL_FLASH_MODULE_ENABLED
|
||||
#define HAL_GPIO_MODULE_ENABLED
|
||||
#define HAL_HASH_MODULE_ENABLED
|
||||
|
|
Loading…
Reference in New Issue