summaryrefslogtreecommitdiff
path: root/cortex_m/fpu.h
blob: e5d4872034315d64bf3ee2485074a49502d060b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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