2020-08-11 17:50:00 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
|
|
|
|
namespace Pinetime {
|
|
|
|
namespace Controllers {
|
|
|
|
class FirmwareValidator {
|
2021-04-24 11:00:45 +02:00
|
|
|
public:
|
2021-04-18 19:28:14 +02:00
|
|
|
void Validate();
|
|
|
|
bool IsValidated() const;
|
2020-08-11 17:50:00 +02:00
|
|
|
|
2021-04-18 19:28:14 +02:00
|
|
|
void Reset();
|
|
|
|
|
2021-04-24 11:00:45 +02:00
|
|
|
private:
|
2021-04-18 19:28:14 +02:00
|
|
|
static constexpr uint32_t validBitAdress {0x7BFE8};
|
|
|
|
static constexpr uint32_t validBitValue {1};
|
2020-08-11 17:50:00 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|