added DCF77 function (experimental, not fully working yet)
This commit is contained in:
1 parent
9cb828bfbd
commit
39e2df7a05
9 files changed
+300
-19
No files matched your search
+4
-1
@@ -11,11 +11,14 @@
|
||||
#include "bme680mems.h"
|
||||
#endif
|
||||
|
||||
// Needed for RTC time sync if RTC present on board
|
||||
#ifdef HAS_RTC
|
||||
#include "rtctime.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAS_DCF77
|
||||
#include "dcf77.h"
|
||||
#endif
|
||||
|
||||
void doHousekeeping(void);
|
||||
uint64_t uptime(void);
|
||||
void reset_counters(void);
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
#ifndef _DCF77_H
|
||||
#define _DCF77_H
|
||||
|
||||
#include "globals.h"
|
||||
|
||||
extern TaskHandle_t DCF77Task;
|
||||
extern hw_timer_t *dcfCycle;
|
||||
|
||||
enum dcf_pulses { dcf_off, dcf_zero, dcf_one };
|
||||
|
||||
int dcf77_init(void);
|
||||
void dcf77_loop(void *pvParameters);
|
||||
void IRAM_ATTR DCF77IRQ(void);
|
||||
void sendDCF77(void);
|
||||
|
||||
#endif
|
||||
@@ -2,7 +2,6 @@
|
||||
#define _IF482_H
|
||||
|
||||
#include "globals.h"
|
||||
#include "irqhandler.h"
|
||||
|
||||
extern TaskHandle_t IF482Task;
|
||||
|
||||
|
||||
Reference in new issue
Block a user