Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jannis Rieger
firmware
Commits
13ad01e8
Commit
13ad01e8
authored
Aug 21, 2019
by
ch3
Committed by
schneider
Aug 21, 2019
Browse files
fix(splashscreen): Display useful version info
parent
d65034fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
epicardium/main.c
View file @
13ad01e8
...
...
@@ -5,6 +5,7 @@
#include
"FreeRTOS.h"
#include
"task.h"
#include
"mxc_delay.h"
#include
<stdlib.h>
#include
<string.h>
...
...
@@ -17,9 +18,13 @@ int main(void)
LOG_DEBUG
(
"startup"
,
"Initializing hardware ..."
);
hardware_early_init
();
epic_disp_print
(
5
,
5
,
"card10 firmware"
,
0x0000
,
0xffff
);
epic_disp_print
(
5
,
5
,
"Tag: v1.1"
,
0x0000
,
0xffff
);
epic_disp_print
(
5
,
5
,
"Commit: f54e3c0"
,
0x0000
,
0xffff
);
char
*
commit_buf
=
"Commit: "
CARD10_GITHASH
;
char
*
version_buf
=
"Version: "
CARD10_VERSION
;
commit_buf
[
16
]
=
'\0'
;
epic_disp_print
(
5
,
5
,
"card10 firmware"
,
0x0000
,
0xffff
);
epic_disp_print
(
25
,
5
,
version_buf
,
0x0000
,
0xffff
);
epic_disp_print
(
45
,
5
,
commit_buf
,
0x0000
,
0xffff
);
mxc_delay
(
5000000
);
LOG_DEBUG
(
"startup"
,
"Initializing tasks ..."
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment