-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgenericBaseProject.h
More file actions
31 lines (22 loc) · 911 Bytes
/
Copy pathgenericBaseProject.h
File metadata and controls
31 lines (22 loc) · 911 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef GENERIC_BASE_PROJECT_H
#define GENERIC_BASE_PROJECT_H
#include <Arduino.h>
#include <ezTime.h>
#include "boardProfile.h"
#include "projectConfig.h"
#include "projectDisplay.h"
// NTP sync monitoring variables (updated by handleTimeSync in genericBaseProject.cpp)
extern unsigned long lastSyncTime;
extern unsigned long syncCount;
extern bool ntpSyncStatus;
// Hostname of the NTP server currently in use. The pool behind it includes
// mainland-China-reachable servers; while the clock has never synced, the
// selection rotates through the pool until a server answers.
const char *currentNtpServer();
extern ProjectDisplay *projectDisplay;
extern Timezone myTZ;
// The double-reset detector now lives in drdGuard.h - deliberate reboots must
// go through rebootCleanly() so they are not read as a double reset.
void baseProjectSetup();
void baseProjectLoop();
#endif // GENERIC_BASE_PROJECT_H