From 700e35c6ac74a64719fbc38fe66386dd422613f3 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sun, 9 Jun 2019 20:26:30 -0400 Subject: armcm_timer: Unify udelay() implementation Move the udelay() code from various arm board directories into the src/generic/armcm_timer.c code. Signed-off-by: Kevin O'Connor --- src/stm32f0/main.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/stm32f0/main.c') diff --git a/src/stm32f0/main.c b/src/stm32f0/main.c index 89d8a6e5..1a167a32 100644 --- a/src/stm32f0/main.c +++ b/src/stm32f0/main.c @@ -84,15 +84,6 @@ void clock_config(void) HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit); } -// Implement simple early-boot delay mechanism -void -udelay(uint32_t usecs) -{ - uint32_t end = timer_read_time() + timer_from_us(usecs); - while (timer_is_before(timer_read_time(), end)) - ; -} - void watchdog_reset(void) { -- cgit v1.2.3-70-g09d2