pazi88 / STM32_CAN

CAN bus Library for Arduino STM32
GNU General Public License v3.0
67 stars 28 forks source link

Not compiling using H753ZI #28

Open Hitomamacs opened 5 months ago

Hitomamacs commented 5 months ago

Hi, im trying to use this library but when i include it in my project it doesn't compile and i get errors of missing definition of the macros

like

STM32_CAN.h:126:26: error: expected ')' before '*' token
  126 |     STM32_CAN(CAN_TypeDef* canPort, CAN_PINS pins, RXQUEUE_TABLE rxSize = RX_SIZE_16, TXQUEUE_TABLE txSize = TX_SIZE_16);  

I've created a file named hal_conf_extra.h like in the examples, the problem is that even the examples do not compile Please help me

pazi88 commented 5 months ago

That one has CANFD and not CAN interface, so that's why it doesn't compile.