Merge pull request 'Implement CAN bus reading with CMSIS-RTOS-V2' (#14) from j1939 into main #14

Manually merged
eeeck merged 71 commits from j1939 into main 2026-06-15 10:30:45 +02:00
Showing only changes of commit 0b05331fff - Show all commits
+5 -3
View File
@@ -445,9 +445,11 @@ void Error_Handler(void)
//TODO: check if it is necessary to stop FreeRTOS
uint32_t error_code;
if (hcan == &hcan1) error_code = HAL_CAN_GetError(&hcan1);
else if (hcan == &hcan2) error_code = HAL_CAN_GetError(&hcan2);
uint32_t error_can1 == 0;
uint32_t error_can2 == 0;
if (HAL_CAN_GetState(&hcan1) != HAL_CAN_STATE_READY) error_code = HAL_CAN_GetError(&hcan1);
else if (HAL_CAN_GetState(&hcan2) != HAL_CAN_STATE_READY) error_code = HAL_CAN_GetError(&hcan2);
// TODO: write error to SD and/or serial