📄 hal_assert.c
字号:
/*******************************************************************************
Filename: hal_assert.c
Description: Assert functionality
*******************************************************************************/
/*******************************************************************************
* INCLUDES
*/
#include "hal_assert.h"
#include "hal_led.h"
#include "hal_mcu.h"
#include "hal_defs.h"
/*******************************************************************************
* GLOBAL FUNCTIONS
*/
/*******************************************************************************
* @fn halAssertHandler
*
* @brief Logic to handle an assert.
*
* @param none
*
* @return none
***********************************************************************************
*/
void halAssertHandler(void)
{
// execute code that handles asserts
// blink all leds
while(TRUE){
halLedToggle(1);
halLedToggle(2);
halLedToggle(3);
halLedToggle(4);
halMcuWaitMs(50);
}
}
/*------------------------------------------------------------------------------
0ooo
ooo0 ( )
( ) ) /
\ ( (_/
\_) Modify By:cuiqingwei [gary]
------------------------------------------------------------------------------*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -