mirror of
https://github.com/stnolting/neorv32.git
synced 2025-04-23 21:57:33 -04:00
extended diff in time test
This commit is contained in:
parent
7070abe1d3
commit
8b790ca0ea
1 changed files with 3 additions and 3 deletions
|
@ -311,9 +311,9 @@ int main() {
|
|||
|
||||
|
||||
// ----------------------------------------------------------
|
||||
// Test time[h] (must be == MTIME)
|
||||
// Test time (must be == MTIME.TIME)
|
||||
// ----------------------------------------------------------
|
||||
neorv32_uart_printf("TIME[H]: ");
|
||||
neorv32_uart_printf("TIME: ");
|
||||
cnt_test++;
|
||||
|
||||
cpu_systime.uint64 = neorv32_cpu_get_systime();
|
||||
|
@ -322,7 +322,7 @@ int main() {
|
|||
// compute difference
|
||||
mtime_systime = mtime_systime - cpu_systime.uint64;
|
||||
|
||||
if (mtime_systime < 100) { // diff should be pretty small
|
||||
if (mtime_systime < 4096) { // diff should be pretty small depending on bus latency
|
||||
test_ok();
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue