aboutsummaryrefslogtreecommitdiffstats
path: root/ports
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-07-26 17:39:01 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-07-26 17:39:01 +0000
commitb27329f45b8e51d9ee2149e2ea102d13ce15f886 (patch)
tree33b6f362c3d385d3a2843e14417664c246e10aa0 /ports
parent169c9d8fb9971aac8158a7b226c1a76cc14d9ab2 (diff)
downloadChibiOS-b27329f45b8e51d9ee2149e2ea102d13ce15f886.tar.gz
ChibiOS-b27329f45b8e51d9ee2149e2ea102d13ce15f886.tar.bz2
ChibiOS-b27329f45b8e51d9ee2149e2ea102d13ce15f886.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@366 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'ports')
-rw-r--r--ports/ARMCM3/nvic.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/ports/ARMCM3/nvic.h b/ports/ARMCM3/nvic.h
index 96a70ea85..13a04fe78 100644
--- a/ports/ARMCM3/nvic.h
+++ b/ports/ARMCM3/nvic.h
@@ -31,9 +31,9 @@ typedef struct {
IOREG32 RVR;
IOREG32 CVR;
IOREG32 CBVR;
-} ST;
+} CM3_ST;
-#define STBase ((ST *)0xE000E010)
+#define STBase ((CM3_ST *)0xE000E010)
#define ST_CSR (STBase->CSR)
#define ST_RVR (STBase->RVR)
#define ST_CVR (STBase->CVR)
@@ -70,9 +70,9 @@ typedef struct {
IOREG32 IABR[8];
IOREG32 unused5[56];
IOREG32 IPR[60];
-} NVIC;
+} CM3_NVIC;
-#define NVICBase ((NVIC *)0xE000E100)
+#define NVICBase ((CM3_NVIC *)0xE000E100)
#define NVIC_ISER(n) (NVICBase->ISER[n])
#define NVIC_ICER(n) (NVICBase->ICER[n])
#define NVIC_ISPR(n) (NVICBase->ISPR[n])
@@ -95,9 +95,9 @@ typedef struct {
IOREG32 MMFAR;
IOREG32 BFAR;
IOREG32 AFSR;
-} SCB;
+} CM3_SCB;
-#define SCBBase ((SCB *)0xE000ED00)
+#define SCBBase ((CM3_SCB *)0xE000ED00)
#define SCB_CPUID (SCBBase->CPUID)
#define SCB_ICSR (SCBBase->ICSR)
#define SCB_VTOR (SCBBase->VTOR)