Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
fleur
firmware
Commits
781d4129
Verified
Commit
781d4129
authored
Aug 24, 2019
by
Rahix
Browse files
feat(epicardium): Pretty up the version splash
Signed-off-by:
Rahix
<
rahix@rahix.de
>
parent
f2f3f050
Changes
1
Hide whitespace changes
Inline
Side-by-side
epicardium/main.c
View file @
781d4129
...
...
@@ -20,9 +20,14 @@ int main(void)
LOG_DEBUG
(
"startup"
,
"Initializing hardware ..."
);
hardware_early_init
();
char
*
version_buf
=
CARD10_VERSION
;
epic_disp_print
(
0
,
5
,
"epicardium:"
,
0xffff
,
0x0000
);
epic_disp_print
(
0
,
24
,
version_buf
,
0xffff
,
0x0000
);
/*
* Version Splash
*/
const
char
*
version_buf
=
CARD10_VERSION
;
const
int
offset
=
(
160
-
(
int
)
strlen
(
version_buf
)
*
14
)
/
2
;
epic_disp_clear
(
0x3b7
);
epic_disp_print
(
10
,
20
,
"Epicardium"
,
0x290
,
0x3b7
);
epic_disp_print
(
offset
>
0
?
offset
:
0
,
40
,
version_buf
,
0x290
,
0x3b7
);
epic_disp_update
();
mxc_delay
(
2000000
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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