📄 ntp_setup.h
字号:
#ifndef __NTP_H__
#define __NTP_H__
#define MAX_NTP_SERVER_IP_LEN 20
#define MAX_NTP_SERVER_DOMAIN_LEN 30
typedef struct ntp_conf{
int ntp_enable;
int server_select;
char ntp_server_ip[MAX_NTP_SERVER_IP_LEN+1];
char ntp_server_domain[MAX_NTP_SERVER_DOMAIN_LEN+1];
int ntp_timezone;
}NTP_CONF;
#define NTP_OK 0 //Succeed
#define NTP_ReadConfErr -1 //Fail to read NTP settings.
#define NTP_SaveConfErr -2 //Fail to save NTP settings.
int ReadNTPConf(NTP_CONF *conf);
int SaveNTPConf(NTP_CONF *conf);
int time_zone_adjust(void);
extern NTP_CONF ntp_conf;
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -