ds1744rtc.h

来自「MPC826X挂接实时时钟芯片DS1744的驱动」· C头文件 代码 · 共 47 行

H
47
字号
/* ds1744Rtc.h - Dallas Semiconductor 1744 RTC Real Time Clock header *//* Copyright 2002 Wind River Systems, Inc. *//*modification history--------------------01a,16apr02,rab  written.*/#ifndef __INCds1744Rtch#define __INCds1744Rtch#ifdef __cplusplusextern "C" {#endif#ifndef _ASMLANGUAGE/* register offsets */#define DS1744_RTC_CENTURY      0x7ff8#define DS1744_RTC_SEC      0x7ff9#define DS1744_RTC_MIN      0x7ffa#define DS1744_RTC_HOUR     0x7ffb#define DS1744_RTC_DAY_OF_WK    0x7ffc#define     DS1744_RTC_DAY_OF_MN    0x7ffd#define DS1744_RTC_MONTH    0x7ffe#define     DS1744_RTC_YEAR     0x7fff#define DS1744_BIT_OSC      0x80#define DS1744_BIT_RED      0x40#define DS1744_BIT_WRT      0x80#endif  /* _ASMLANGUAGE */STATUS sysRtcGet ( struct tm *tm);STATUS sysRtcSet ( struct tm *tm);STATUS sysRtcInit ( void);void sysRtcShutdown(void);#ifdef __cplusplus}#endif#endif /* __INCds1744Rtch */

⌨️ 快捷键说明

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