summaryrefslogtreecommitdiff
path: root/src/hal/clock.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/hal/clock.rs')
-rw-r--r--src/hal/clock.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/hal/clock.rs b/src/hal/clock.rs
new file mode 100644
index 0000000..5c97a91
--- /dev/null
+++ b/src/hal/clock.rs
@@ -0,0 +1,10 @@
+struct Pwr {
+ cr : u32,
+ csr : u32,
+}
+
+extern "C" {
+ static mut __Pwr_base : u32;
+}
+
+static PWR: *mut Pwr = __Pwr_base as *mut Pwr;