| 123456789101112131415161718192021222324252627282930313233343536373839 | 
							- #ifndef __SNTP_H__
 
- #define __SNTP_H__
 
- #include "lwip/udp.h"
 
- #include "lwip/def.h"
 
- #include "lwip/timers.h"
 
- #include "lwip/udp.h"
 
- #include "lwip/dns.h"
 
- #include "lwip/ip_addr.h"
 
- #include "lwip/pbuf.h"
 
- #include "stdbool.h"
 
- void vTaskSntp(void *arg);
 
- void SNTP_Enable(bool enable);
 
- bool SNTP_IsEnabled(void);
 
- void SNTP_SetServerAddr(char *addr);
 
- int sntp_getserverport(void);
 
- void SNTP_Poll(void);
 
- /*
 
- #ifdef __cplusplus
 
- extern "C" {
 
- #endif
 
- void sntp_init(void);
 
- void sntp_stop(void);
 
- #ifdef __cplusplus
 
- }
 
- #endif
 
- */
 
- #endif /* __SNTP_H__ */
 
 
  |