From: richardbarry Date: Sat, 6 Dec 2008 13:35:12 +0000 (+0000) Subject: Minor updates. X-Git-Tag: V5.1.2~101 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ae66dc45b8a022a403814e210f7871abc248774e;p=freertos Minor updates. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@595 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/Demo/ARM9_AT91SAM9XE_IAR/ParTest/ParTest.c b/Demo/ARM9_AT91SAM9XE_IAR/ParTest/ParTest.c index 8a5c6d6c1..80ac9a8d5 100644 --- a/Demo/ARM9_AT91SAM9XE_IAR/ParTest/ParTest.c +++ b/Demo/ARM9_AT91SAM9XE_IAR/ParTest/ParTest.c @@ -49,6 +49,9 @@ #include "FreeRTOS.h" #include "partest.h" +#include "led.h" + +#define partstNUM_LEDS ( 4 ) /*----------------------------------------------------------- * Simple parallel port IO routines for the LED's. @@ -56,19 +59,37 @@ void vParTestInitialise( void ) { - LED_Configure( 0 ); - LED_Configure( 1 ); +unsigned long ul; + + for( ul = 0; ul < partstNUM_LEDS; ul++ ) + { + LED_Configure( ul ); + } } /*-----------------------------------------------------------*/ void vParTestSetLED( unsigned portBASE_TYPE uxLED, signed portBASE_TYPE xValue ) { + if( uxLED < partstNUM_LEDS ) + { + if( xValue == 0 ) + { + LED_Clear( uxLED ); + } + else + { + LED_Set( uxLED ); + } + } } /*-----------------------------------------------------------*/ void vParTestToggleLED( unsigned portBASE_TYPE uxLED ) { - LED_Toggle(1); + if( uxLED < partstNUM_LEDS ) + { + LED_Toggle( uxLED ); + } } diff --git a/Demo/ARM9_AT91SAM9XE_IAR/ewp/at91sam9xe-ek.ewd b/Demo/ARM9_AT91SAM9XE_IAR/ewp/at91sam9xe-ek.ewd index 5fde1283a..1f004b52a 100644 --- a/Demo/ARM9_AT91SAM9XE_IAR/ewp/at91sam9xe-ek.ewd +++ b/Demo/ARM9_AT91SAM9XE_IAR/ewp/at91sam9xe-ek.ewd @@ -1,7 +1,7 @@ - 1 + 2 at91sam9xe128_flash @@ -12,7 +12,7 @@ C-SPY 2 - 14 + 18 1 1 - + + + + @@ -253,7 +265,7 @@ JLINK_ID 2 - 8 + 10 1 1 - - + + @@ -400,7 +413,7 @@ MACRAIGOR_ID 2 - 2 + 3 1 1 + + @@ -565,11 +586,11 @@ - $TOOLKIT_DIR$\plugins\rtos\CMX\CmxArmPlugin.ewplugin + $TOOLKIT_DIR$\plugins\rtos\CMX\CmxArmPlugin.ENU.ewplugin 0 - $TOOLKIT_DIR$\plugins\rtos\CMX\CmxTinyArmPlugin.ewplugin + $TOOLKIT_DIR$\plugins\rtos\CMX\CmxTinyArmPlugin.ENU.ewplugin 0 @@ -585,7 +606,11 @@ 0 - $TOOLKIT_DIR$\plugins\rtos\ThreadX\ThreadXArmPlugin.ewplugin + $TOOLKIT_DIR$\plugins\rtos\ThreadX\ThreadXArmPlugin.ENU.ewplugin + 0 + + + $TOOLKIT_DIR$\plugins\rtos\uCOS-II\uCOS-II-KA-CSpy.ewplugin 0 @@ -604,6 +629,10 @@ $EW_DIR$\common\plugins\Stack\Stack.ENU.ewplugin 1 + + $EW_DIR$\common\plugins\SymList\SymList.ENU.ewplugin + 1 + @@ -616,7 +645,7 @@ C-SPY 2 - 14 + 18 1 1 - + + + + @@ -857,7 +898,7 @@ JLINK_ID 2 - 8 + 10 1 1 - - + + @@ -1004,7 +1046,7 @@ MACRAIGOR_ID 2 - 2 + 3 1 1 + + @@ -1169,11 +1219,11 @@ - $TOOLKIT_DIR$\plugins\rtos\CMX\CmxArmPlugin.ewplugin + $TOOLKIT_DIR$\plugins\rtos\CMX\CmxArmPlugin.ENU.ewplugin 0 - $TOOLKIT_DIR$\plugins\rtos\CMX\CmxTinyArmPlugin.ewplugin + $TOOLKIT_DIR$\plugins\rtos\CMX\CmxTinyArmPlugin.ENU.ewplugin 0 @@ -1189,7 +1239,11 @@ 0 - $TOOLKIT_DIR$\plugins\rtos\ThreadX\ThreadXArmPlugin.ewplugin + $TOOLKIT_DIR$\plugins\rtos\ThreadX\ThreadXArmPlugin.ENU.ewplugin + 0 + + + $TOOLKIT_DIR$\plugins\rtos\uCOS-II\uCOS-II-KA-CSpy.ewplugin 0 @@ -1208,6 +1262,10 @@ $EW_DIR$\common\plugins\Stack\Stack.ENU.ewplugin 1 + + $EW_DIR$\common\plugins\SymList\SymList.ENU.ewplugin + 1 + @@ -1220,7 +1278,7 @@ C-SPY 2 - 14 + 18 1 1 - + + + + @@ -1461,7 +1531,7 @@ JLINK_ID 2 - 8 + 10 1 1 - - + + @@ -1608,7 +1679,7 @@ MACRAIGOR_ID 2 - 2 + 3 1 1 + + @@ -1773,11 +1852,11 @@ - $TOOLKIT_DIR$\plugins\rtos\CMX\CmxArmPlugin.ewplugin + $TOOLKIT_DIR$\plugins\rtos\CMX\CmxArmPlugin.ENU.ewplugin 0 - $TOOLKIT_DIR$\plugins\rtos\CMX\CmxTinyArmPlugin.ewplugin + $TOOLKIT_DIR$\plugins\rtos\CMX\CmxTinyArmPlugin.ENU.ewplugin 0 @@ -1793,7 +1872,11 @@ 0 - $TOOLKIT_DIR$\plugins\rtos\ThreadX\ThreadXArmPlugin.ewplugin + $TOOLKIT_DIR$\plugins\rtos\ThreadX\ThreadXArmPlugin.ENU.ewplugin + 0 + + + $TOOLKIT_DIR$\plugins\rtos\uCOS-II\uCOS-II-KA-CSpy.ewplugin 0 @@ -1812,6 +1895,10 @@ $EW_DIR$\common\plugins\Stack\Stack.ENU.ewplugin 1 + + $EW_DIR$\common\plugins\SymList\SymList.ENU.ewplugin + 1 + @@ -1824,7 +1911,7 @@ C-SPY 2 - 14 + 18 1 1 - + + + + @@ -2065,7 +2164,7 @@ JLINK_ID 2 - 8 + 10 1 1 - - + + @@ -2212,7 +2312,7 @@ MACRAIGOR_ID 2 - 2 + 3 1 1 + + @@ -2377,11 +2485,11 @@ - $TOOLKIT_DIR$\plugins\rtos\CMX\CmxArmPlugin.ewplugin + $TOOLKIT_DIR$\plugins\rtos\CMX\CmxArmPlugin.ENU.ewplugin 0 - $TOOLKIT_DIR$\plugins\rtos\CMX\CmxTinyArmPlugin.ewplugin + $TOOLKIT_DIR$\plugins\rtos\CMX\CmxTinyArmPlugin.ENU.ewplugin 0 @@ -2397,7 +2505,11 @@ 0 - $TOOLKIT_DIR$\plugins\rtos\ThreadX\ThreadXArmPlugin.ewplugin + $TOOLKIT_DIR$\plugins\rtos\ThreadX\ThreadXArmPlugin.ENU.ewplugin + 0 + + + $TOOLKIT_DIR$\plugins\rtos\uCOS-II\uCOS-II-KA-CSpy.ewplugin 0 @@ -2416,6 +2528,10 @@ $EW_DIR$\common\plugins\Stack\Stack.ENU.ewplugin 1 + + $EW_DIR$\common\plugins\SymList\SymList.ENU.ewplugin + 1 + @@ -2428,7 +2544,7 @@ C-SPY 2 - 14 + 18 1 1 - + + + + @@ -2669,7 +2797,7 @@ JLINK_ID 2 - 8 + 10 1 1 - - + + @@ -2816,7 +2945,7 @@ MACRAIGOR_ID 2 - 2 + 3 1 1 + + @@ -2981,11 +3118,11 @@ - $TOOLKIT_DIR$\plugins\rtos\CMX\CmxArmPlugin.ewplugin + $TOOLKIT_DIR$\plugins\rtos\CMX\CmxArmPlugin.ENU.ewplugin 0 - $TOOLKIT_DIR$\plugins\rtos\CMX\CmxTinyArmPlugin.ewplugin + $TOOLKIT_DIR$\plugins\rtos\CMX\CmxTinyArmPlugin.ENU.ewplugin 0 @@ -3001,7 +3138,11 @@ 0 - $TOOLKIT_DIR$\plugins\rtos\ThreadX\ThreadXArmPlugin.ewplugin + $TOOLKIT_DIR$\plugins\rtos\ThreadX\ThreadXArmPlugin.ENU.ewplugin + 0 + + + $TOOLKIT_DIR$\plugins\rtos\uCOS-II\uCOS-II-KA-CSpy.ewplugin 0 @@ -3020,6 +3161,10 @@ $EW_DIR$\common\plugins\Stack\Stack.ENU.ewplugin 1 + + $EW_DIR$\common\plugins\SymList\SymList.ENU.ewplugin + 1 + @@ -3032,7 +3177,7 @@ C-SPY 2 - 14 + 18 1 1 - + + + + @@ -3273,7 +3430,7 @@ JLINK_ID 2 - 8 + 10 1 1 - - + + @@ -3420,7 +3578,7 @@ MACRAIGOR_ID 2 - 2 + 3 1 1 + + @@ -3585,11 +3751,11 @@ - $TOOLKIT_DIR$\plugins\rtos\CMX\CmxArmPlugin.ewplugin + $TOOLKIT_DIR$\plugins\rtos\CMX\CmxArmPlugin.ENU.ewplugin 0 - $TOOLKIT_DIR$\plugins\rtos\CMX\CmxTinyArmPlugin.ewplugin + $TOOLKIT_DIR$\plugins\rtos\CMX\CmxTinyArmPlugin.ENU.ewplugin 0 @@ -3605,7 +3771,11 @@ 0 - $TOOLKIT_DIR$\plugins\rtos\ThreadX\ThreadXArmPlugin.ewplugin + $TOOLKIT_DIR$\plugins\rtos\ThreadX\ThreadXArmPlugin.ENU.ewplugin + 0 + + + $TOOLKIT_DIR$\plugins\rtos\uCOS-II\uCOS-II-KA-CSpy.ewplugin 0 @@ -3624,6 +3794,10 @@ $EW_DIR$\common\plugins\Stack\Stack.ENU.ewplugin 1 + + $EW_DIR$\common\plugins\SymList\SymList.ENU.ewplugin + 1 + @@ -3636,7 +3810,7 @@ C-SPY 2 - 14 + 18 1 1 - + + + + @@ -3877,7 +4063,7 @@ JLINK_ID 2 - 8 + 10 1 1 - - + + @@ -4024,7 +4211,7 @@ MACRAIGOR_ID 2 - 2 + 3 1 1 + + @@ -4189,11 +4384,11 @@ - $TOOLKIT_DIR$\plugins\rtos\CMX\CmxArmPlugin.ewplugin + $TOOLKIT_DIR$\plugins\rtos\CMX\CmxArmPlugin.ENU.ewplugin 0 - $TOOLKIT_DIR$\plugins\rtos\CMX\CmxTinyArmPlugin.ewplugin + $TOOLKIT_DIR$\plugins\rtos\CMX\CmxTinyArmPlugin.ENU.ewplugin 0 @@ -4209,7 +4404,11 @@ 0 - $TOOLKIT_DIR$\plugins\rtos\ThreadX\ThreadXArmPlugin.ewplugin + $TOOLKIT_DIR$\plugins\rtos\ThreadX\ThreadXArmPlugin.ENU.ewplugin + 0 + + + $TOOLKIT_DIR$\plugins\rtos\uCOS-II\uCOS-II-KA-CSpy.ewplugin 0 @@ -4228,6 +4427,10 @@ $EW_DIR$\common\plugins\Stack\Stack.ENU.ewplugin 1 + + $EW_DIR$\common\plugins\SymList\SymList.ENU.ewplugin + 1 + @@ -4240,7 +4443,7 @@ C-SPY 2 - 14 + 18 1 1 - + + + + @@ -4481,7 +4696,7 @@ JLINK_ID 2 - 8 + 10 1 1 - - + + @@ -4628,7 +4844,7 @@ MACRAIGOR_ID 2 - 2 + 3 1 1 + + @@ -4793,11 +5017,11 @@ - $TOOLKIT_DIR$\plugins\rtos\CMX\CmxArmPlugin.ewplugin + $TOOLKIT_DIR$\plugins\rtos\CMX\CmxArmPlugin.ENU.ewplugin 0 - $TOOLKIT_DIR$\plugins\rtos\CMX\CmxTinyArmPlugin.ewplugin + $TOOLKIT_DIR$\plugins\rtos\CMX\CmxTinyArmPlugin.ENU.ewplugin 0 @@ -4813,7 +5037,11 @@ 0 - $TOOLKIT_DIR$\plugins\rtos\ThreadX\ThreadXArmPlugin.ewplugin + $TOOLKIT_DIR$\plugins\rtos\ThreadX\ThreadXArmPlugin.ENU.ewplugin + 0 + + + $TOOLKIT_DIR$\plugins\rtos\uCOS-II\uCOS-II-KA-CSpy.ewplugin 0 @@ -4832,6 +5060,10 @@ $EW_DIR$\common\plugins\Stack\Stack.ENU.ewplugin 1 + + $EW_DIR$\common\plugins\SymList\SymList.ENU.ewplugin + 1 + @@ -4844,7 +5076,7 @@ C-SPY 2 - 14 + 18 1 1 - + + + + @@ -5085,7 +5329,7 @@ JLINK_ID 2 - 8 + 10 1 1 - - + + @@ -5232,7 +5477,7 @@ MACRAIGOR_ID 2 - 2 + 3 1 1 + + @@ -5397,11 +5650,11 @@ - $TOOLKIT_DIR$\plugins\rtos\CMX\CmxArmPlugin.ewplugin + $TOOLKIT_DIR$\plugins\rtos\CMX\CmxArmPlugin.ENU.ewplugin 0 - $TOOLKIT_DIR$\plugins\rtos\CMX\CmxTinyArmPlugin.ewplugin + $TOOLKIT_DIR$\plugins\rtos\CMX\CmxTinyArmPlugin.ENU.ewplugin 0 @@ -5417,7 +5670,11 @@ 0 - $TOOLKIT_DIR$\plugins\rtos\ThreadX\ThreadXArmPlugin.ewplugin + $TOOLKIT_DIR$\plugins\rtos\ThreadX\ThreadXArmPlugin.ENU.ewplugin + 0 + + + $TOOLKIT_DIR$\plugins\rtos\uCOS-II\uCOS-II-KA-CSpy.ewplugin 0 @@ -5436,6 +5693,12 @@ $EW_DIR$\common\plugins\Stack\Stack.ENU.ewplugin 1 + + $EW_DIR$\common\plugins\SymList\SymList.ENU.ewplugin + 1 + + + diff --git a/Demo/ARM9_AT91SAM9XE_IAR/ewp/at91sam9xe-ek.ewp b/Demo/ARM9_AT91SAM9XE_IAR/ewp/at91sam9xe-ek.ewp index cf83975d9..439c35532 100644 --- a/Demo/ARM9_AT91SAM9XE_IAR/ewp/at91sam9xe-ek.ewp +++ b/Demo/ARM9_AT91SAM9XE_IAR/ewp/at91sam9xe-ek.ewp @@ -4728,7 +4728,7 @@