aboutsummaryrefslogtreecommitdiffstats
path: root/os/ports
diff options
context:
space:
mode:
authorbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-07-10 06:18:50 +0000
committerbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-07-10 06:18:50 +0000
commit354905fec185aa512cf3434e383aa5dcc1d8caab (patch)
tree1466d0b525c32f6371ad54f16bb19ef2b811a67a /os/ports
parent0ffd6299f338fcc0b5fb5183f7c3ba41a3bb4eb2 (diff)
downloadChibiOS-354905fec185aa512cf3434e383aa5dcc1d8caab.tar.gz
ChibiOS-354905fec185aa512cf3434e383aa5dcc1d8caab.tar.bz2
ChibiOS-354905fec185aa512cf3434e383aa5dcc1d8caab.zip
Arm math. Fixed precompile check detecting MCU core.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4449 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/ports')
-rw-r--r--os/ports/common/ARMCMx/CMSIS/include/arm_math.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/os/ports/common/ARMCMx/CMSIS/include/arm_math.h b/os/ports/common/ARMCMx/CMSIS/include/arm_math.h
index b6eb12889..266dbfc91 100644
--- a/os/ports/common/ARMCMx/CMSIS/include/arm_math.h
+++ b/os/ports/common/ARMCMx/CMSIS/include/arm_math.h
@@ -261,7 +261,10 @@
#if defined(STM32F4XX)
#define ARM_MATH_CM4
#define __FPU_PRESENT 1
-#elif (defined(STM32F2XX) || defined(STM32F1XX) || defined(STM32L1XX))
+#elif (defined(STM32F10X_LD) || defined(STM32F10X_LD_VL) || \
+ defined(STM32F10X_MD) || defined(STM32F10X_MD_VL) || \
+ defined(STM32F10X_HD) || defined(STM32F10X_XL) || \
+ defined(STM32F10X_CL))
#define ARM_MATH_CM3
#elif defined(STM32F0XX)
#define ARM_MATH_CM0