2021-09-08 06:28 AM
I am trying to set up a hal can receive interrupt. After thorough googling, I found that HAL_CAN_Receive_IT is deprecated and that I should now be using HAL_CAN_ActivateNotification with a callback function. Unfortunately no one describes how to do this. In fact, if I search the HAL manual (um1785) for "HAL_CAN_ActivateNotification" I get 0 results. It looks like the STM32F0 line just doesnt have CAN interrupt capabilities.
Solved! Go to Solution.
2021-09-21 01:04 PM
Although interrupts is now equal to 6, so I am back to
if ((interrupts & CAN_IT_RX_FIFO0_FULL) != 0U)