forked from gary/ems
2
0
Fork 0
sun_ems/ems_c/driver/drv_rtc.h

23 lines
780 B
C
Raw 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.

/*****************************************************************************
* @copyright 1997-2050, . POWER SUPPLY CO., LTD.
* @file drv_rtc.h
* @brief xx功能
* @author Gary
* @date 2024-09-29
* @remark
*****************************************************************************/
#ifndef DRV_RTC_H
#define DRV_RTC_H
#include <stdint.h>
#include <pthread.h>
#include <stdio.h>
/*********************************************************************
* @brief 设置系统时间
* @param[in] sec: 1970年以来的秒数
* @return 0成功1失败
*********************************************************************/
int setSysTime(time_t sec, char linuxPass[50]);
#endif // DRV_RTC_H