Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kestrel Collaboration
Kestrel Firmware
Bare Metal Firmware
Commits
066b0159
Commit
066b0159
authored
4 years ago
by
Evan Lojewski
Committed by
Raptor Engineering Development Team
4 years ago
Browse files
Options
Download
Email Patches
Plain Diff
main: Cleanup display_character to improve readability.
parent
8104ca0b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
23 deletions
+23
-23
main.c
main.c
+23
-23
No files found.
main.c
View file @
066b0159
...
...
@@ -236,36 +236,36 @@ static void display_character(char character, int dp)
// FIXME Only supports numbers for now
switch
(
character
)
{
case
0x30
:
case
'0'
:
value
=
0x003f
;
break
;
// 0
case
0x31
:
break
;
case
'1'
:
value
=
0x0006
;
break
;
// 1
case
0x32
:
break
;
case
'2'
:
value
=
0x221b
;
break
;
// 2
case
0x33
:
break
;
case
'3'
:
value
=
0x220f
;
break
;
// 3
case
0x34
:
break
;
case
'4'
:
value
=
0x2226
;
break
;
// 4
case
0x35
:
break
;
case
'5'
:
value
=
0x222d
;
break
;
// 5
case
0x36
:
break
;
case
'6'
:
value
=
0x223d
;
break
;
// 6
case
0x37
:
break
;
case
'7'
:
value
=
0x0007
;
break
;
// 7
case
0x38
:
break
;
case
'8'
:
value
=
0x223f
;
break
;
// 8
case
0x39
:
break
;
case
'9'
:
value
=
0x222f
;
break
;
// 9
break
;
default:
value
=
0x0000
;
break
;
// OFF
...
...
@@ -2426,7 +2426,7 @@ int main(void)
uart_init
();
gpio_init
();
display_character
(
0x30
,
0
);
// STATUS CODE: 0
display_character
(
'0'
,
0
);
// STATUS CODE: 0
for
(
int
i
=
0
;
i
<
MAX_CPUS_SUPPORTED
;
i
++
)
{
...
...
@@ -2486,7 +2486,7 @@ int main(void)
memset32
((
uint32_t
*
)
host_flash_buffer
,
0xdeadbeef
,
0x4000000
/
4
);
printf
(
"
\r
Internal host ROM buffer cleared
\n
"
);
display_character
(
0x31
,
0
);
// STATUS CODE: 1
display_character
(
'1'
,
0
);
// STATUS CODE: 1
#ifdef WITH_SPI
host_spi_flash_init
();
...
...
@@ -2554,7 +2554,7 @@ int main(void)
#endif
#endif
display_character
(
0x32
,
0
);
// STATUS CODE: 2
display_character
(
'2'
,
0
);
// STATUS CODE: 2
puts
(
"
\n
Raptor Open FSP
\n
Built "
__DATE__
" "
__TIME__
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
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