stm32/boards/NUCLEO_H743ZI: Enable FDCAN on this board.

This commit is contained in:
iabdalkader 2019-09-16 01:57:08 +02:00 committed by Damien George
parent f7a07b3605
commit 4f78ba3cf4
3 changed files with 9 additions and 0 deletions

View File

@ -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)

View File

@ -22,6 +22,8 @@ D14,PB9
D15,PB8
D22,PB5
D23,PB3
D67,PD0
D66,PD1
DAC1,PA4
DAC2,PA5
LED1,PB0

1 A0 PA0
22 D15 PB8
23 D22 PB5
24 D23 PB3
25 D67 PD0
26 D66 PD1
27 DAC1 PA4
28 DAC2 PA5
29 LED1 PB0

View File

@ -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