/* * Check_Shunt_Limits.c * * Created on: Jun 16, 2022 * Author: max */ #include "Check_Shunt_Limits.h" void CheckShuntLimits() { uint32_t tick = HAL_GetTick(); if (((shuntlastmessage + SHUNT_TIMEOUT) < HAL_GetTick()) && (HAL_GetTick() > 2000)) { AMS_Error_Handler(0x06); } /*if(shuntcurrent > SHUNT_OVERCURRENT) { AMS_Error_Handler(0x07); } if(shuntbusbartemp > SHUNT_OVERTEMP) { AMS_Error_Handler(0x08); }*/ }