From c1fde5c5c25589d73cfa42aa424d2feddf137a39 Mon Sep 17 00:00:00 2001 From: RichardBarry Date: Fri, 30 Jan 2009 09:26:16 +0000 Subject: [PATCH] Continued V850 development. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@652 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- Demo/NEC_V850ES_Fx3_IAR/main.c | 14 ++++++++++---- Demo/NEC_V850ES_Fx3_IAR/rtosdemo.ewp | 2 +- Demo/NEC_V850ES_Fx3_IAR/settings/rtosdemo.cspy.bat | 2 +- Demo/NEC_V850ES_Fx3_IAR/settings/rtosdemo.dbgdt | 12 ++++++------ Demo/NEC_V850ES_Fx3_IAR/settings/rtosdemo.dni | 6 +++--- Demo/NEC_V850ES_Fx3_IAR/settings/rtosdemo.wsdt | 8 ++++---- 6 files changed, 25 insertions(+), 19 deletions(-) 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 @@