⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rtc.h

📁 arm芯片LPC2214下的实时时钟DS1302的源程序
💻 H
字号:
/****************************************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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -