From e1f35463ed863f65de82314d0ac06118d095fa7e Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 13 Nov 2011 11:14:10 +0000 Subject: Cortex-M4 officially supported. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3491 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/ports/RVCT/ARMCMx/LPC11xx/cmparams.h | 5 +++++ os/ports/RVCT/ARMCMx/LPC13xx/cmparams.h | 5 +++++ os/ports/RVCT/ARMCMx/STM32F1xx/cmparams.h | 5 +++++ os/ports/RVCT/ARMCMx/STM32L1xx/cmparams.h | 5 +++++ os/ports/RVCT/ARMCMx/chcore.h | 5 +++-- 5 files changed, 23 insertions(+), 2 deletions(-) (limited to 'os/ports/RVCT/ARMCMx') diff --git a/os/ports/RVCT/ARMCMx/LPC11xx/cmparams.h b/os/ports/RVCT/ARMCMx/LPC11xx/cmparams.h index 7289af9e7..63f22c0a0 100644 --- a/os/ports/RVCT/ARMCMx/LPC11xx/cmparams.h +++ b/os/ports/RVCT/ARMCMx/LPC11xx/cmparams.h @@ -47,6 +47,11 @@ */ #define CORTEX_HAS_MPU FALSE +/** + * @brief Floating Point unit presence. + */ +#define CORTEX_HAS_FPU FALSE + /** * @brief Number of bits in priority masks. */ diff --git a/os/ports/RVCT/ARMCMx/LPC13xx/cmparams.h b/os/ports/RVCT/ARMCMx/LPC13xx/cmparams.h index e484d7aad..46af8fc4e 100644 --- a/os/ports/RVCT/ARMCMx/LPC13xx/cmparams.h +++ b/os/ports/RVCT/ARMCMx/LPC13xx/cmparams.h @@ -47,6 +47,11 @@ */ #define CORTEX_HAS_MPU FALSE +/** + * @brief Floating Point unit presence. + */ +#define CORTEX_HAS_FPU FALSE + /** * @brief Number of bits in priority masks. */ diff --git a/os/ports/RVCT/ARMCMx/STM32F1xx/cmparams.h b/os/ports/RVCT/ARMCMx/STM32F1xx/cmparams.h index 2bd7715a4..67f0fb969 100644 --- a/os/ports/RVCT/ARMCMx/STM32F1xx/cmparams.h +++ b/os/ports/RVCT/ARMCMx/STM32F1xx/cmparams.h @@ -47,6 +47,11 @@ */ #define CORTEX_HAS_MPU FALSE +/** + * @brief Floating Point unit presence. + */ +#define CORTEX_HAS_FPU FALSE + /** * @brief Number of bits in priority masks. */ diff --git a/os/ports/RVCT/ARMCMx/STM32L1xx/cmparams.h b/os/ports/RVCT/ARMCMx/STM32L1xx/cmparams.h index b43bbd92a..a6617e33d 100644 --- a/os/ports/RVCT/ARMCMx/STM32L1xx/cmparams.h +++ b/os/ports/RVCT/ARMCMx/STM32L1xx/cmparams.h @@ -47,6 +47,11 @@ */ #define CORTEX_HAS_MPU TRUE +/** + * @brief Floating Point unit presence. + */ +#define CORTEX_HAS_FPU FALSE + /** * @brief Number of bits in priority masks. */ diff --git a/os/ports/RVCT/ARMCMx/chcore.h b/os/ports/RVCT/ARMCMx/chcore.h index 7c4e82613..08b3a2ccb 100644 --- a/os/ports/RVCT/ARMCMx/chcore.h +++ b/os/ports/RVCT/ARMCMx/chcore.h @@ -50,8 +50,9 @@ #include "cmparams.h" /* Cortex model check, only M0 and M3 supported right now.*/ -#if (CORTEX_MODEL == CORTEX_M0) || (CORTEX_MODEL == CORTEX_M3) -#elif (CORTEX_MODEL == CORTEX_M1) || (CORTEX_MODEL == CORTEX_M4) +#if (CORTEX_MODEL == CORTEX_M0) || (CORTEX_MODEL == CORTEX_M3) || \ + (CORTEX_MODEL == CORTEX_M4) +#elif (CORTEX_MODEL == CORTEX_M1) #warning "untested Cortex-M model" #else #error "unknown or unsupported Cortex-M model" -- cgit v1.2.3