diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-12-28 08:40:46 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-12-28 08:40:46 +0000 |
commit | 9faabcc2d2b866d40b3876853683d45fe2a202e7 (patch) | |
tree | 5df99c156057ecd787449d393981bf796191b802 /os/ports | |
parent | c7ef1b6263b3a23c535b90700bf635becf69f0f0 (diff) | |
download | ChibiOS-9faabcc2d2b866d40b3876853683d45fe2a202e7.tar.gz ChibiOS-9faabcc2d2b866d40b3876853683d45fe2a202e7.tar.bz2 ChibiOS-9faabcc2d2b866d40b3876853683d45fe2a202e7.zip |
IAR CM4 FPU support verified.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3667 35acf78f-673a-0410-8e92-d51de3d6d3f4
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);
|