From: Florent Kermarrec Date: Thu, 14 Jan 2016 15:53:04 +0000 (+0100) Subject: soc/software/bios/main: add capability to configure TEST_USER_ABORT_DELAY X-Git-Tag: 24jan2021_ls180~2016 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2c32791a2852705cb699388123d2ac377ce1b82d;p=litex.git soc/software/bios/main: add capability to configure TEST_USER_ABORT_DELAY --- diff --git a/litex/soc/software/bios/main.c b/litex/soc/software/bios/main.c index 9b587144..819047a1 100644 --- a/litex/soc/software/bios/main.c +++ b/litex/soc/software/bios/main.c @@ -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()) {