Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

H7 FDCAN driver. #4793

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions ports/stm32/Makefile
Expand Up @@ -256,6 +256,8 @@ SRC_C = \
qspi.c \
uart.c \
can.c \
fdcan.c \
pyb_can.c \
usb.c \
wdt.c \
eth.c \
Expand Down
5 changes: 5 additions & 0 deletions ports/stm32/boards/NUCLEO_H743ZI/mpconfigboard.h
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions ports/stm32/boards/NUCLEO_H743ZI/pins.csv
Expand Up @@ -22,6 +22,8 @@ D14,PB9
D15,PB8
D22,PB5
D23,PB3
D67,PD0
D66,PD1
DAC1,PA4
DAC2,PA5
LED1,PB0
Expand Down
2 changes: 2 additions & 0 deletions ports/stm32/boards/stm32h7xx_hal_conf_base.h
Expand Up @@ -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"
Expand All @@ -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
Expand Down