rtc.h

来自「矿工定位系统单端」· C头文件 代码 · 共 54 行

H
54
字号
//rtc.h - code recommendation for C header file
/***********************************************************************
MODULE:    Real Time Clock
VERSION:   1.00
CONTAINS:  Routines for controlling the Real Time Clock/System Timer
           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 _RTCH_
#define _RTCH_

/***********************************************************************
DESC:    Initializes the Real Time Clock and starts it running
         Generates an interrupt every 1.997ms
         Clock source: CPU Clock at 7.3728 MHz
RETURNS: Nothing
CAUTION: Set EA to 1 to enable interrupts
************************************************************************/
extern void rtc_init
  (
  void
  );

/***********************************************************************
DESC:    Starts the Real Time Clock
RETURNS: Nothing
CAUTION: rtc_init must be called first
************************************************************************/
extern void rtc_start
  (
  void
  );

/***********************************************************************
DESC:    Stops the Real Time Clock
RETURNS: Nothing
CAUTION: rtc_init must be called first
************************************************************************/
extern void rtc_stop
  (
  void
  );

#endif // _RTCH_

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?