added IF482 time telegram generator (experimental)
This commit is contained in:
1 parent
8d3d4fe812
commit
44b821f2a5
7 files changed
+96
-5
No files matched your search
@@ -2,5 +2,9 @@
|
||||
#define _IF482_H
|
||||
|
||||
#include "globals.h"
|
||||
#include "irqhandler.h"
|
||||
|
||||
void if482_init(void);
|
||||
void sendIF482(time_t t);
|
||||
|
||||
#endif
|
||||
@@ -5,6 +5,7 @@
|
||||
#define BUTTON_IRQ 0x02
|
||||
#define SENDCOUNTER_IRQ 0x04
|
||||
#define CYCLIC_IRQ 0x08
|
||||
#define IF482_IRQ 0x10
|
||||
|
||||
#include "globals.h"
|
||||
#include "cyclic.h"
|
||||
@@ -25,4 +26,10 @@ void IRAM_ATTR DisplayIRQ();
|
||||
void IRAM_ATTR ButtonIRQ();
|
||||
#endif
|
||||
|
||||
#ifdef HAS_IF482
|
||||
#include "if482.h"
|
||||
void IRAM_ATTR IF482IRQ();
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
||||
@@ -18,6 +18,8 @@ typedef enum {
|
||||
synced_GPS = 4 // best possible quality, clock is driven by GPS
|
||||
} clock_state_t;
|
||||
|
||||
extern RtcDS3231<TwoWire> Rtc; // make RTC instance globally available
|
||||
|
||||
int rtc_init(void);
|
||||
void sync_rtctime(void);
|
||||
int set_rtctime(uint32_t UTCTime);
|
||||
|
||||
Reference in new issue
Block a user