diff options
author | JF <jf@codingfield.com> | 2020-10-27 19:38:45 +0100 |
---|---|---|
committer | JF <jf@codingfield.com> | 2020-10-27 19:38:45 +0100 |
commit | 1bb2eb9dcd59fbb198be157e34b7ff25367adea0 (patch) | |
tree | 6bebf5630cedb1cf0476e590563964616d8dc456 /src/BootloaderVersion.h | |
parent | ab7acd0f076899fafb1cb5ff233a9c6b6b1ca15b (diff) |
Disable sleep mode on the SPI NOR Flash when the version is unknown. This is because the current bootloader (which does not exposes its version) cannot initialize the chip when it's in sleep mode.
This feature will be re-enabled when the bootloader expses it's version.
Diffstat (limited to 'src/BootloaderVersion.h')
-rw-r--r-- | src/BootloaderVersion.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/BootloaderVersion.h b/src/BootloaderVersion.h new file mode 100644 index 00000000..c7fcbd98 --- /dev/null +++ b/src/BootloaderVersion.h @@ -0,0 +1,12 @@ +#pragma once + +namespace Pinetime { + class BootloaderVersion { + public: + static uint32_t Major(); + static uint32_t Minor(); + static uint32_t Patch(); + static const char* VersionString(); + static bool IsValid(); + }; +}
\ No newline at end of file |