GPS IRQ added to increase gps time sync accuracy
This commit is contained in:
1 parent
4824e2c096
commit
359b31e9e9
9 files changed
+68
-33
No files matched your search
+3
-1
@@ -83,6 +83,7 @@ typedef struct {
|
||||
uint8_t satellites;
|
||||
uint16_t hdop;
|
||||
int16_t altitude;
|
||||
time_t utctime;
|
||||
} gpsStatus_t;
|
||||
|
||||
typedef struct {
|
||||
@@ -111,12 +112,13 @@ extern uint16_t volatile macs_total, macs_wifi, macs_ble,
|
||||
batt_voltage; // display values
|
||||
extern bool volatile TimePulseTick; // 1sec pps flag set by GPS or RTC
|
||||
extern timesource_t timeSource;
|
||||
extern hw_timer_t *displayIRQ, *ppsIRQ;
|
||||
extern hw_timer_t *displayIRQ, *ppsIRQ, *gpsIRQ;
|
||||
extern SemaphoreHandle_t I2Caccess;
|
||||
extern TaskHandle_t irqHandlerTask, ClockTask;
|
||||
extern TimerHandle_t WifiChanTimer;
|
||||
extern Timezone myTZ;
|
||||
extern time_t userUTCTime;
|
||||
extern time_t volatile gps_pps_time;
|
||||
|
||||
// application includes
|
||||
#include "led.h"
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#define TIMESYNC_IRQ 0x10
|
||||
#define MASK_IRQ 0x20
|
||||
#define UNMASK_IRQ 0x40
|
||||
#define RESERVED_IRQ 0x80
|
||||
#define GPS_IRQ 0x80
|
||||
|
||||
#include "globals.h"
|
||||
#include "cyclic.h"
|
||||
@@ -27,4 +27,8 @@ void IRAM_ATTR DisplayIRQ();
|
||||
void IRAM_ATTR ButtonIRQ();
|
||||
#endif
|
||||
|
||||
#if (HAS_GPS)
|
||||
void IRAM_ATTR GpsIRQ();
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user