mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
soc/software/bios/main: add capability to configure TEST_USER_ABORT_DELAY
This commit is contained in:
parent
492f276247
commit
2c32791a28
1 changed files with 4 additions and 0 deletions
|
@ -468,7 +468,11 @@ static int test_user_abort(void)
|
|||
#endif
|
||||
timer0_en_write(0);
|
||||
timer0_reload_write(0);
|
||||
#ifndef TEST_USER_ABORT_DELAY
|
||||
timer0_load_write(SYSTEM_CLOCK_FREQUENCY*2);
|
||||
#else
|
||||
timer0_load_write(TEST_USER_ABORT_DELAY);
|
||||
#endif
|
||||
timer0_en_write(1);
|
||||
timer0_update_value_write(1);
|
||||
while(timer0_value_read()) {
|
||||
|
|
Loading…
Reference in a new issue