cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F0 HAL_CAN_ActivateNotification guide

Iviti.1
Associate III

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.

10 REPLIES 10
Iviti.1
Associate III

Although interrupts is now equal to 6, so I am back to

  if ((interrupts & CAN_IT_RX_FIFO0_FULL) != 0U)