rtc_util.h

来自「umon bootloader source code, support mip」· C头文件 代码 · 共 36 行

H
36
字号
/* rtc_util.h

    Author: David de la Cruz, Technology Rescue.
    email:  ddlc@techresc.net

	Modification History :

	Version 1.0:
		09.05.2003 : New.
*/



#define ORIGINYEAR  2000	/* 2000 */
#define JAN1WEEK    2       /* Tuesday */


typedef struct _SYSTEMTIME {  
	ulong year;
	ulong month;
	ulong dayofweek;
	ulong day;
	ulong hour;
	ulong minute;
	ulong second;
	ulong milliseconds;
} SYSTEMTIME, *PSYSTEMTIME;

//--------------------------------------------------------------------------
// function prototypes
//
void GetSystemTime(unsigned int cur_time, PSYSTEMTIME lpst);
void SetSystemTime(SYSTEMTIME ThisTime, unsigned int *cur_time);

void rtc_init(void);

⌨️ 快捷键说明

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