-
-
Notifications
You must be signed in to change notification settings - Fork 948
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of JF/PineTime into master
- Loading branch information
Showing
67 changed files
with
2,952 additions
and
996 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
[submodule "src/libs/lvgl"] | ||
path = src/libs/lvgl | ||
url = https://github.com/joaquimorg/lvgl.git | ||
[submodule "src/libs/littlefs"] | ||
path = src/libs/littlefs | ||
url = https://github.com/littlefs-project/littlefs.git |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,36 @@ | ||
#include <cstdint> | ||
#include <cstdio> | ||
#include "BootloaderVersion.h" | ||
|
||
using namespace Pinetime; | ||
|
||
// NOTE : current bootloader does not export its version to the application firmware. | ||
// NOTE : version < 1.0.0 of bootloader does not export its version to the application firmware. | ||
|
||
uint32_t BootloaderVersion::Major() { | ||
return 0; | ||
uint32_t BootloaderVersion::version = 0; | ||
char BootloaderVersion::versionString[BootloaderVersion::VERSION_STR_LEN] = "0.0.0"; | ||
|
||
const uint32_t BootloaderVersion::Major() { | ||
return (BootloaderVersion::version >> 16u) & 0xff; | ||
} | ||
|
||
uint32_t BootloaderVersion::Minor() { | ||
return 0; | ||
const uint32_t BootloaderVersion::Minor() { | ||
return (BootloaderVersion::version >> 8u) & 0xff; | ||
} | ||
|
||
uint32_t BootloaderVersion::Patch() { | ||
return 0; | ||
const uint32_t BootloaderVersion::Patch() { | ||
return BootloaderVersion::version & 0xff; | ||
} | ||
|
||
const char* BootloaderVersion::VersionString() { | ||
return "0.0.0"; | ||
return BootloaderVersion::versionString; | ||
} | ||
|
||
const bool BootloaderVersion::IsValid() { | ||
return BootloaderVersion::version >= 0x00010000; | ||
} | ||
|
||
bool BootloaderVersion::IsValid() { | ||
return false; | ||
void BootloaderVersion::SetVersion(uint32_t v) { | ||
BootloaderVersion::version = v; | ||
snprintf(BootloaderVersion::versionString, BootloaderVersion::VERSION_STR_LEN, "%ld.%ld.%ld", | ||
BootloaderVersion::Major(), BootloaderVersion::Minor(), BootloaderVersion::Patch()); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.