FluxDC/components/FluxTime/FluxTime.h

36 lines
605 B
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* @file FluxTimer.h
* @brief 时间同步头文件
*
* 用于芯片内部时钟同步Not Used
*
* @author wang xiang en
* @date 2025-04-18
* @version 版本号
* @copyright 版权声明((C)2025, YUWELL MEDTECH Co.ltd
*/
#ifndef _FLUX_TIME_H
#define _FLUX_TIME_H
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
/* 每隔多久进行一次时间数据更新*/
#define SYSTEM_TIME_UPDATE_INTERVAL_SEC 1
/*时间同步任务*/
void time_synic_task(void *arg);
/*获取当前时间*/
char* get_time_str(void);
#ifdef __cplusplus
}
#endif
#endif /*_FLUX_TIME_H */