mirror of
https://github.com/pvvx/RTL00_WEB.git
synced 2024-12-01 02:30:31 +00:00
22 lines
327 B
C
22 lines
327 B
C
|
#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);
|
||
|
time_t sntp_gen_system_time(int timezone);
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
#endif /* __SNTP_H__ */
|