aboutsummaryrefslogtreecommitdiff
path: root/system-clock/include/delay.h
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2018-01-15 15:09:00 -0700
committerJosh Rahm <joshuarahm@gmail.com>2018-01-15 15:09:00 -0700
commit3b7d25e1586082a7c5d0066a56d80f7c55862e38 (patch)
treef5f6ab68da4b4e4ef4fceecd27b31816545db5ef /system-clock/include/delay.h
parent79c73cd2734d5e3b3c86885ebcb28aa36a2d0f56 (diff)
downloadstm32l4-3b7d25e1586082a7c5d0066a56d80f7c55862e38.tar.gz
stm32l4-3b7d25e1586082a7c5d0066a56d80f7c55862e38.tar.bz2
stm32l4-3b7d25e1586082a7c5d0066a56d80f7c55862e38.zip
broke apart main.c into delay.* and isr_vector.*
Diffstat (limited to 'system-clock/include/delay.h')
-rw-r--r--system-clock/include/delay.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/system-clock/include/delay.h b/system-clock/include/delay.h
new file mode 100644
index 0000000..65a26d6
--- /dev/null
+++ b/system-clock/include/delay.h
@@ -0,0 +1,12 @@
+#ifndef H__DELAY__
+#define H__DELAY__
+
+#include <stdint.h>
+
+/*
+ * Loops and count-downs the delay, the time this takes depends on the speed
+ * of the clock.
+ */
+void delay(uint32_t delay);
+
+#endif /* H__DELAY__ */