26 lines
572 B
C++
26 lines
572 B
C++
#include <Arduino.h>
|
|
|
|
#include "settings.h"
|
|
|
|
/*
|
|
void power_gps_wakeup() {
|
|
Serial.println(F("Warn: GPS wakeup isn't implemented yet."));
|
|
}
|
|
|
|
void power_gps_standby() {
|
|
Serial.println(F("Warn: GPS standby isn't implemented yet."));
|
|
}
|
|
*/
|
|
|
|
void power_off() {
|
|
Serial.println(F("[power] Shutting down"));
|
|
// Serial.println(F("[power] Switching GPS module to standby"));
|
|
// power_gps_standby();
|
|
|
|
Serial.println(F("[power] Signalling TPL5111"));
|
|
pinMode(PIN_TPL_DONE, OUTPUT);
|
|
digitalWrite(PIN_TPL_DONE, HIGH);
|
|
|
|
// Wait until we're turned off
|
|
while(true) delay(100);
|
|
}
|