led: introduce a short delay before reading initial time

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2022-05-06 15:54:21 -04:00 committed by Eric Callahan
parent a84b354cee
commit 849b81dce5

View File

@ -22,6 +22,9 @@ led_init(void)
if (!CONFIG_ENABLE_LED)
return;
led = gpio_out_setup(led_gpio, led_gpio_high);
// The short delay is simply to ensure that the Debug Timer is
// enabled
udelay(10);
last_blink_time = timer_read_time();
}