📄 watchdogrtc.h
字号:
//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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -