From 28270e815e81ebd5e44d6b91b7041d63833974cc Mon Sep 17 00:00:00 2001 From: gdisirio Date: Wed, 21 Dec 2011 20:06:52 +0000 Subject: [PATCH] Updated IAR projects. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3647 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- demos/ARMCM0-LPC1114-LPCXPRESSO/iar/ch.ewp | 156 +++++++++++++++---- demos/ARMCM3-LPC1343-LPCXPRESSO/iar/ch.ewp | 158 ++++++++++++++++---- demos/ARMCM3-STM32F100-DISCOVERY/iar/ch.ewp | 38 ++++- demos/ARMCM3-STM32F103/iar/ch.ewp | 38 ++++- demos/ARMCM3-STM32F103ZG-FATFS/iar/ch.ewp | 38 ++++- demos/ARMCM3-STM32F107/iar/ch.ewp | 38 ++++- demos/ARMCM3-STM32L152-DISCOVERY/iar/ch.ewp | 38 ++++- demos/ARMCM4-STM32F407-DISCOVERY/iar/ch.ewp | 38 ++++- os/kernel/include/chsys.h | 10 +- 9 files changed, 458 insertions(+), 94 deletions(-) diff --git a/demos/ARMCM0-LPC1114-LPCXPRESSO/iar/ch.ewp b/demos/ARMCM0-LPC1114-LPCXPRESSO/iar/ch.ewp index 20644e255..b757f4985 100644 --- a/demos/ARMCM0-LPC1114-LPCXPRESSO/iar/ch.ewp +++ b/demos/ARMCM0-LPC1114-LPCXPRESSO/iar/ch.ewp @@ -12,7 +12,7 @@ General 3 - 18 + 21 1 1 + + + + ICCARM 2 - 26 + 28 1 1 + @@ -592,7 +616,7 @@ ILINK 0 - 11 + 14 1 1 + + + + + + + @@ -877,7 +929,7 @@ General 3 - 18 + 21 1 0 + + + + ICCARM 2 - 26 + 28 1 0 + @@ -1457,7 +1533,7 @@ ILINK 0 - 11 + 14 1 0 + + + + + + + @@ -2013,10 +2117,10 @@ $PROJ_DIR$\..\..\..\os\ports\IAR\ARMCMx\cstartup.s - $PROJ_DIR$\..\..\..\os\ports\IAR\ARMCMx\nvic.c + $PROJ_DIR$\..\..\..\os\ports\common\ARMCMx\nvic.c - $PROJ_DIR$\..\..\..\os\ports\IAR\ARMCMx\nvic.h + $PROJ_DIR$\..\..\..\os\ports\common\ARMCMx\nvic.h $PROJ_DIR$\..\..\..\os\ports\IAR\ARMCMx\LPC11xx\vectors.s diff --git a/demos/ARMCM3-LPC1343-LPCXPRESSO/iar/ch.ewp b/demos/ARMCM3-LPC1343-LPCXPRESSO/iar/ch.ewp index bfde5a1dc..34617d457 100644 --- a/demos/ARMCM3-LPC1343-LPCXPRESSO/iar/ch.ewp +++ b/demos/ARMCM3-LPC1343-LPCXPRESSO/iar/ch.ewp @@ -12,7 +12,7 @@ General 3 - 18 + 21 1 1 + + + + ICCARM 2 - 26 + 28 1 1 + @@ -523,6 +547,7 @@ @@ -591,7 +616,7 @@ ILINK 0 - 11 + 14 1 1 + + + + + + + @@ -876,7 +929,7 @@ General 3 - 18 + 21 1 0 + + + + ICCARM 2 - 26 + 28 1 0 + @@ -1387,6 +1464,7 @@ @@ -1455,7 +1533,7 @@ ILINK 0 - 11 + 14 1 0 + + + + + + + @@ -2017,10 +2123,10 @@ $PROJ_DIR$\..\..\..\os\ports\IAR\ARMCMx\cstartup.s - $PROJ_DIR$\..\..\..\os\ports\IAR\ARMCMx\nvic.c + $PROJ_DIR$\..\..\..\os\ports\common\ARMCMx\nvic.c - $PROJ_DIR$\..\..\..\os\ports\IAR\ARMCMx\nvic.h + $PROJ_DIR$\..\..\..\os\ports\common\ARMCMx\nvic.h diff --git a/demos/ARMCM3-STM32F100-DISCOVERY/iar/ch.ewp b/demos/ARMCM3-STM32F100-DISCOVERY/iar/ch.ewp index 974d5614f..495a8d93b 100644 --- a/demos/ARMCM3-STM32F100-DISCOVERY/iar/ch.ewp +++ b/demos/ARMCM3-STM32F100-DISCOVERY/iar/ch.ewp @@ -87,7 +87,7 @@ @@ -995,7 +1008,7 @@ @@ -2174,10 +2200,10 @@ $PROJ_DIR$\..\..\..\os\ports\IAR\ARMCMx\cstartup.s - $PROJ_DIR$\..\..\..\os\ports\IAR\ARMCMx\nvic.c + $PROJ_DIR$\..\..\..\os\ports\common\ARMCMx\nvic.c - $PROJ_DIR$\..\..\..\os\ports\IAR\ARMCMx\nvic.h + $PROJ_DIR$\..\..\..\os\ports\common\ARMCMx\nvic.h diff --git a/demos/ARMCM3-STM32F103/iar/ch.ewp b/demos/ARMCM3-STM32F103/iar/ch.ewp index e71bb10e3..8f6d4ce4d 100644 --- a/demos/ARMCM3-STM32F103/iar/ch.ewp +++ b/demos/ARMCM3-STM32F103/iar/ch.ewp @@ -87,7 +87,7 @@ @@ -995,7 +1008,7 @@ @@ -2156,10 +2182,10 @@ $PROJ_DIR$\..\..\..\os\ports\IAR\ARMCMx\cstartup.s - $PROJ_DIR$\..\..\..\os\ports\IAR\ARMCMx\nvic.c + $PROJ_DIR$\..\..\..\os\ports\common\ARMCMx\nvic.c - $PROJ_DIR$\..\..\..\os\ports\IAR\ARMCMx\nvic.h + $PROJ_DIR$\..\..\..\os\ports\common\ARMCMx\nvic.h diff --git a/demos/ARMCM3-STM32F103ZG-FATFS/iar/ch.ewp b/demos/ARMCM3-STM32F103ZG-FATFS/iar/ch.ewp index a21502c93..c67494acf 100644 --- a/demos/ARMCM3-STM32F103ZG-FATFS/iar/ch.ewp +++ b/demos/ARMCM3-STM32F103ZG-FATFS/iar/ch.ewp @@ -87,7 +87,7 @@ @@ -997,7 +1010,7 @@ @@ -2190,10 +2216,10 @@ $PROJ_DIR$\..\..\..\os\ports\IAR\ARMCMx\cstartup.s - $PROJ_DIR$\..\..\..\os\ports\IAR\ARMCMx\nvic.c + $PROJ_DIR$\..\..\..\os\ports\common\ARMCMx\nvic.c - $PROJ_DIR$\..\..\..\os\ports\IAR\ARMCMx\nvic.h + $PROJ_DIR$\..\..\..\os\ports\common\ARMCMx\nvic.h diff --git a/demos/ARMCM3-STM32F107/iar/ch.ewp b/demos/ARMCM3-STM32F107/iar/ch.ewp index d4f45f9bc..d4c879be2 100644 --- a/demos/ARMCM3-STM32F107/iar/ch.ewp +++ b/demos/ARMCM3-STM32F107/iar/ch.ewp @@ -87,7 +87,7 @@ @@ -995,7 +1008,7 @@ @@ -2156,10 +2182,10 @@ $PROJ_DIR$\..\..\..\os\ports\IAR\ARMCMx\cstartup.s - $PROJ_DIR$\..\..\..\os\ports\IAR\ARMCMx\nvic.c + $PROJ_DIR$\..\..\..\os\ports\common\ARMCMx\nvic.c - $PROJ_DIR$\..\..\..\os\ports\IAR\ARMCMx\nvic.h + $PROJ_DIR$\..\..\..\os\ports\common\ARMCMx\nvic.h diff --git a/demos/ARMCM3-STM32L152-DISCOVERY/iar/ch.ewp b/demos/ARMCM3-STM32L152-DISCOVERY/iar/ch.ewp index 2ebd37623..66c028c4e 100644 --- a/demos/ARMCM3-STM32L152-DISCOVERY/iar/ch.ewp +++ b/demos/ARMCM3-STM32L152-DISCOVERY/iar/ch.ewp @@ -87,7 +87,7 @@ @@ -995,7 +1008,7 @@ @@ -2162,10 +2188,10 @@ $PROJ_DIR$\..\..\..\os\ports\IAR\ARMCMx\cstartup.s - $PROJ_DIR$\..\..\..\os\ports\IAR\ARMCMx\nvic.c + $PROJ_DIR$\..\..\..\os\ports\common\ARMCMx\nvic.c - $PROJ_DIR$\..\..\..\os\ports\IAR\ARMCMx\nvic.h + $PROJ_DIR$\..\..\..\os\ports\common\ARMCMx\nvic.h diff --git a/demos/ARMCM4-STM32F407-DISCOVERY/iar/ch.ewp b/demos/ARMCM4-STM32F407-DISCOVERY/iar/ch.ewp index 52af4efb6..b50381613 100644 --- a/demos/ARMCM4-STM32F407-DISCOVERY/iar/ch.ewp +++ b/demos/ARMCM4-STM32F407-DISCOVERY/iar/ch.ewp @@ -87,7 +87,7 @@ @@ -994,7 +1007,7 @@ @@ -2163,10 +2189,10 @@ $PROJ_DIR$\..\..\..\os\ports\IAR\ARMCMx\cstartup.s - $PROJ_DIR$\..\..\..\os\ports\IAR\ARMCMx\nvic.c + $PROJ_DIR$\..\..\..\os\ports\common\ARMCMx\nvic.c - $PROJ_DIR$\..\..\..\os\ports\IAR\ARMCMx\nvic.h + $PROJ_DIR$\..\..\..\os\ports\common\ARMCMx\nvic.h diff --git a/os/kernel/include/chsys.h b/os/kernel/include/chsys.h index b69736a1d..89b64e3f9 100644 --- a/os/kernel/include/chsys.h +++ b/os/kernel/include/chsys.h @@ -193,10 +193,9 @@ * * @special */ -#define CH_IRQ_PROLOGUE() { \ +#define CH_IRQ_PROLOGUE() \ PORT_IRQ_PROLOGUE(); \ - dbg_check_enter_isr(); \ -} + dbg_check_enter_isr() /** * @brief IRQ handler exit code. @@ -206,10 +205,9 @@ * * @special */ -#define CH_IRQ_EPILOGUE() { \ +#define CH_IRQ_EPILOGUE() \ dbg_check_leave_isr(); \ - PORT_IRQ_EPILOGUE(); \ -} + PORT_IRQ_EPILOGUE() /** * @brief Standard normal IRQ handler declaration.