/************************************************************************************************** * @fn halAssertHandler * * @brief Logic to handle an assert. * * @param none * * @return none ************************************************************************************************** */ void halAssertHandler(void) { /* execute code that handles asserts */ #ifdef ASSERT_RESET HAL_SYSTEM_RESET(); #else halAssertHazardLights(); #endif }
/************************************************************************************************** * @fn halAssertHandler * * @brief Logic to handle an assert. * * @param none * * @return none ************************************************************************************************** */ void halAssertHandler(void) { /* execute code that handles asserts */ #ifdef ASSERT_RESET HAL_SYSTEM_RESET(); #elif !defined ASSERT_WHILE halAssertHazardLights(); #else while(1); #endif }
/************************************************************************************************** * @fn halAssertHandler * * @brief Logic to handle an assert. * * @param none * * @return none ************************************************************************************************** */ void halAssertHandler( void ) { #if defined( HAL_ASSERT_RESET ) HAL_SYSTEM_RESET(); #elif defined ( HAL_ASSERT_LIGHTS ) halAssertHazardLights(); #elif defined( HAL_ASSERT_SPIN ) volatile uint8 i = 1; HAL_DISABLE_INTERRUPTS(); while(i); #endif return; }