📄 reset.h
字号:
/* $Id: reset.h,v 1.3 2005/06/28 19:04:34 nairnj Exp $ */
#ifndef __RESET_H
#define __RESET_H
/* PIC18 Reset-related operations */
#define WDT_ENABLED
#define STVR_ENABLED /*Stack Over/ Under flow reset enable control */
#ifndef __18C601
#ifndef __18C801
#define BOR_ENABLED
#define NOT_RBPU RBPU
#endif
#endif
char isMCLR(void); /* MCLR reset? */
void StatusReset(void); /* Reset the POR and BOR bits */
#if defined(BOR_ENABLED)
char isBOR(void); /* BOR reset? */
#endif
#if defined(WDT_ENABLED)
char isWDTTO(void); /* WDT timeout during operation? */
char isWDTWU(void); /* WDT timeout during sleep? */
#endif
char isPOR(void); /* POR reset? */
char isWU(void); /* Wakeup during sleep? */
char isLVD(void); /*LVD-- Low voltage detect? */
#endif /* __RESET_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -