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
fa478062
Commit
fa478062
authored
4 years ago
by
Evan Lojewski
Committed by
Raptor Engineering Development Team
4 years ago
Browse files
Options
Download
Email Patches
Plain Diff
boot_codes: Use address 0x81 and 0x82 for high/low post codes (off by one).
parent
a0102037
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
main.c
main.c
+7
-6
No files found.
main.c
View file @
fa478062
...
...
@@ -1839,18 +1839,19 @@ static void host_background_service_task_event_loop(void)
{
uint8_t
post_code
=
(
read_aquila_register
(
HOSTLPCSLAVE_BASE
,
AQUILA_LPC_REG_STATUS3
)
>>
AQUILA_LPC_STATUS_ACT_WDATA_SHIFT
)
&
AQUILA_LPC_STATUS_ACT_WDATA_MASK
;
if
(
enable_post_code_console_output
)
{
printf
(
"[POST CODE] %d:%d
\n
"
,
address
-
0x80
,
post_code
);
}
if
(
address
==
0x80
)
if
(
address
==
0x81
)
{
post_code_high
=
post_code
;
}
else
if
(
address
==
0x8
1
)
else
if
(
address
==
0x8
2
)
{
post_code_low
=
post_code
;
set_led_bank_display
(((
post_code_high
&
0xf
)
<<
4
)
|
(
post_code_low
&
0xf
));
if
(
enable_post_code_console_output
)
{
printf
(
"[POST CODE] %d.%d
\n
"
,
post_code_high
,
post_code_low
);
}
}
}
...
...
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