application: display version

This commit is contained in:
King Kévin 2018-02-26 12:14:11 +01:00
parent 02be8b122e
commit edad01f1f7
1 changed files with 5 additions and 11 deletions

View File

@ -233,16 +233,10 @@ static void command_bootloader(void* argument)
static void command_version(void* argument)
{
(void)argument; // we won't use the argument
printf("BusVoodoo board: %s\n", busvoodoo_full ? "full" : "light");
printf("hardware revision: ");
if (busvoodoo_revision) {
printf("%u", busvoodoo_revision);
} else {
printf("unknown");
}
printf("\n");
printf("hardware flavor: %s\n", busvoodoo_full ? "full" : "light");
printf("board version: %c\n", busvoodoo_version);
printf("firmware date: %04u-%02u-%02u\n", BUILD_YEAR, BUILD_MONTH, BUILD_DAY);
printf("board ID: %08x%08x%08x\n", DESIG_UNIQUE_ID0, DESIG_UNIQUE_ID1, DESIG_UNIQUE_ID2);
printf("device ID: %08x%08x%08x\n", DESIG_UNIQUE_ID0, DESIG_UNIQUE_ID1, DESIG_UNIQUE_ID2);
}
/** process user command
@ -300,10 +294,10 @@ void main(void)
} else {
printf("light");
}
printf(" version)\n");
printf(")\n");
// setup terminal
terminal_prefix = "BV: "; // set default prefix
terminal_prefix = "BV"; // set default prefix
terminal_process = &process_command; // set central function to process commands
terminal_setup(); // start terminal