diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2012-12-31 13:55:56 +0100 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2012-12-31 14:06:20 +0100 |
commit | 8419b87c6bd7be468239d0f68155631dfb5db103 (patch) | |
tree | e7159ec683e8b0a391f06b59a4b9a1770234b97f /cortex_m | |
parent | deab534c051210678014966f60acf904ba36f81d (diff) |
Fixed FPU support.
Selecting proper FPU flags in build_rules and enabling FPU during startup.
Diffstat (limited to 'cortex_m')
-rw-r--r-- | cortex_m/fpu.h | 20 |
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 |