103#ifndef NTP_DEFAULT_SERVERS
104#define NTP_DEFAULT_SERVERS \
105 "0.slimhazard.pool.ntp.org 1.slimhazard.pool.ntp.org " \
106 "2.slimhazard.pool.ntp.org 3.slimhazard.pool.ntp.org"
117#ifndef NTP_DEFAULT_RESPONSE_TMO_S
118#define NTP_DEFAULT_RESPONSE_TMO_S (15)
133#ifndef NTP_DEFAULT_RETRY_INTVL_S
134#define NTP_DEFAULT_RETRY_INTVL_S (15)
146#ifndef NTP_DEFAULT_DNS_TMO_S
147#define NTP_DEFAULT_DNS_TMO_S (10)
164#ifndef NTP_DEFAULT_REFRESH_INTVL_S
165#define NTP_DEFAULT_REFRESH_INTVL_S (30000)
214 "Sun",
"Mon",
"Tue",
"Wed",
"Thu",
"Fri",
"Sat",
233 "Jan",
"Feb",
"Mar",
"Apr",
"May",
"Jun",
234 "Jul",
"Aug",
"Sep",
"Oct",
"Nov",
"Dec",
237void time_init(
struct ntp_cfg *cfg);
bool rtc_synced(void)
Return true if the RTC has been synchronized.
#define NTP_DEFAULT_DNS_TMO_S
Default timeout for DNS resolution of the NTP server hostname.
Definition: ntp.h:147
#define NTP_DEFAULT_REFRESH_INTVL_S
Default interval for NTP refresh requests.
Definition: ntp.h:165
#define NTP_DEFAULT_RESPONSE_TMO_S
Default NTP response timeout.
Definition: ntp.h:118
static struct ntp_cfg ntp_default_cfg(void)
Get the NTP default configuration.
Definition: ntp.h:277
#define NTP_DEFAULT_SERVERS
Default NTP server addresses.
Definition: ntp.h:104
#define NTP_DEFAULT_RETRY_INTVL_S
Default NTP retry interval.
Definition: ntp.h:134
static const char * wday_name[]
Weekday name abbreviations.
Definition: ntp.h:213
static const char * month_name[]
Month name abbreviations.
Definition: ntp.h:232
NTP configuration.
Definition: ntp.h:174
unsigned response_tmo_s
Definition: ntp.h:181
const char * servers
Definition: ntp.h:179
unsigned dns_tmo_s
Definition: ntp.h:190
unsigned retry_intvl_s
Definition: ntp.h:186
unsigned refresh_intvl_s
Definition: ntp.h:198