v08 - add error handling

This commit is contained in:
2024-10-18 10:54:47 +02:00
parent dc2dedf822
commit 2fbc3b3023
14 changed files with 3030 additions and 191 deletions

View File

@ -38,6 +38,8 @@
// Driver
#include "DIPO_DigitalPorts.h"
#include "ERRH_ErrorHandler.h"
// include STM32 drivers
#include "stm32l4xx_hal.h"
@ -258,8 +260,8 @@ void HAL_CAN_RxFifo0MsgPendingCallback( CAN_HandleTypeDef *hcan ){
// Returns: None
//-------------------------------------------------------------------------------------------------
void HAL_CAN_ErrorCallback( CAN_HandleTypeDef *hcan ){
// U32 u32Error = hcan->ErrorCode;
/** TODO: Can Error Handling */
U32 u32Error = hcan->ErrorCode;
ERRH_vSetError(CAN_ERROR_MASK | u32Error);
}