mirror of
https://github.com/stnolting/neorv32.git
synced 2025-04-24 14:17:51 -04:00
cpu now also shows project license
This commit is contained in:
parent
beacc708b1
commit
09f8942a59
1 changed files with 4 additions and 5 deletions
|
@ -107,12 +107,10 @@ int main() {
|
|||
uint32_t uint32[sizeof(uint64_t)/2];
|
||||
} cpu_systime;
|
||||
|
||||
|
||||
// reset performance counter
|
||||
neorv32_cpu_set_minstret(0);
|
||||
neorv32_cpu_set_mcycle(0);
|
||||
|
||||
|
||||
// check if UART unit is implemented at all
|
||||
if (neorv32_uart_available() == 0) {
|
||||
return 0;
|
||||
|
@ -123,11 +121,9 @@ int main() {
|
|||
return 0;
|
||||
}
|
||||
|
||||
|
||||
// init UART at default baud rate, no rx interrupt, no tx interrupt
|
||||
neorv32_uart_setup(BAUD_RATE, 0, 0);
|
||||
|
||||
|
||||
neorv32_mtime_set_time(0);
|
||||
// set CMP of machine system timer MTIME to max to prevent an IRQ
|
||||
uint64_t mtime_cmp_max = 0xFFFFFFFFFFFFFFFFL;
|
||||
|
@ -139,6 +135,9 @@ int main() {
|
|||
// show project credits
|
||||
neorv32_rte_print_credits();
|
||||
|
||||
// show project license
|
||||
neorv32_rte_print_license();
|
||||
|
||||
// show full HW config report
|
||||
neorv32_rte_print_hw_config();
|
||||
|
||||
|
@ -227,6 +226,7 @@ int main() {
|
|||
neorv32_uart_printf("skipped (disabled)\n");
|
||||
#endif
|
||||
|
||||
|
||||
// ----------------------------------------------------------
|
||||
// Data memory test
|
||||
// ----------------------------------------------------------
|
||||
|
@ -260,7 +260,6 @@ int main() {
|
|||
#endif
|
||||
|
||||
|
||||
|
||||
// ----------------------------------------------------------
|
||||
// Test time[h] (must be == MTIME)
|
||||
// ----------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue