Release CANrx semaphore in ISR

This commit is contained in:
2026-06-15 14:09:51 +02:00
parent ab8b68313b
commit 8c8fe93d5b
+3
View File
@@ -85,6 +85,9 @@ void HAL_CAN_RxFifo0MsgPendingCallback(CAN_HandleTypeDef *hcan)
// send errors like queue full via UART
}
osSemaphoreId_t semaphore = (hcan->Instance == CAN1) ? xSemaphoreCAN1 : xSemaphoreCAN2;
osSemaphoreRelease(semaphore);
/* CODE END */
}
/* END HAL_CAN_RxFifo0MsgPendingCallback */