aboutsummaryrefslogtreecommitdiffstats
path: root/os/nil/ports/ARMCMx/nilcore.h
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2015-03-26 11:12:55 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2015-03-26 11:12:55 +0000
commita3e2fd30898b3890a53a505103b5e2535fc34533 (patch)
treec4f074a1fc366fe6c30b948e1c137e3a47babd86 /os/nil/ports/ARMCMx/nilcore.h
parente54e465a69b55dc88710cba9e7b6f0e88bd4a618 (diff)
downloadChibiOS-a3e2fd30898b3890a53a505103b5e2535fc34533.tar.gz
ChibiOS-a3e2fd30898b3890a53a505103b5e2535fc34533.tar.bz2
ChibiOS-a3e2fd30898b3890a53a505103b5e2535fc34533.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7810 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/nil/ports/ARMCMx/nilcore.h')
-rw-r--r--os/nil/ports/ARMCMx/nilcore.h37
1 files changed, 2 insertions, 35 deletions
diff --git a/os/nil/ports/ARMCMx/nilcore.h b/os/nil/ports/ARMCMx/nilcore.h
index d2777aeee..dd5756cf3 100644
--- a/os/nil/ports/ARMCMx/nilcore.h
+++ b/os/nil/ports/ARMCMx/nilcore.h
@@ -66,17 +66,6 @@
/** @} */
-/**
- * @name Cortex-M variants
- * @{
- */
-#define CORTEX_M0 0 /**< @brief Cortex-M0 variant. */
-#define CORTEX_M0PLUS 1 /**< @brief Cortex-M0+ variant. */
-#define CORTEX_M1 10 /**< @brief Cortex-M1 variant. */
-#define CORTEX_M3 30 /**< @brief Cortex-M3 variant. */
-#define CORTEX_M4 40 /**< @brief Cortex-M4 variant. */
-/** @} */
-
/* Inclusion of the Cortex-Mx implementation specific parameters.*/
#include "cmparams.h"
@@ -98,27 +87,6 @@
/* Derived constants and error checks. */
/*===========================================================================*/
-/* The following code is not processed when the file is included from an
- asm module.*/
-#if !defined(_FROM_ASM_)
-
-/*
- * Inclusion of the appropriate CMSIS header for the selected device.
- */
-#if CORTEX_MODEL == CORTEX_M0
-#include "core_cm0.h"
-#elif CORTEX_MODEL == CORTEX_M0PLUS
-#include "core_cm0plus.h"
-#elif CORTEX_MODEL == CORTEX_M3
-#include "core_cm3.h"
-#elif CORTEX_MODEL == CORTEX_M4
-#include "core_cm4.h"
-#else
-#error "unknown or unsupported Cortex-M model"
-#endif
-
-#endif /* !defined(_FROM_ASM_) */
-
/*===========================================================================*/
/* Module data structures and types. */
/*===========================================================================*/
@@ -211,10 +179,9 @@ struct port_intctx {};
/*===========================================================================*/
/* Includes the sub-architecture-specific part.*/
-#if (CORTEX_MODEL == CORTEX_M0) || (CORTEX_MODEL == CORTEX_M0PLUS) || \
- (CORTEX_MODEL == CORTEX_M1)
+#if (CORTEX_MODEL == 0) || (CORTEX_MODEL == 1)
#include "nilcore_v6m.h"
-#elif (CORTEX_MODEL == CORTEX_M3) || (CORTEX_MODEL == CORTEX_M4)
+#elif (CORTEX_MODEL == 3) || (CORTEX_MODEL == 4)
#include "nilcore_v7m.h"
#endif