diff options
| author | JF <jf@codingfield.com> | 2020-08-17 13:19:46 (GMT) |
|---|---|---|
| committer | Gitea <gitea@fake.local> | 2020-08-17 13:19:46 (GMT) |
| commit | 18686ac2cbf6b97dd0250234ce128bd9ad350d6e (patch) | |
| tree | c6be1439802b7087874bc0753036c62232783569 /src/Components/FirmwareValidator/FirmwareValidator.h | |
| parent | 32f20fa994fec9e21d2af4d7bd287b94316b3970 (diff) | |
| parent | 1eceafee1c97c64a1fa936e29915daca4051bb05 (diff) | |
Merge branch 'manualValidation' of JF/PineTime into develop
Diffstat (limited to 'src/Components/FirmwareValidator/FirmwareValidator.h')
| -rw-r--r-- | src/Components/FirmwareValidator/FirmwareValidator.h | 18 |
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 0000000..aa576d8 --- /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}; + }; + } +} |
