owennewo / SimpleCAN

A CAN Bus library for Arduino and other platforms
9 stars 2 forks source link

'struct FDCAN_InitTypeDef' has no member named 'ClockDivider' #6

Open luzz94 opened 5 months ago

luzz94 commented 5 months ago

Hi,

I'm trying to use your library on a STM32H743 microcontroller. Actually I got the following error:

lib/SimpleCAN/src/stm/fdcan/CAN.cpp: In member function 'virtual bool STM_FDCAN::begin(int)': lib/SimpleCAN/src/stm/fdcan/CAN.cpp:67:9: error: 'struct FDCAN_InitTypeDef' has no member named 'ClockDivider' 67 | init->ClockDivider = FDCAN_CLOCK_DIV1;

by looking at this implementation seems that in the case of the STM32H7 the init->ClockDivider = FDCAN_CLOCK_DIV1; and others are not used.

any suggestion on that? i leave the code of the project that i'm working on robomarlin-development.zip