aboutsummaryrefslogtreecommitdiff
path: root/03-refactor/include/delay.h
diff options
context:
space:
mode:
Diffstat (limited to '03-refactor/include/delay.h')
-rw-r--r--03-refactor/include/delay.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/03-refactor/include/delay.h b/03-refactor/include/delay.h
new file mode 100644
index 0000000..65a26d6
--- /dev/null
+++ b/03-refactor/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__ */