diff options
Diffstat (limited to 'os/ports')
-rw-r--r-- | os/ports/IAR/ARMCMx/chcore_v7m.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/os/ports/IAR/ARMCMx/chcore_v7m.c b/os/ports/IAR/ARMCMx/chcore_v7m.c index ee6e41360..ab227efa6 100644 --- a/os/ports/IAR/ARMCMx/chcore_v7m.c +++ b/os/ports/IAR/ARMCMx/chcore_v7m.c @@ -116,8 +116,6 @@ void _port_init(void) { #if CORTEX_USE_FPU
{
- uint32_t reg;
-
/* Initializing the FPU context save in lazy mode.*/
SCB_FPCCR = FPCCR_ASPEN | FPCCR_LSPEN;
@@ -125,7 +123,7 @@ void _port_init(void) { SCB_CPACR |= 0x00F00000;
/* Enables FPU context save/restore on exception entry/exit (FPCA bit).*/
- __set_control(__get_control() | 4);
+ __set_CONTROL(__get_CONTROL() | 4);
/* FPSCR and FPDSCR initially zero.*/
__set_FPSCR(0);
|