📄 isbor.c
字号:
#include "reset.h"
#ifdef _BOR
/*********************************************************************
* Function Name : isBOR
* Description : Checks if reset is due to brown-out
* Parameters : None
* Return Value : Return 1 if reset is due to BOR , else 0
*********************************************************************/
char isBOR(void)
{
/* returns 1 if reset is due to BOR */
return (RCONbits.BOR && !(RCONbits.POR));
}
#else
#warning "Does not build on this target"
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -