mirror of
https://github.com/andreili/katapult.git
synced 2025-08-24 03:44:06 +02:00
led: introduce a short delay before reading initial time
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
a84b354cee
commit
849b81dce5
@ -22,6 +22,9 @@ led_init(void)
|
|||||||
if (!CONFIG_ENABLE_LED)
|
if (!CONFIG_ENABLE_LED)
|
||||||
return;
|
return;
|
||||||
led = gpio_out_setup(led_gpio, led_gpio_high);
|
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();
|
last_blink_time = timer_read_time();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user