rtc.h

来自「arm芯片LPC2214下的实时时钟DS1302的源程序」· C头文件 代码 · 共 35 行

H
35
字号
/****************************************Copyright (c)************************************************
**
**                              	  深圳托普林科技有限公司
**                                 http://www.sztopping.com
**
**----------------------------------------------------------------------------------------------------
名称:RTC.h
功能:实时时钟
作者:Albert
日期:2004-11-17
说明:
*****************************************************************************************************/ 

#include  "config.h"

typedef struct tagDateTimeType
{
	uint8 year;
	uint8 month;	
	uint8 week;
	uint8 day;
	uint8 hour;
	uint8 minute;
	uint8 second;
}DateTimeType;

extern DateTimeType  gDateTime;


//实时时钟接口函数
extern void Init_RTC(void);
extern void RTC_SetClock(DateTimeType *pClock);
extern void RTC_GetClock(DateTimeType *pCurTime);

⌨️ 快捷键说明

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