mirror of
https://github.com/xushoucai/RTL8710_SDK_GCC_VERSION.git
synced 2024-11-24 05:24:15 +00:00
905d81784e
including cross compilation of the installation, compile, link, run, debug, and so on. SDK implementation of the function: 1, WiFi connection settings (including AP mode and STA mode). 2, peripheral resource control (including GPIO, SPI, UART, IIC, etc.). 3, the user uses the sample method.
21 lines
330 B
C
21 lines
330 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);
|
|
struct tm sntp_gen_system_time(int timezone);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __SNTP_H__ */
|