Release CANrx semaphore in ISR
This commit is contained in:
@@ -85,6 +85,9 @@ void HAL_CAN_RxFifo0MsgPendingCallback(CAN_HandleTypeDef *hcan)
|
|||||||
|
|
||||||
// send errors like queue full via UART
|
// send errors like queue full via UART
|
||||||
}
|
}
|
||||||
|
|
||||||
|
osSemaphoreId_t semaphore = (hcan->Instance == CAN1) ? xSemaphoreCAN1 : xSemaphoreCAN2;
|
||||||
|
osSemaphoreRelease(semaphore);
|
||||||
/* CODE END */
|
/* CODE END */
|
||||||
}
|
}
|
||||||
/* END HAL_CAN_RxFifo0MsgPendingCallback */
|
/* END HAL_CAN_RxFifo0MsgPendingCallback */
|
||||||
|
|||||||
Reference in New Issue
Block a user