1
0
Fork 0
InfiniTime/src/drivers/Watchdog.h

18 lines
428 B
C
Raw Normal View History

#pragma once
namespace Pinetime {
namespace Drivers {
class Watchdog {
public:
enum class ResetReasons { ResetPin, Watchdog, SoftReset, CpuLockup, SystemOff, LpComp, DebugInterface, NFC, HardReset };
void Setup(uint8_t timeoutSeconds);
void Start();
void Kick();
ResetReasons ResetReason();
static const char* ResetReasonToString(ResetReasons reason);
};
}
}