commCPU_SUPV/code/user/inc/ntpclient.h
2025-04-30 16:24:29 +08:00

25 lines
567 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef NTPCLIENT_DEFINES_123_INCLUDED
#define NTPCLIENT_DEFINES_123_INCLUDED
#ifdef __cplusplus
extern "C" {
#endif
/************************************************************************/
/** 本地端口,间隔时间(s)重试次数NTP服务器IP是否修改系统时间, 返回成功次数 **/
int send_ntp_data( short int udp_local_port,int cycle_time, int probe_count,
char *hostname, int set_clock_if );
int sntp_init( void );
int sntp_release( void );
/************************************************************************/
#ifdef __cplusplus
}
#endif
#endif