37 #ifndef _FPU_H_INCLUDED_ 38 #define _FPU_H_INCLUDED_ 43 #define ADDR_CPACR 0xE000ED88 46 #define REG_CPACR (*((volatile uint32_t *)ADDR_CPACR)) static __always_inline bool fpu_is_enabled(void)
Check if FPU is enabled.
static irqflags_t cpu_irq_save(void)
Get and clear the global interrupt flags.
static void cpu_irq_restore(irqflags_t flags)
Restore global interrupt flags.
Commonly used includes, types and macros.
static __always_inline void fpu_disable(void)
Disable FPU.
uint32_t irqflags_t
Type used for holding state of interrupt flag.
static __always_inline void fpu_enable(void)
Enable FPU.