📄 time.h
字号:
/*****************************************************************************\
* efs - General purpose Embedded Filesystem library *
* --------------------- ----------------------------------- *
* *
* Filename : types.h *
* Description : Headerfile for types.c *
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public *
* License as published by the Free Software Foundation; either *
* version 2.1 of the License, or (at your option) any later version. *
* *
* This library is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
* Lesser General Public License for more details. *
* *
* (c)2004 Lennart Yseboodt *
* (c)2004 Michael De Nil *
\*****************************************************************************/
#ifndef __TIME_H_
#define __TIME_H_
/*****************************************************************************/
#include "types.h"
/*****************************************************************************/
#ifdef DATE_TIME_SUPPORT
#define time_getYear() efsl_getYear()
#define time_getMonth() efsl_getMonth()
#define time_getDay() efsl_getDay()
#define time_getHour() efsl_getHour()
#define time_getMinute() efsl_getMinute()
#define time_getSecond() efsl_getSecond()
#define time_getDate() fs_makeDate()
#define time_getTime() fs_makeTime()
#else
#define time_getYear() 0x0;
#define time_getMonth() 0x0;
#define time_getDay() 0x0;
#define time_getHour() 0x0;
#define time_getMinute() 0x0;
#define time_getSecond() 0x0;
#define time_getDate() 0x0;
#define time_getTime() 0x0;
#endif
#ifdef DATE_TIME_SUPPORT
euint16 efsl_getYear(void);
euint8 efsl_getMonth(void);
euint8 efsl_getDay(void);
euint8 efsl_getHour(void);
euint8 efsl_getMinute(void);
euint8 efsl_getSecond(void);
euint16 fs_makeDate(void);
euint16 fs_makeTime(void);
#endif
euint8 fs_hasTimeSupport(void);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -