1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 15:38:11 +00:00

bootloader/loader: print version to log

This commit is contained in:
Pavol Rusnak 2017-04-06 17:21:03 +02:00
parent 364bcedb04
commit 4f9f351a16
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
5 changed files with 23 additions and 2 deletions

View File

@ -6,6 +6,7 @@
#include "display.h"
#include "image.h"
#include "sdcard.h"
#include "version.h"
#define BOOTLOADER_FGCOLOR 0xFFFF
#define BOOTLOADER_BGCOLOR 0x0000
@ -155,7 +156,7 @@ int main(void)
display_clear();
display_backlight(255);
BOOTLOADER_PRINTLN("TREZOR Bootloader");
BOOTLOADER_PRINTLN("TREZOR Bootloader " VERSION_STR);
BOOTLOADER_PRINTLN("=================");
BOOTLOADER_PRINTLN("starting bootloader");

View File

@ -0,0 +1,9 @@
#define VERSION_MAJOR 0
#define VERSION_MINOR 1
#define VERSION_PATCH 0
#define VERSION_BUILD 0
#define STR_HELPER(X) #X
#define STRINGIZE(X) STR_HELPER(X)
#define VERSION_STR STRINGIZE(VERSION_MAJOR) "." STRINGIZE(VERSION_MINOR) "." STRINGIZE(VERSION_PATCH) "." STRINGIZE(VERSION_BUILD)

View File

@ -2,3 +2,8 @@
#define VERSION_MINOR 1
#define VERSION_PATCH 0
#define VERSION_BUILD 0
#define STR_HELPER(X) #X
#define STRINGIZE(X) STR_HELPER(X)
#define VERSION_STR STRINGIZE(VERSION_MAJOR) "." STRINGIZE(VERSION_MINOR) "." STRINGIZE(VERSION_PATCH) "." STRINGIZE(VERSION_BUILD)

View File

@ -6,6 +6,7 @@
#include "display.h"
#include "image.h"
#include "touch.h"
#include "version.h"
#define LOADER_FGCOLOR 0xFFFF
#define LOADER_BGCOLOR 0x0000
@ -102,7 +103,7 @@ int main(void)
display_clear();
display_backlight(255);
LOADER_PRINTLN("TREZOR Loader");
LOADER_PRINTLN("TREZOR Loader " VERSION_STR);
LOADER_PRINTLN("=============");
LOADER_PRINTLN("starting loader");

View File

@ -2,3 +2,8 @@
#define VERSION_MINOR 1
#define VERSION_PATCH 0
#define VERSION_BUILD 0
#define STR_HELPER(X) #X
#define STRINGIZE(X) STR_HELPER(X)
#define VERSION_STR STRINGIZE(VERSION_MAJOR) "." STRINGIZE(VERSION_MINOR) "." STRINGIZE(VERSION_PATCH) "." STRINGIZE(VERSION_BUILD)