aboutsummaryrefslogtreecommitdiffstats
path: root/include/clock.h
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2017-12-30 16:29:09 -0500
committerClyne Sullivan <tullivan99@gmail.com>2017-12-30 16:29:09 -0500
commitde7c4fb07d1ac0298e7fc62000c35193e221aaae (patch)
tree8e80c957d5b5066d92d943746ce8ef533d666b01 /include/clock.h
parent5f137a4fd613ccccb31f014481ff45be028cbcdf (diff)
pendsv, clock lib
Diffstat (limited to 'include/clock.h')
-rw-r--r--include/clock.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/clock.h b/include/clock.h
new file mode 100644
index 0000000..9d4b17a
--- /dev/null
+++ b/include/clock.h
@@ -0,0 +1,16 @@
+#ifndef CLOCK_H_
+#define CLOCK_H_
+
+#include <stdint.h>
+
+/**
+ * Sets HCLK (system clock) to 80MHz, the maximum.
+ */
+extern void clock_init(void);
+
+/**
+ * Sleeps for given milliseconds.
+ */
+void delay(uint32_t ms);
+
+#endif // CLOCK_H_