mirror of
https://github.com/jialexd/sdk-ameba-v4.0c_180328.git
synced 2024-11-28 09:10:28 +00:00
21 lines
330 B
C
Executable file
21 lines
330 B
C
Executable file
#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);
|
|
struct tm sntp_gen_system_time(int timezone);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __SNTP_H__ */
|