open-ameba/RTL00_SDKV35a/component/common/network/sntp/sntp.h

22 lines
327 B
C
Raw Normal View History

2016-11-09 00:56:41 +00:00
#ifndef __SNTP_H__
#define __SNTP_H__
#include <time.h>
#ifdef __cplusplus
extern "C" {
#endif
void sntp_init(void);
void sntp_stop(void);
/* Realtek added */
void sntp_get_lasttime(long *sec, long *usec, unsigned int *tick);
2017-04-23 09:27:41 +00:00
time_t sntp_gen_system_time(int timezone);
2016-11-09 00:56:41 +00:00
#ifdef __cplusplus
}
#endif
#endif /* __SNTP_H__ */