watchdogrtc.h
来自「矿工定位系统,包括单片机原理图,PCB,KEILC51原代码,带瓦斯检测功能,成」· C头文件 代码 · 共 80 行
H
80 行
//watchdogrtc.h - code recommendation for C header file
/***********************************************************************
MODULE: Watchdog and Real Time Clock Common Code
VERSION: 1.00
CONTAINS: Routines for controlling the Watchdog and Real Time Clock/
System Timer common interrupt on the Philips P89LPC932
COPYRIGHT: Embedded Systems Academy, Inc. - www.esacademy.com
LICENSE: May be freely used in commercial and non-commercial code
without royalties provided this copyright notice remains
in this file and unaltered
WARNING: IF THIS FILE IS REGENERATED BY CODE ARCHITECT ANY CHANGES
MADE WILL BE LOST. WHERE POSSIBLE USE ONLY CODE ARCHITECT
TO CHANGE THE CONTENTS OF THIS FILE
GENERATED: On "Feb 24 2004" at "16:21:01" by Code Architect 2.03
***********************************************************************/
#ifndef _WATCHDOGRTCH_
#define _WATCHDOGRTCH_
/***********************************************************************
DESC: Initializes and enables Watchdog and Real Time Clock interrupt
RETURNS: Nothing
CAUTION: Set EA to 1 to enable interrupts after calling
************************************************************************/
extern void watchdogrtc_isrinit
(
);
/***********************************************************************
DESC: Watchdog and Real Time Clock Interrupt Service Routine
RETURNS: Nothing
CAUTION: rtc_init or watchdog_init must be called and EA must be set
to 1 to enable interrupts
************************************************************************/
extern void watchdogrtc_isr
(
void
);
/***********************************************************************
DESC: Initializes the watchdog as a Watchdog Timer
Uses Watchdog clock at 400kHz as a clock source
Resets the device if not fed within 998.888 ms
RETURNS: Nothing
************************************************************************/
extern void watchdog_init
(
void
);
/***********************************************************************
DESC: Feeds the Watchdog to stop the device from resetting
RETURNS: Nothing
CAUTION: watchdog_init must be called first
************************************************************************/
extern void watchdog_feed
(
void
);
/***********************************************************************
DESC: Starts the Watchdog
RETURNS: Nothing
CAUTION: watchdog_init must be called first
************************************************************************/
extern void watchdog_start
(
void
);
/***********************************************************************
DESC: Stops the Watchdog
RETURNS: Nothing
CAUTION: watchdog_init must be called first
************************************************************************/
extern void watchdog_stop
(
void
);
#endif // _WATCHDOGRTCH_
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?