aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32f0
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-06-09 20:26:30 -0400
committerKevin O'Connor <kevin@koconnor.net>2019-06-09 20:27:57 -0400
commit700e35c6ac74a64719fbc38fe66386dd422613f3 (patch)
tree2a829c04c12f3b6393d842f1835c2f8f8df023dc /src/stm32f0
parent97840f9851772ffbcc99b8e33c82b0af4770baa8 (diff)
downloadkutter-700e35c6ac74a64719fbc38fe66386dd422613f3.tar.gz
kutter-700e35c6ac74a64719fbc38fe66386dd422613f3.tar.xz
kutter-700e35c6ac74a64719fbc38fe66386dd422613f3.zip
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 <kevin@koconnor.net>
Diffstat (limited to 'src/stm32f0')
-rw-r--r--src/stm32f0/internal.h1
-rw-r--r--src/stm32f0/main.c9
2 files changed, 0 insertions, 10 deletions
diff --git a/src/stm32f0/internal.h b/src/stm32f0/internal.h
index 5247a9c7..35c3000f 100644
--- a/src/stm32f0/internal.h
+++ b/src/stm32f0/internal.h
@@ -9,7 +9,6 @@
extern uint8_t const avail_pins[];
-void udelay(uint32_t usecs);
void gpio_init(void);
void TimerInit(void);
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)
{