reset.h

来自「pic系列单片机头文件源文件(c18 开发环境)」· C头文件 代码 · 共 35 行

H
35
字号
/* $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 + =
减小字号Ctrl + -
显示快捷键?