rtcinclude.h

来自「在PXA270上替换开发板的实时时钟RTC4513为DS1302的修改说明,自己」· C头文件 代码 · 共 20 行

H
20
字号
#ifndef ___RTCINCLUDE_H___
#define ___RTCINCLUDE_H___

//通过这个头文件,以后可以达到非常简单的切换RTC4513和SD1302
	#if 1
	extern void RTC4513_Init(void);
	extern void RTC4513GetRealTime(LPSYSTEMTIME lpst);
	extern void RTC4513SetRealTime(LPSYSTEMTIME lpst);
	#else
	extern void DS1302_Init(void);
	extern void DS1302GetRealTime(LPSYSTEMTIME lpst);
	extern void DS1302SetRealTime(LPSYSTEMTIME lpst);
	
	#define RTC4513_Init DS1302_Init
	#define RTC4513GetRealTime DS1302GetRealTime
	#define RTC4513SetRealTime DS1302SetRealTime
	#endif

#endif

⌨️ 快捷键说明

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