summaryrefslogtreecommitdiff
path: root/cortex_m
diff options
context:
space:
mode:
Diffstat (limited to 'cortex_m')
-rw-r--r--cortex_m/fpu.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/cortex_m/fpu.h b/cortex_m/fpu.h
new file mode 100644
index 0000000..e5d4872
--- /dev/null
+++ b/cortex_m/fpu.h
@@ -0,0 +1,20 @@
+#ifndef FPU_H
+#define FPU_H
+
+#include <stdint.h>
+
+struct COPROC_t {
+ volatile uint32_t CPAC;
+};
+
+static COPROC_t& COPROC = *(COPROC_t*)0xe000ed88;
+
+struct FPU_t {
+ volatile uint32_t FPCC;
+ volatile uint32_t FPCA;
+ volatile uint32_t FPDSC;
+};
+
+static FPU_t& FPU = *(FPU_t*)0xe000ef34;
+
+#endif