summaryrefslogtreecommitdiff
path: root/src/Components/FirmwareValidator/FirmwareValidator.h
diff options
context:
space:
mode:
authorJF <jf@codingfield.com>2020-08-11 17:50:00 +0200
committerJF <jf@codingfield.com>2020-08-11 17:50:00 +0200
commitbbfc20c3ff4b741cd21b162389905a59a8e22f3f (patch)
tree75b8e00398b14aa8b887013e93adcb0edecfe75f /src/Components/FirmwareValidator/FirmwareValidator.h
parent27fa273d8315f972931dba7971a99b0fbba7360e (diff)
Add new screen that allows the user to manually validate the new firmware he's just OTA'ed.
Still need to find a way to display this screen when needed.
Diffstat (limited to 'src/Components/FirmwareValidator/FirmwareValidator.h')
-rw-r--r--src/Components/FirmwareValidator/FirmwareValidator.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Components/FirmwareValidator/FirmwareValidator.h b/src/Components/FirmwareValidator/FirmwareValidator.h
new file mode 100644
index 00000000..aa576d88
--- /dev/null
+++ b/src/Components/FirmwareValidator/FirmwareValidator.h
@@ -0,0 +1,18 @@
+#pragma once
+
+#include <cstdint>
+
+namespace Pinetime {
+ namespace Controllers {
+ class FirmwareValidator {
+ public:
+ void Validate();
+ bool IsValidated() const;
+
+ void Reset();
+ private:
+ static constexpr uint32_t validBitAdress {0x7BFE8};
+ static constexpr uint32_t validBitValue {1};
+ };
+ }
+}