diff options
author | root <root@ka-ata-killa.ourano.james.local> | 2021-03-20 16:20:42 +0000 |
---|---|---|
committer | root <root@ka-ata-killa.ourano.james.local> | 2021-03-20 16:20:42 +0000 |
commit | 5b8f47a70a57765ba04a4d75dfa31a2f55f75029 (patch) | |
tree | 7f74f74344d9e8fdca1a6e0cfee2f957e1135540 /app/prototypes.h | |
parent | 4342064ee35d4facf1ad4cbde8f6f84460df02a0 (diff) | |
download | clock-5b8f47a70a57765ba04a4d75dfa31a2f55f75029.tar.gz clock-5b8f47a70a57765ba04a4d75dfa31a2f55f75029.tar.bz2 clock-5b8f47a70a57765ba04a4d75dfa31a2f55f75029.zip |
add alarm support
Diffstat (limited to 'app/prototypes.h')
-rw-r--r-- | app/prototypes.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/app/prototypes.h b/app/prototypes.h index e763d3d..66f6586 100644 --- a/app/prototypes.h +++ b/app/prototypes.h @@ -72,6 +72,8 @@ extern int time_known; extern const struct rcc_clock_scale hse_10mhz_3v3_168; extern int main(void); /* time_fn.c */ +extern EPOCH time_epoch_sub(EPOCH a, EPOCH b); +extern EPOCH time_epoch_add(EPOCH a, EPOCH b); extern UTC time_epoch_to_utc(EPOCH epoch); extern EPOCH time_utc_to_epoch(UTC u); extern void utc_to_str(char *dst, UTC *u); @@ -79,8 +81,12 @@ extern void time_print_utc(const char *p, UTC *u, const char *t); extern void time_print_epoch(const char *p, EPOCH e, const char *t); extern double time_utc_to_tjd(UTC u); extern double time_utc_to_ra(UTC u); +extern double time_st_to_ra(ST st); +extern double ra_normalize(double ra); extern ST time_ra_to_st(double ra); extern ST time_utc_to_lst(UTC u, double lon); +extern int time_ra_cmp(double a, double b); +extern EPOCH time_ra_to_next_epoch(EPOCH l, double tra); /* ntp.c */ extern void ntp_init(void); /* dcf77.c */ @@ -92,6 +98,7 @@ extern void dcf77_init(void); extern int check_parity(uint8_t *d, unsigned s, unsigned e, uint8_t p); extern unsigned bcd(uint8_t *d, unsigned s, unsigned e); extern unsigned le_bcd(uint8_t *d, unsigned s, unsigned e); +extern unsigned xtoi(char c); /* stats.c */ /* gps.c */ extern unsigned gps_sats_searching; @@ -191,6 +198,8 @@ extern void ptp_slow_tick(void); extern void display_report_fix(char fix, char fix2); extern void display_report_svin(int valid, int active); extern void display_dispatch(void); -/* fs.c */ +/* httpd.c */ +extern EPOCH alarm; extern int fs_open_custom(struct fs_file *file, const char *name); extern void fs_close_custom(struct fs_file *file); +extern void cgi_init(void); |