zhouxuyang_branchV2.0
dancer114514 1 year ago
parent b6c3ce0ad3
commit 3ab472e467

@ -33,20 +33,33 @@
* @defgroup los_sys System time * @defgroup los_sys System time
* @ingroup kernel * @ingroup kernel
*/ */
/*
* name:
*
* time23/12/3
*
*
*
*/
#ifndef _LOS_SYS_H #ifndef _LOS_SYS_H
#define _LOS_SYS_H #define _LOS_SYS_H
#include "los_base.h" #include "los_base.h"
#include "los_hwi.h" #include "los_hwi.h"
#include "los_hw.h" #include "los_hw.h"
// 如果这个文件正在被 C++ 编译器处理,那么会执行这个代码块。这是为了确保 C++ 代码能正确地处理 C 语言的头文件。
#ifdef __cplusplus #ifdef __cplusplus
#if __cplusplus #if __cplusplus
extern "C" { extern "C" {
#endif /* __cplusplus */ #endif /* __cplusplus */
#endif /* __cplusplus */ #endif /* __cplusplus */
/*
*1.
*2.
*3.
*4.ID
*5.
*/
/** /**
* @ingroup los_sys * @ingroup los_sys
* System time basic function error code: Null pointer. * System time basic function error code: Null pointer.
@ -101,6 +114,11 @@ extern "C" {
* @ingroup los_typedef * @ingroup los_typedef
* system time structure. * system time structure.
*/ */
/*
*/
typedef struct tagSysTime { typedef struct tagSysTime {
UINT16 uwYear; /**< value 1970 ~ 2038 or 1970 ~ 2100 */ UINT16 uwYear; /**< value 1970 ~ 2038 or 1970 ~ 2100 */
UINT8 ucMonth; /**< value 1 - 12 */ UINT8 ucMonth; /**< value 1 - 12 */
@ -110,8 +128,8 @@ typedef struct tagSysTime {
UINT8 ucSecond; /**< value 0 - 59 */ UINT8 ucSecond; /**< value 0 - 59 */
UINT8 ucWeek; /**< value 0 - 6 */ UINT8 ucWeek; /**< value 0 - 6 */
} SYS_TIME_S; } SYS_TIME_S;
// 定义一些函数,这些函数可能用于获取系统时间或者进行时间转换。
/** /*
* @ingroup los_sys * @ingroup los_sys
* @brief Obtain the number of Ticks. * @brief Obtain the number of Ticks.
* *

Loading…
Cancel
Save