2024-12-11 04:57 AM
Hi all I want to know About WKUIE bit in IER STM32F407 disc board.
I have configured filters for Fifo so do I have to enable WKUIE bit in IER register because even I have not enable it still I am able to receive data as RXinterrupt in rxfifopendingmessage . so can you explain me is it okay to let it disable or enable .
PFA code
void CAN1_RX0IRQHandler(void)
{
HAL_CAN_IRQHandler(&hcan1);
}
/* Receive FIFO 0 message pending interrupt management *********************/
if ((interrupts & CAN_IT_RX_FIFO0_MSG_PENDING) != 0U)
{
/* Check if message is still pending */
if ((hcan->Instance->RF0R & CAN_RF0R_FMP0) != 0U)
{
/* Receive FIFO 0 message pending Callback */
#if USE_HAL_CAN_REGISTER_CALLBACKS == 1
/* Call registered callback*/
hcan->RxFifo0MsgPendingCallback(hcan);
#else
/* Call weak (surcharged) callback */
HAL_CAN_RxFifo0MsgPendingCallback(hcan);
#endif /* USE_HAL_CAN_REGISTER_CALLBACKS */
}
}