From: RichardBarry Date: Fri, 30 Jan 2009 09:26:16 +0000 (+0000) Subject: Continued V850 development. X-Git-Tag: V5.1.2~44 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c1fde5c5c25589d73cfa42aa424d2feddf137a39;p=freertos Continued V850 development. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@652 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/Demo/NEC_V850ES_Fx3_IAR/main.c b/Demo/NEC_V850ES_Fx3_IAR/main.c index 604a7cd2c..b32f85e8f 100644 --- a/Demo/NEC_V850ES_Fx3_IAR/main.c +++ b/Demo/NEC_V850ES_Fx3_IAR/main.c @@ -110,8 +110,9 @@ mechanism is working correctly. */ #define mainNO_ERROR_DELAY ( ( portTickType ) 3000 / portTICK_RATE_MS ) #define mainERROR_DELAY ( ( portTickType ) 500 / portTICK_RATE_MS ) -/* The LEDs used by the demos. */ -#define mainCHECK_TASK_LED ( 0 ) +/* There are no spare LEDs for the comtest tasks, so this is just set to an +invalid number. */ +#define mainCOMTEST_LED ( 4 ) /* The baud rate used by the comtest task. */ #define mainBAUD_RATE ( 9600 ) @@ -184,6 +185,7 @@ void main( void ) static void prvCheckTask( void *pvParameters ) { portTickType xDelayPeriod = mainNO_ERROR_DELAY, xLastWakeTime; +unsigned portBASE_TYPE uxLEDToUse = 0; /* Ensure parameter is passed in correctly. */ if( pvParameters != mainCHECK_PARAMETER ) @@ -247,11 +249,15 @@ portTickType xDelayPeriod = mainNO_ERROR_DELAY, xLastWakeTime; if( xAreRecursiveMutexTasksStillRunning() != pdTRUE ) { xDelayPeriod = mainERROR_DELAY; - } + } + + /* The application board has more LEDs and uses the flash tasks + so the check task instead uses LED3 as LED3 is still spare. */ + uxLEDToUse = 3; } #endif - vParTestToggleLED( mainCHECK_TASK_LED ); + vParTestToggleLED( uxLEDToUse ); } } /*-----------------------------------------------------------*/ diff --git a/Demo/NEC_V850ES_Fx3_IAR/rtosdemo.ewp b/Demo/NEC_V850ES_Fx3_IAR/rtosdemo.ewp index 294e07455..d530d198f 100644 --- a/Demo/NEC_V850ES_Fx3_IAR/rtosdemo.ewp +++ b/Demo/NEC_V850ES_Fx3_IAR/rtosdemo.ewp @@ -1305,7 +1305,7 @@