Commit 066b0159 authored by Evan Lojewski's avatar Evan Lojewski Committed by Raptor Engineering Development Team

main: Cleanup display_character to improve readability.

parent 8104ca0b
...@@ -236,36 +236,36 @@ static void display_character(char character, int dp) ...@@ -236,36 +236,36 @@ static void display_character(char character, int dp)
// FIXME Only supports numbers for now // FIXME Only supports numbers for now
switch (character) switch (character)
{ {
case 0x30: case '0':
value = 0x003f; value = 0x003f;
break; // 0 break;
case 0x31: case '1':
value = 0x0006; value = 0x0006;
break; // 1 break;
case 0x32: case '2':
value = 0x221b; value = 0x221b;
break; // 2 break;
case 0x33: case '3':
value = 0x220f; value = 0x220f;
break; // 3 break;
case 0x34: case '4':
value = 0x2226; value = 0x2226;
break; // 4 break;
case 0x35: case '5':
value = 0x222d; value = 0x222d;
break; // 5 break;
case 0x36: case '6':
value = 0x223d; value = 0x223d;
break; // 6 break;
case 0x37: case '7':
value = 0x0007; value = 0x0007;
break; // 7 break;
case 0x38: case '8':
value = 0x223f; value = 0x223f;
break; // 8 break;
case 0x39: case '9':
value = 0x222f; value = 0x222f;
break; // 9 break;
default: default:
value = 0x0000; value = 0x0000;
break; // OFF break; // OFF
...@@ -2426,7 +2426,7 @@ int main(void) ...@@ -2426,7 +2426,7 @@ int main(void)
uart_init(); uart_init();
gpio_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++) for (int i = 0; i < MAX_CPUS_SUPPORTED; i++)
{ {
...@@ -2486,7 +2486,7 @@ int main(void) ...@@ -2486,7 +2486,7 @@ int main(void)
memset32((uint32_t *)host_flash_buffer, 0xdeadbeef, 0x4000000 / 4); memset32((uint32_t *)host_flash_buffer, 0xdeadbeef, 0x4000000 / 4);
printf("\rInternal host ROM buffer cleared \n"); printf("\rInternal host ROM buffer cleared \n");
display_character(0x31, 0); // STATUS CODE: 1 display_character('1', 0); // STATUS CODE: 1
#ifdef WITH_SPI #ifdef WITH_SPI
host_spi_flash_init(); host_spi_flash_init();
...@@ -2554,7 +2554,7 @@ int main(void) ...@@ -2554,7 +2554,7 @@ int main(void)
#endif #endif
#endif #endif
display_character(0x32, 0); // STATUS CODE: 2 display_character('2', 0); // STATUS CODE: 2
puts("\nRaptor Open FSP\nBuilt "__DATE__ puts("\nRaptor Open FSP\nBuilt "__DATE__
" "__TIME__ " "__TIME__
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment