aboutsummaryrefslogtreecommitdiffstats
path: root/src/generic/armcm_timer.h
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/generic/armcm_timer.h
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/generic/armcm_timer.h')
-rw-r--r--src/generic/armcm_timer.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/generic/armcm_timer.h b/src/generic/armcm_timer.h
new file mode 100644
index 00000000..5e118380
--- /dev/null
+++ b/src/generic/armcm_timer.h
@@ -0,0 +1,8 @@
+#ifndef __GENERIC_ARMCM_TIMER_H
+#define __GENERIC_ARMCM_TIMER_H
+
+#include <stdint.h> // uint32_t
+
+void udelay(uint32_t usecs);
+
+#endif // serial_irq.h