FluxDC/components/FluxTime/FluxTime.h

58 lines
1.3 KiB
C
Raw Normal View History

/**
* @file FluxTimer.h
* @brief
*
* Not Used
*
* @author wang xiang en
* @date 2025-04-18
* @version
* @copyright (C)2025, YUWELL MEDTECH Co.ltd
2025-03-27 14:57:30 +08:00
*/
#ifndef _FLUX_TIME_H
#define _FLUX_TIME_H
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
/* 每隔多久进行一次时间数据更新*/
#define SYSTEM_TIME_UPDATE_INTERVAL_SEC (1)
2025-03-27 14:57:30 +08:00
/* 选择是否进行软件定时器精度测试 */
#define SYSTEM_TIME_TEST_ENABLE (0)
2025-03-27 14:57:30 +08:00
/**
* @brief
*
* 使
*
* @param[in] arg not used
*/
2025-03-27 14:57:30 +08:00
void time_synic_task(void *arg);
#if SYSTEM_TIME_TEST_ENABLE
/**
* @brief
*
* 使FreeRTOS软件定时器可以保证气阀开启周期为 0.2s 0.2s后再关闭
*
* @note cpu利用率拉升至100%0.2s的定时器1ms
* 使GPIO输出模拟气阀切换SD卡中写入当前时间戳
*
* @param[in] arg not used
*/
void soft_timer_task(void* arg);
#endif
2025-03-27 14:57:30 +08:00
/*获取当前时间*/
2025-03-28 10:13:22 +08:00
char* get_time_str(void);
2025-03-27 14:57:30 +08:00
#ifdef __cplusplus
}
#endif
#endif /*_FLUX_TIME_H */