19#ifndef PROTOCORE_NTP_SERVICE_H
20#define PROTOCORE_NTP_SERVICE_H
28#if PROTOCORE_ENABLE_NTP
37#define PROTOCORE_NTP_SERVER1 "pool.ntp.org"
40#define PROTOCORE_NTP_SERVER2 "time.nist.gov"
54} NtpServiceSetTestEpochArgs;
84 NtpServiceBeginArgs begin_args;
85 NtpServiceSetTestEpochArgs set_test_epoch_args;
92extern NtpServiceVars NtpServiceV;
97 void (*
const begin)(uint8_t *work);
98 void (*
const synced)(uint8_t *work);
99 void (*
const epoch)(uint8_t *work);
100 void (*
const time_source)(uint8_t *work);
101 void (*
const set_test_epoch)(uint8_t *work);
106void protocore_ntp_service_begin(uint8_t *work);
107void protocore_ntp_service_synced(uint8_t *work);
108void protocore_ntp_service_epoch(uint8_t *work);
109void protocore_ntp_service_time_source(uint8_t *work);
110void protocore_ntp_service_set_test_epoch(uint8_t *work);
116static const NtpServiceNs NtpService __attribute__((unused)) = {
117 .begin = protocore_ntp_service_begin,
118 .synced = protocore_ntp_service_synced,
119 .epoch = protocore_ntp_service_epoch,
120 .time_source = protocore_ntp_service_time_source,
121 .set_test_epoch = protocore_ntp_service_set_test_epoch,
133uint8_t *protocore_ntp_service_span(
void);
#define PROTOCORE_BEGIN_DECLS
Give a header's declarations C linkage, so their symbol names carry no parameter types.
_Bool proto_bool
The truth value.
#define PROTOCORE_END_DECLS