diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-06-09 20:26:30 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-06-09 20:27:57 -0400 |
commit | 700e35c6ac74a64719fbc38fe66386dd422613f3 (patch) | |
tree | 2a829c04c12f3b6393d842f1835c2f8f8df023dc /src/stm32f0/main.c | |
parent | 97840f9851772ffbcc99b8e33c82b0af4770baa8 (diff) | |
download | kutter-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/main.c')
-rw-r--r-- | src/stm32f0/main.c | 9 |
1 files changed, 0 insertions, 9 deletions
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) { |