Get build (kinda, not really) running on a NRF52

Lots of NO_ESP32 to remove later...
This commit is contained in:
geeksville
2020-04-14 20:22:27 -07:00
parent 0b62083e35
commit 0a6af936ed
22 changed files with 240 additions and 55 deletions

View File

@@ -2,10 +2,15 @@
#include "Arduino.h"
#include "Observer.h"
#include "esp_sleep.h"
#include "configuration.h"
void doDeepSleep(uint64_t msecToWake);
#ifndef NO_ESP32
#include "esp_sleep.h"
esp_sleep_wakeup_cause_t doLightSleep(uint64_t msecToWake);
extern esp_sleep_source_t wakeCause;
#endif
void setGPSPower(bool on);
// Perform power on init that we do on each wake from deep sleep
@@ -15,7 +20,6 @@ void setCPUFast(bool on);
void setLed(bool ledOn);
extern int bootCount;
extern esp_sleep_source_t wakeCause;
// is bluetooth sw currently running?
extern bool bluetoothOn;