summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichardBarry <RichardBarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>2009-01-28 12:21:11 +0000
committerRichardBarry <RichardBarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>2009-01-28 12:21:11 +0000
commit8a164b44444a063c543df9b5c9436dcec5165757 (patch)
tree3f900585f6407aa9609a56a33c20e7c50cd163a4
parent8b1f82d5e2c5dd68cfed236f853046cd5417e90b (diff)
downloadfreertos-8a164b44444a063c543df9b5c9436dcec5165757.tar.gz
freertos-8a164b44444a063c543df9b5c9436dcec5165757.tar.bz2
freertos-8a164b44444a063c543df9b5c9436dcec5165757.tar.xz
Tidy up and comment.
git-svn-id: https://freertos.svn.sourceforge.net/svnroot/freertos/trunk@629 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
-rw-r--r--Demo/NEC_V850ES_Fx3_IAR/FreeRTOSConfig.h72
-rw-r--r--Demo/NEC_V850ES_Fx3_IAR/LEDtoggle/LED.c298
-rw-r--r--Demo/NEC_V850ES_Fx3_IAR/LEDtoggle/LED.h61
-rw-r--r--Demo/NEC_V850ES_Fx3_IAR/ParTest/ParTest.c15
-rw-r--r--Demo/NEC_V850ES_Fx3_IAR/RegTest.s859
-rw-r--r--Demo/NEC_V850ES_Fx3_IAR/main.c72
-rw-r--r--Demo/NEC_V850ES_Fx3_IAR/rtosdemo.ewp6
-rw-r--r--Demo/NEC_V850ES_Fx3_IAR/serial/serial.c38
-rw-r--r--Demo/NEC_V850ES_Fx3_IAR/settings/rtosdemo.dbgdt12
-rw-r--r--Demo/NEC_V850ES_Fx3_IAR/settings/rtosdemo.dni3
-rw-r--r--Demo/NEC_V850ES_Fx3_IAR/settings/rtosdemo.wsdt10
11 files changed, 151 insertions, 445 deletions
diff --git a/Demo/NEC_V850ES_Fx3_IAR/FreeRTOSConfig.h b/Demo/NEC_V850ES_Fx3_IAR/FreeRTOSConfig.h
index 14bc86b3..57dc17fa 100644
--- a/Demo/NEC_V850ES_Fx3_IAR/FreeRTOSConfig.h
+++ b/Demo/NEC_V850ES_Fx3_IAR/FreeRTOSConfig.h
@@ -52,12 +52,11 @@
/* only include in C files */
#ifdef __IAR_SYSTEMS_ICC__
-#pragma language=extended
-#pragma system_include
-
-#include <intrinsics.h>
-#include "io70f3385.h"
+ #pragma language=extended
+ #pragma system_include
+ #include <intrinsics.h>
+ #include "io70f3385.h"
#endif /* __IAR_SYSTEMS_ICC__ */
/* V850ES/Fx3 Memory Model
@@ -79,39 +78,40 @@
*/
#define configUSE_PREEMPTION 1
/* only include in C files */
+
#ifdef __IAR_SYSTEMS_ICC__
-#define configUSE_IDLE_HOOK 0
-#define configUSE_TICK_HOOK 0
-#define configCPU_CLOCK_HZ ( ( unsigned portLONG ) 48000000 ) /* using the external clock source */
-#define configTICK_RATE_HZ ( ( portTickType ) 1000 )
-#define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 4 )
-#define configMINIMAL_STACK_SIZE ( ( unsigned portSHORT ) 85 )
-#define configTOTAL_HEAP_SIZE ( (size_t ) ( 60000 ) )
-#define configMAX_TASK_NAME_LEN ( 10 )
-#define configUSE_TRACE_FACILITY 0
-#define configUSE_16_BIT_TICKS 0
-#define configIDLE_SHOULD_YIELD 0
-#define configUSE_CO_ROUTINES 0
-#define configUSE_MUTEXES 1
-#define configCHECK_FOR_STACK_OVERFLOW 2
-#define configUSE_RECURSIVE_MUTEXES 1
-#define configQUEUE_REGISTRY_SIZE 0
-#define configUSE_COUNTING_SEMAPHORES 0
-
-/* Co-routine definitions. */
-#define configUSE_CO_ROUTINES 0
-#define configMAX_CO_ROUTINE_PRIORITIES ( 2 )
-
-/* Set the following definitions to 1 to include the API function, or zero
-to exclude the API function. */
-#define INCLUDE_vTaskPrioritySet 1
-#define INCLUDE_uxTaskPriorityGet 1
-#define INCLUDE_vTaskDelete 1
-#define INCLUDE_vTaskCleanUpResources 0
-#define INCLUDE_vTaskSuspend 1
-#define INCLUDE_vTaskDelayUntil 1
-#define INCLUDE_vTaskDelay 1
+ #define configUSE_IDLE_HOOK 0
+ #define configUSE_TICK_HOOK 0
+ #define configCPU_CLOCK_HZ ( ( unsigned portLONG ) 48000000 ) /* using the external clock source */
+ #define configTICK_RATE_HZ ( ( portTickType ) 1000 )
+ #define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 4 )
+ #define configMINIMAL_STACK_SIZE ( ( unsigned portSHORT ) 85 )
+ #define configTOTAL_HEAP_SIZE ( (size_t ) ( 60000 ) )
+ #define configMAX_TASK_NAME_LEN ( 10 )
+ #define configUSE_TRACE_FACILITY 0
+ #define configUSE_16_BIT_TICKS 0
+ #define configIDLE_SHOULD_YIELD 0
+ #define configUSE_CO_ROUTINES 0
+ #define configUSE_MUTEXES 1
+ #define configCHECK_FOR_STACK_OVERFLOW 2
+ #define configUSE_RECURSIVE_MUTEXES 1
+ #define configQUEUE_REGISTRY_SIZE 0
+ #define configUSE_COUNTING_SEMAPHORES 0
+
+ /* Co-routine definitions. */
+ #define configUSE_CO_ROUTINES 0
+ #define configMAX_CO_ROUTINE_PRIORITIES ( 2 )
+
+ /* Set the following definitions to 1 to include the API function, or zero
+ to exclude the API function. */
+ #define INCLUDE_vTaskPrioritySet 1
+ #define INCLUDE_uxTaskPriorityGet 1
+ #define INCLUDE_vTaskDelete 1
+ #define INCLUDE_vTaskCleanUpResources 0
+ #define INCLUDE_vTaskSuspend 1
+ #define INCLUDE_vTaskDelayUntil 1
+ #define INCLUDE_vTaskDelay 1
#endif /* __IAR_SYSTEMS_ICC__ */
diff --git a/Demo/NEC_V850ES_Fx3_IAR/LEDtoggle/LED.c b/Demo/NEC_V850ES_Fx3_IAR/LEDtoggle/LED.c
deleted file mode 100644
index 739584ee..00000000
--- a/Demo/NEC_V850ES_Fx3_IAR/LEDtoggle/LED.c
+++ /dev/null
@@ -1,298 +0,0 @@
-/*
- FreeRTOS.org V5.1.1 - Copyright (C) 2003-2008 Richard Barry.
-
- This file is part of the FreeRTOS.org distribution.
-
- FreeRTOS.org is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- FreeRTOS.org is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with FreeRTOS.org; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
- A special exception to the GPL can be applied should you wish to distribute
- a combined work that includes FreeRTOS.org, without being obliged to provide
- the source code for any proprietary components. See the licensing section
- of http://www.FreeRTOS.org for full details of how and when the exception
- can be applied.
-
- ***************************************************************************
- ***************************************************************************
- * *
- * SAVE TIME AND MONEY! We can port FreeRTOS.org to your own hardware, *
- * and even write all or part of your application on your behalf. *
- * See http://www.OpenRTOS.com for details of the services we provide to *
- * expedite your project. *
- * *
- ***************************************************************************
- ***************************************************************************
-
- Please ensure to read the configuration and relevant port sections of the
- online documentation.
-
- http://www.FreeRTOS.org - Documentation, latest information, license and
- contact details.
-
- http://www.SafeRTOS.com - A version that is certified for use in safety
- critical systems.
-
- http://www.OpenRTOS.com - Commercial support, development, porting,
- licensing and training services.
-*/
-
-/**
- * This is a simple LED toggle test for the V850ES/Fx3.
- *
- * Creates two task that control one LED each.
- *
- * The first task toggles a LED with a frequency of 1Hz by using the vTaskDelay
- * function. So the task is yielded for 1 seconed after each LED switch.
- *
- * The second LED also starts with a toggling frequency of 1Hz but this frequency
- * can be increased by pushing the switch button conected to pin INTP0.
- * When the switch is pushed it is detected by an interrupt. When the interrupt
- * occurs a flag is set in the ISR and sent to the third task by using a queue.
- * Therefore the xQueueSendFromISR() function is called from within the ISR to
- * write the flag value to the queue. The task uses the xQueueReceive() function
- * to read the flag value from the queue.
- * If the flag value changed from the last task activation the yield time for the
- * second LED is incremented by 100ms. If the yield time reaches a time greater
- * then 3 seconds it is set back to 1 second within task 3.
- *
- * Also a check function is implemented to check if the task still run properly
- */
-
-/* Scheduler include files. */
-#include "FreeRTOS.h"
-#include "task.h"
-
-/* Demo program include files. */
-#include "LED.h"
-#include "queue.h"
-#include "print.h"
-
-#define LEDToggleSTACK_SIZE (( unsigned portSHORT ) configMINIMAL_STACK_SIZE)
-#define SwitchSTACK_SIZE (( unsigned portSHORT ) configMINIMAL_STACK_SIZE)
-#define LED_NUMBER_OF_TASKS 2
-
-/* LED toggle wait time and check definitions */
-static portTickType LED1_Wait_Time = 1000;
-static portTickType LED2_Wait_Time = 1000;
-static portTickType SWITCH_Wait_Time = 50;
-
-/* Task function prototypes */
-static void vLEDToggleTask1 ( void *pvParameters );
-static void vLEDToggleTask2 ( void *pvParameters );
-static void vSWITCHDelayTask ( void *pvParameters );
-
-/* Port Initialization for LED's and Switch */
-static void prvLEDInit(void);
-
-/* Switch press counter */
-static unsigned portSHORT usClick = 0;
-/* Queue used for LED02 toggle*/
-static xQueueHandle xSwitchQueue;
-
-/*xQUEUE *xLEDQueue;*/
-
-static volatile unsigned portSHORT usTask1Check = 0, usTask2Check = 0, usTask3Check = 0, usLEDQueue = 0;
-
-void vStartLEDToggleTasks( unsigned portBASE_TYPE uxPriority )
-{
-
-const unsigned portBASE_TYPE uxQueueSize = 4;
-
- prvLEDInit();
-
- /* Create the queue used by the Switch ISR and the second task. */
- xSwitchQueue = xQueueCreate( uxQueueSize, ( unsigned portBASE_TYPE ) sizeof( unsigned portSHORT ) );
- /* create 2 LED toggle Tasks */
- xTaskCreate(vLEDToggleTask1, "LEDTog1", LEDToggleSTACK_SIZE, ( void * ) &(usTask1Check), uxPriority, NULL );
- xTaskCreate(vLEDToggleTask2, "LEDTog2", LEDToggleSTACK_SIZE, ( void * ) &(usTask2Check), uxPriority, NULL );
- xTaskCreate(vSWITCHDelayTask, "SWITCH", SwitchSTACK_SIZE, ( void * ) &xSwitchQueue, (uxPriority+1), NULL );
-}
-/*---------------------------------------------------------------------------*/
-static void vLEDToggleTask1( void *pvParameters)
-{
-static portCHAR pcLED1old;
-static portCHAR LEDcounter1 = 0;
-portSHORT sError = pdFALSE;
-volatile unsigned portSHORT *pusTaskCheckVariable;
-const portCHAR * const pcTaskFailMsg = "ERROR: LED toggle failed.\r\n";
-
- pusTaskCheckVariable = ( unsigned portSHORT * ) pvParameters;
- for(;;)
- {
- pcLED1old = LED01;
- LED01 = ~LED01;
- LEDcounter1++;
- vTaskDelay( LED1_Wait_Time );
- /* toggle the LED01 */
-
- if(pcLED1old == LED01)
- {
- /* an error has occured */
- vPrintDisplayMessage( &pcTaskFailMsg );
- sError = pdTRUE;
- }
-
- if(sError != pdTRUE)
- {
- /* If a LED toggle has been made, increment the check
- variable so we know this task is still running okay. */
- ( *pusTaskCheckVariable )++;
- }
- }
-}
-/*-----------------------------------------------------------*/
-static void vLEDToggleTask2( void *pvParameters)
-{
-static portCHAR pcLED2old;
-portSHORT sError = pdFALSE;
-volatile unsigned portSHORT *pusTaskCheckVariable;
-const portCHAR * const pcTaskFailMsg = "ERROR: LED toggle failed.\r\n";
-
- pusTaskCheckVariable = ( unsigned portSHORT * ) pvParameters;
- for(;;)
- {
- pcLED2old = LED02;
- /* toggle the LED02 */
- LED02 = ~LED02;
- vTaskDelay( LED2_Wait_Time );
- if(pcLED2old == LED02)
- {
- /* an error has occured */
- vPrintDisplayMessage( &pcTaskFailMsg );
- sError = pdTRUE;
- }
-
- if(sError != pdTRUE)
- {
- /* If a LED toggle has been made, increment the check
- variable so we know this task is still running okay. */
- ( *pusTaskCheckVariable )++;
- }
- }
-}
-/*-----------------------------------------------------------*/
-
-static void vSWITCHDelayTask( void *pvParameters)
-{
-unsigned portSHORT usData, usDataOld = 0;
-xQueueHandle *pxQueue;
-
- pxQueue = ( xQueueHandle * ) pvParameters;
- for(;;)
- {
- if( xQueueReceive( *pxQueue, &usData, ( portTickType ) 0 ) == pdPASS )
- {
- if (usData != usDataOld)
- {
- LED2_Wait_Time += 100;
- if(LED2_Wait_Time >= 3000)
- {
- LED2_Wait_Time = 1000;
- }
- }
- usDataOld = usData;
- }
- vTaskDelay( SWITCH_Wait_Time );
- /* increment check variable whenever the task gets active */
- usTask3Check++;
- }
-}
-
-portBASE_TYPE xAreLEDToggleTaskStillRunning( void )
-{
-/*
- * Keep a history of the check variables so we know if they have been incremented
- * since the last call.
- */
-static unsigned portSHORT usLastTask1Check = 0;
-static unsigned portSHORT usLastTask2Check = 0;
-static unsigned portSHORT usLastTask3Check = 0;
-portBASE_TYPE xReturn = pdTRUE;
-
- /* Check the LED toggle tasks are still running by ensuring their check variables
- * are still incrementing.
- */
- if(( usTask1Check == usLastTask1Check )||(usLastTask2Check == usTask2Check)||(usLastTask3Check == usTask3Check))
- {
- /* The check has not incremented so an error exists. */
- xReturn = pdFALSE;
- }
-
- usLastTask1Check = usTask1Check;
- usLastTask2Check = usTask2Check;
- usLastTask3Check = usTask3Check;
-
- return xReturn;
-}
-/*-----------------------------------------------------------*/
-
-static void prvLEDInit(void)
-{
-
- INTR0 = 0x00;
- INTR1 = 0x00;
- INTR3L = 0x00;
- INTR3H = 0x00;
- INTR4 = 0x00;
- INTR6L = 0x00;
- INTR6H = 0x00;
- INTR8 = 0x00;
- INTR9H = 0x00;
-
- INTF0 = 0x00;
- INTF1 = 0x00;
- INTF3L = 0x00;
- INTF3H = 0x00;
- INTF4 = 0x00;
- INTF6L = 0x00;
- INTF6H = 0x00;
- INTF8 = 0x00;
- INTF9H = 0x00;
-
-/* LED Port Initialization */
-// PCM = 0x00;
- PMCM = 0xF2;
- PMCCM = 0x00;
-
-/* Switch Pin Initialization */
- /* INTP0 Setting */
- PMK0 = 1; /* INTP0 disable */
- PIF0 = 0; /* INTP0 IF clear */
- /* Set INTP0 lowest priority */
- PIC0 |= 0x07;
- INTR0 |= 0x00;
- INTF0 |= 0x08;
- /* INTP0 pin set */
- PFC0 &= 0xF7;
- PFCE0 &= 0xF7;
- PMC0 |= 0x08;
-
- PIF0 = 0; /* INTP0 IF clear */
- PMK0 = 0; /* INTP0 enable */
-}
-/*-----------------------------------------------------------*/
-
-/* Switch ISR */
-
-#pragma vector=INTP0_vector
-__interrupt void MD_INTP0(void)
-{
- /* Increment Switch pressed counter */
- usClick++;
- /* Use usClick to signalize a detected Interrupt for the vLEDToggleTask2
- * to toggle the LED02.
- */
- xQueueSendFromISR( xSwitchQueue, &usClick, pdFALSE );
-}
-/*-----------------------------------------------------------*/ \ No newline at end of file
diff --git a/Demo/NEC_V850ES_Fx3_IAR/LEDtoggle/LED.h b/Demo/NEC_V850ES_Fx3_IAR/LEDtoggle/LED.h
deleted file mode 100644
index 24405300..00000000
--- a/Demo/NEC_V850ES_Fx3_IAR/LEDtoggle/LED.h
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- FreeRTOS.org V5.1.1 - Copyright (C) 2003-2008 Richard Barry.
-
- This file is part of the FreeRTOS.org distribution.
-
- FreeRTOS.org is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- FreeRTOS.org is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with FreeRTOS.org; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
- A special exception to the GPL can be applied should you wish to distribute
- a combined work that includes FreeRTOS.org, without being obliged to provide
- the source code for any proprietary components. See the licensing section
- of http://www.FreeRTOS.org for full details of how and when the exception
- can be applied.
-
- ***************************************************************************
- ***************************************************************************
- * *
- * SAVE TIME AND MONEY! We can port FreeRTOS.org to your own hardware, *
- * and even write all or part of your application on your behalf. *
- * See http://www.OpenRTOS.com for details of the services we provide to *
- * expedite your project. *
- * *
- ***************************************************************************
- ***************************************************************************
-
- Please ensure to read the configuration and relevant port sections of the
- online documentation.
-
- http://www.FreeRTOS.org - Documentation, latest information, license and
- contact details.
-
- http://www.SafeRTOS.com - A version that is certified for use in safety
- critical systems.
-
- http://www.OpenRTOS.com - Commercial support, development, porting,
- licensing and training services.
-*/
-
-#ifndef LEDTOGGLE_TASKS_H
-#define LEDTOGGLE_TASKS_H
-
-void vStartLEDToggleTasks( unsigned portBASE_TYPE uxPriority );
-portBASE_TYPE xAreLEDToggleTaskStillRunning( void );
-/* LED Pin Configuration */
-static void prvLEDinit( void );
-
-#define LED01 PCM_bit.no3
-#define LED02 PCM_bit.no2
-
-#endif \ No newline at end of file
diff --git a/Demo/NEC_V850ES_Fx3_IAR/ParTest/ParTest.c b/Demo/NEC_V850ES_Fx3_IAR/ParTest/ParTest.c
index 5730903e..71ea5316 100644
--- a/Demo/NEC_V850ES_Fx3_IAR/ParTest/ParTest.c
+++ b/Demo/NEC_V850ES_Fx3_IAR/ParTest/ParTest.c
@@ -47,17 +47,15 @@
licensing and training services.
*/
-/*
- Changes from V2.5.2
-
- + All LED's are turned off to start.
-*/
-
+/*-----------------------------------------------------------
+ * Simple parallel port IO routines.
+ *-----------------------------------------------------------*/
+/* FreeRTOS includes. */
#include "FreeRTOS.h"
-#include "task.h"
#include "partest.h"
+
#define partstNUM_LEDs 4
#define LED0_MASK ( ( unsigned short ) 0x08 )
@@ -68,9 +66,6 @@
static const unsigned short xLEDs[ partstNUM_LEDs ] = { LED0_MASK, LED1_MASK, LED2_MASK, LED3_MASK };
-/*-----------------------------------------------------------
- * Simple parallel port IO routines.
- *-----------------------------------------------------------*/
void vParTestInitialise( void )
{
diff --git a/Demo/NEC_V850ES_Fx3_IAR/RegTest.s85 b/Demo/NEC_V850ES_Fx3_IAR/RegTest.s85
index 97d34949..bb65ac03 100644
--- a/Demo/NEC_V850ES_Fx3_IAR/RegTest.s85
+++ b/Demo/NEC_V850ES_Fx3_IAR/RegTest.s85
@@ -1,4 +1,4 @@
-; FreeRTOS.org V5.0.2 - Copyright (C) 2003-2008 Richard Barry.
+; FreeRTOS.org V5.1.1 - Copyright (C) 2003-2009 Richard Barry.
;
; This file is part of the FreeRTOS.org distribution.
;
@@ -33,6 +33,13 @@
EXTERN vRegTestFailed
+
+
+;
+; The RegTest tasks as described in the comments at the top of main().
+;
+
+
;------------------------------------------------------------------------------
; Functions implemented in this file
diff --git a/Demo/NEC_V850ES_Fx3_IAR/main.c b/Demo/NEC_V850ES_Fx3_IAR/main.c
index 38a0864f..80699aca 100644
--- a/Demo/NEC_V850ES_Fx3_IAR/main.c
+++ b/Demo/NEC_V850ES_Fx3_IAR/main.c
@@ -47,6 +47,27 @@
licensing and training services.
*/
+/*
+ * Creates all the demo application tasks, then starts the scheduler. The WEB
+ * documentation provides more details of the standard demo application tasks.
+ * In addition to the standard demo tasks, the following tasks and tests are
+ * defined and/or created within this file:
+ *
+ * "Check" task - This only executes every three seconds but has a high priority
+ * to ensure it gets processor time. Its main function is to check that all the
+ * standard demo tasks are still operational. If everything is running as
+ * expected then the check task will toggle an LED every 3 seconds. An error
+ * being discovered in any task will cause the toggle rate to increase to 500ms.
+ *
+ * "Reg test" tasks - These fill the registers with known values, then check
+ * that each register still contains its expected value. Each task uses
+ * different values. The tasks run with very low priority so get preempted very
+ * frequently. A register containing an unexpected value is indicative of an
+ * error in the context switching mechanism.
+ *
+ */
+
+/* Standard include files. */
#include <stdlib.h>
#include <string.h>
@@ -81,46 +102,50 @@
#define mainGEN_QUEUE_TASK_PRIORITY ( tskIDLE_PRIORITY )
#define mainCOMTEST_PRIORITY ( tskIDLE_PRIORITY + 1 )
+/* Passed into the check task just as a test that the parameter passing
+mechanism is working correctly. */
#define mainCHECK_PARAMETER ( ( void * ) 0x12345678 )
/* The period between executions of the check task. */
#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 ( 3 )
#define mainCOMTEST_LED ( 5 )
+/* The baud rate used by the comtest task. */
#define mainBAUD_RATE ( 9600 )
+/*-----------------------------------------------------------*/
-/* The task function for the "Check" task. */
+/* The implementation of the 'check' task as described at the top of this file. */
static void prvCheckTask( void *pvParameters );
-/* low level initialization prototype */
+/* Called by the startup code to initialise the run time system. */
unsigned portCHAR __low_level_init(void);
+/* Just sets up the LED outputs. Most generic setup is done in
+__low_level_init(). */
static void prvSetupHardware( void );
+/* The RegTest functions as described at the top of this file. */
extern void vRegTest1( void *pvParameters );
extern void vRegTest2( void *pvParameters );
-/*-----------------------------------------------------------*/
-
+/* A variable that will get set to fail if a RegTest task finds an error. The
+variable is inspected by the 'Check' task. */
static volatile portLONG lRegTestStatus = pdPASS;
-void vRegTestFailed( void )
-{
- lRegTestStatus = pdFAIL;
-
- /* Do not return from here as the reg test tasks clobber all registers so
- function calls may not function correctly. */
- for( ;; );
-}
+/*-----------------------------------------------------------*/
+/* Create all the demo tasks then start the scheduler. */
void main( void )
{
+ /* Just sets up the LED outputs. */
prvSetupHardware();
+ /* Standard demo tasks. */
vStartLEDFlashTasks( mainFLASH_PRIORITY );
vStartSemaphoreTasks( mainSEM_TEST_PRIORITY );
vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );
@@ -130,9 +155,10 @@ void main( void )
vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );
vAltStartComTestTasks( mainCOMTEST_PRIORITY, mainBAUD_RATE, mainCOMTEST_LED );
- /* Create the tasks defined within this file. */
+ /* Create the check task as described at the top of this file. */
xTaskCreate( prvCheckTask, "Check", configMINIMAL_STACK_SIZE, mainCHECK_PARAMETER, mainCHECK_TASK_PRIORITY, NULL );
+ /* Create the RegTest tasks as described at the top of this file. */
xTaskCreate( vRegTest1, "Reg1", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );
xTaskCreate( vRegTest2, "Reg2", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );
@@ -160,6 +186,8 @@ portTickType xDelayPeriod = mainNO_ERROR_DELAY, xLastWakeTime;
xDelayPeriod = mainERROR_DELAY;
}
+ /* Initialise xLastWakeTime before it is used. After this point it is not
+ written to directly. */
xLastWakeTime = xTaskGetTickCount();
/* Cycle for ever, delaying then checking all the other tasks are still
@@ -287,14 +315,32 @@ unsigned portCHAR psval = 0;
return pdTRUE;
}
+/*-----------------------------------------------------------*/
static void prvSetupHardware( void )
{
+ /* Setup the LED outputs. */
vParTestInitialise();
+
+ /* Any additional hardware configuration can be added here. */
}
+/*-----------------------------------------------------------*/
void vApplicationStackOverflowHook( void )
{
+ /* This will be called if a task overflows its stack. pxCurrentTCB
+ can be inspected to see which is the offending task. */
for( ;; );
}
+/*-----------------------------------------------------------*/
+void vRegTestFailed( void )
+{
+ /* Called by the RegTest tasks if an error is found. lRegTestStatus is
+ inspected by the check task. */
+ lRegTestStatus = pdFAIL;
+
+ /* Do not return from here as the reg test tasks clobber all registers so
+ function calls may not function correctly. */
+ for( ;; );
+}
diff --git a/Demo/NEC_V850ES_Fx3_IAR/rtosdemo.ewp b/Demo/NEC_V850ES_Fx3_IAR/rtosdemo.ewp
index 4b1c1ff7..7a2dda22 100644
--- a/Demo/NEC_V850ES_Fx3_IAR/rtosdemo.ewp
+++ b/Demo/NEC_V850ES_Fx3_IAR/rtosdemo.ewp
@@ -17,7 +17,7 @@
<debug>1</debug>
<option>
<name>GMemoryModel</name>
- <state>1</state>
+ <state>2</state>
</option>
<option>
<name>GUseShort</name>
@@ -58,11 +58,11 @@
</option>
<option>
<name>RTConfigPath</name>
- <state>$TOOLKIT_DIR$\LIB\dl85esnn.h</state>
+ <state>$TOOLKIT_DIR$\LIB\dl85etnn.h</state>
</option>
<option>
<name>RTLibraryPath</name>
- <state>$TOOLKIT_DIR$\LIB\dl85esnn.r85</state>
+ <state>$TOOLKIT_DIR$\LIB\dl85etnn.r85</state>
</option>
<option>
<name>GRuntimeLibSelectSlave</name>
diff --git a/Demo/NEC_V850ES_Fx3_IAR/serial/serial.c b/Demo/NEC_V850ES_Fx3_IAR/serial/serial.c
index 8477c8d3..59007b34 100644
--- a/Demo/NEC_V850ES_Fx3_IAR/serial/serial.c
+++ b/Demo/NEC_V850ES_Fx3_IAR/serial/serial.c
@@ -49,6 +49,9 @@
/*
BASIC INTERRUPT DRIVEN SERIAL PORT DRIVER FOR UART0.
+
+ *NOTE* - This file is designed to test some of the RTOS features - it is
+ not intended to represent an efficient implementation!
*/
/* Standard includes. */
@@ -62,10 +65,9 @@
#include "serial.h"
-
+/* Hardware specifics. */
#define serRX_DATA_PIN ( 0x01 )
#define serTX_DATA_PIN ( 0x02 )
-
#define serCLOCK_Fxx_DIV_8 0x03
#define serUPWR ( 0x80 )
#define serUTXE ( 0x40 )
@@ -87,12 +89,10 @@ static xQueueHandle xCharsForTx;
/*-----------------------------------------------------------*/
-/* Interrupt entry point written in the assembler file serialISR.s79. */
+/* Interrupt entry point written in the assembler file serialISR.s85. */
extern void vSerialISREntry( void );
-/* The interrupt service routine - called from the assembly entry point. */
-void vSerialISR( void );
-
+/* Flag to indicate whether or not there are characters already queued to send. */
static volatile unsigned long ulTxInProgress = pdFALSE;
/*-----------------------------------------------------------*/
@@ -103,7 +103,6 @@ static volatile unsigned long ulTxInProgress = pdFALSE;
xComPortHandle xSerialPortInitMinimal( unsigned portLONG ulWantedBaud, unsigned portBASE_TYPE uxQueueLength )
{
xComPortHandle xReturn = serHANDLE;
-extern void ( vUART_ISR )( void );
const unsigned portLONG ulFuclk = ( configCPU_CLOCK_HZ / 2 ) / 8UL;
/* Create the queues used to hold Rx and Tx characters. */
@@ -127,8 +126,9 @@ const unsigned portLONG ulFuclk = ( configCPU_CLOCK_HZ / 2 ) / 8UL;
/* Enable, n81. */
UD0CTL0 = ( serUPWR | serUTXE | serURXE | serUCL | serLSB );
- UD0TIC = 0x07; /* UARTA0 transmit enable interrupt request signal clear, mask release, priority level 7 set */
- UD0RIC = 0x07; /* UARTA0 receive end interrupt request signal clear, mask release, priority level 7 set */
+ /* Enable interrupts for both Rx and Tx. */
+ UD0TIC = 0x07;
+ UD0RIC = 0x07;
ulTxInProgress = pdFALSE;
}
@@ -193,6 +193,8 @@ portBASE_TYPE xReturn = pdPASS;
portENTER_CRITICAL();
{
+ /* There are currently no characters queued up to send so write the
+ character directly to the UART. */
if( ulTxInProgress == pdFALSE )
{
UD0TX = cOutChar;
@@ -200,6 +202,8 @@ portBASE_TYPE xReturn = pdPASS;
}
else
{
+ /* The UART is already busy so write the character to the Tx queue.
+ The queue is drained from within the Tx interrupt. */
if( xQueueSend( xCharsForTx, &cOutChar, xBlockTime ) != pdPASS )
{
xReturn = pdFAIL;
@@ -218,32 +222,46 @@ void vSerialClose( xComPortHandle xPort )
}
/*-----------------------------------------------------------*/
+/* Tx interrupt handler. This is called from the asm file wrapper. */
void vUARTTxISRHandler( void )
{
char cChar;
portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
+ /* Are there any more characters queue to transmit? */
if( xQueueReceiveFromISR( xCharsForTx, &cChar, &xHigherPriorityTaskWoken ) == pdTRUE )
{
+ /* Send the next character. */
UD0TX = cChar;
}
else
{
+ /* The UART is no longer active. */
ulTxInProgress = pdFALSE;
}
+ /* If reading a character from the Rx queue caused a task to unblock, and
+ the unblocked task has a priority higher than the currently running task,
+ then xHigherPriorityTaskWoken will have been set to true and a context
+ switch should occur now. */
portYIELD_FROM_ISR( xHigherPriorityTaskWoken );
}
+/*-----------------------------------------------------------*/
-
+/* Rx interrupt handler. This is called from the asm file wrapper. */
void vUARTRxISRHandler( void )
{
portCHAR cChar;
portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
+ /* Send the received character to the Rx queue. */
cChar = UD0RX;
xQueueSendFromISR( xRxedChars, &cChar, &xHigherPriorityTaskWoken );
+ /* If sending a character to the Tx queue caused a task to unblock, and
+ the unblocked task has a priority higher than the currently running task,
+ then xHigherPriorityTaskWoken will have been set to true and a context
+ switch should occur now. */
portYIELD_FROM_ISR( xHigherPriorityTaskWoken );
}
diff --git a/Demo/NEC_V850ES_Fx3_IAR/settings/rtosdemo.dbgdt b/Demo/NEC_V850ES_Fx3_IAR/settings/rtosdemo.dbgdt
index f97508db..6e3d0172 100644
--- a/Demo/NEC_V850ES_Fx3_IAR/settings/rtosdemo.dbgdt
+++ b/Demo/NEC_V850ES_Fx3_IAR/settings/rtosdemo.dbgdt
@@ -16,13 +16,13 @@
- <Column0>93</Column0><Column1>27</Column1><Column2>27</Column2><Column3>27</Column3></ColumnWidths>
+ <Column0>254</Column0><Column1>27</Column1><Column2>27</Column2><Column3>27</Column3></ColumnWidths>
</Workspace>
<Disassembly>
<PreferedWindows><Position>2</Position><ScreenPosX>0</ScreenPosX><ScreenPosY>0</ScreenPosY><Windows/></PreferedWindows><MixedMode>1</MixedMode><CodeCovShow>0</CodeCovShow></Disassembly>
- <Register><PreferedWindows><Position>2</Position><ScreenPosX>0</ScreenPosX><ScreenPosY>0</ScreenPosY><Windows/></PreferedWindows></Register><Watch><Format><struct_types/><watch_formats/></Format><PreferedWindows><Position>2</Position><ScreenPosX>0</ScreenPosX><ScreenPosY>0</ScreenPosY><Windows/></PreferedWindows><Column0>156</Column0><Column1>100</Column1><Column2>100</Column2><Column3>100</Column3></Watch><Memory><PreferedWindows><Position>3</Position><ScreenPosX>0</ScreenPosX><ScreenPosY>0</ScreenPosY><Windows/></PreferedWindows><FindDirection>1</FindDirection><FindAsHex>0</FindAsHex></Memory><Find-in-Files><ColumnWidth0>580</ColumnWidth0><ColumnWidth1>82</ColumnWidth1><ColumnWidth2>994</ColumnWidth2></Find-in-Files></Static>
+ <Register><PreferedWindows><Position>2</Position><ScreenPosX>0</ScreenPosX><ScreenPosY>0</ScreenPosY><Windows/></PreferedWindows></Register><Watch><Format><struct_types/><watch_formats/></Format><PreferedWindows><Position>2</Position><ScreenPosX>0</ScreenPosX><ScreenPosY>0</ScreenPosY><Windows/></PreferedWindows><Column0>156</Column0><Column1>105</Column1><Column2>166</Column2><Column3>100</Column3></Watch><Memory><PreferedWindows><Position>3</Position><ScreenPosX>0</ScreenPosX><ScreenPosY>0</ScreenPosY><Windows/></PreferedWindows><FindDirection>1</FindDirection><FindAsHex>0</FindAsHex></Memory><Find-in-Files><ColumnWidth0>580</ColumnWidth0><ColumnWidth1>82</ColumnWidth1><ColumnWidth2>994</ColumnWidth2></Find-in-Files></Static>
<Windows>
@@ -43,7 +43,7 @@
</Tab>
<Tab><Identity>TabID-20969-27878</Identity><TabName>Find in Files</TabName><Factory>Find-in-Files</Factory><Session/></Tab><Tab><Identity>TabID-27119-4411</Identity><TabName>Breakpoints</TabName><Factory>Breakpoints</Factory></Tab></Tabs>
- <SelectedTab>0</SelectedTab></Wnd0><Wnd1>
+ <SelectedTab>3</SelectedTab></Wnd0><Wnd2>
<Tabs>
<Tab>
<Identity>TabID-11505-1326</Identity>
@@ -55,20 +55,20 @@
</Tab>
</Tabs>
- <SelectedTab>0</SelectedTab></Wnd1><Wnd2><Tabs><Tab><Identity>TabID-27476-15253</Identity><TabName>Register</TabName><Factory>Register</Factory><Session><REG1>0</REG1><REG2>0</REG2><Group>0</Group><States>2</States><State0>EIPSW</State0><State1>PSW</State1></Session></Tab></Tabs><SelectedTab>0</SelectedTab></Wnd2></Windows>
+ <SelectedTab>0</SelectedTab></Wnd2><Wnd3><Tabs><Tab><Identity>TabID-15636-29532</Identity><TabName>Watch</TabName><Factory>Watch</Factory><Session><Expressions><Expression><Expression>xStart</Expression></Expression><Expression><Expression>pxBlock</Expression></Expression></Expressions><TabId>0</TabId><Column0>156</Column0><Column1>105</Column1><Column2>166</Column2><Column3>100</Column3></Session></Tab></Tabs><SelectedTab>0</SelectedTab></Wnd3></Windows>
<Editor>
- <Pane><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\NEC_V850ES_Fx3_IAR\serial\serialISR.s85</Filename><XPos>0</XPos><YPos>6</YPos><SelStart>1116</SelStart><SelEnd>1116</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\NEC_V850ES_Fx3_IAR\serial\serial.c</Filename><XPos>0</XPos><YPos>108</YPos><SelStart>4801</SelStart><SelEnd>4801</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\Common\Minimal\comtest.c</Filename><XPos>0</XPos><YPos>165</YPos><SelStart>7455</SelStart><SelEnd>7455</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\NEC_V850ES_Fx3_IAR\RegTest.s85</Filename><XPos>0</XPos><YPos>125</YPos><SelStart>3960</SelStart><SelEnd>3960</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Source\portable\IAR\V850ES_Fx3\portmacro.h</Filename><XPos>0</XPos><YPos>116</YPos><SelStart>5010</SelStart><SelEnd>5015</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Source\portable\IAR\V850ES_Fx3\port.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Source\include\queue.h</Filename><XPos>0</XPos><YPos>719</YPos><SelStart>25052</SelStart><SelEnd>25072</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Source\queue.c</Filename><XPos>1</XPos><YPos>984</YPos><SelStart>33540</SelStart><SelEnd>33540</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Source\portable\IAR\V850ES_Fx3\portasm.s85</Filename><XPos>0</XPos><YPos>237</YPos><SelStart>9109</SelStart><SelEnd>9109</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Source\include\task.h</Filename><XPos>0</XPos><YPos>102</YPos><SelStart>3906</SelStart><SelEnd>3924</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\NEC_V850ES_Fx3_IAR\FreeRTOSConfig.h</Filename><XPos>0</XPos><YPos>69</YPos><SelStart>3431</SelStart><SelEnd>3431</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\Common\Minimal\BlockQ.c</Filename><XPos>0</XPos><YPos>171</YPos><SelStart>9651</SelStart><SelEnd>9651</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Source\tasks.c</Filename><XPos>0</XPos><YPos>1486</YPos><SelStart>46919</SelStart><SelEnd>46919</SelEnd></Tab><ActiveTab>12</ActiveTab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\NEC_V850ES_Fx3_IAR\main.c</Filename><XPos>0</XPos><YPos>100</YPos><SelStart>4336</SelStart><SelEnd>4336</SelEnd></Tab></Pane><ActivePane>0</ActivePane><Sizes><Pane><X>1000000</X><Y>1000000</Y></Pane></Sizes><SplitMode>1</SplitMode></Editor>
+ <Pane><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Source\portable\IAR\V850ES_Fx3\portmacro.h</Filename><XPos>0</XPos><YPos>114</YPos><SelStart>4996</SelStart><SelEnd>4996</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\NEC_V850ES_Fx3_IAR\serial\serial.c</Filename><XPos>0</XPos><YPos>213</YPos><SelStart>7666</SelStart><SelEnd>7666</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\NEC_V850ES_Fx3_IAR\main.c</Filename><XPos>0</XPos><YPos>104</YPos><SelStart>4379</SelStart><SelEnd>4379</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Source\portable\IAR\V850ES_Fx3\port.c</Filename><XPos>0</XPos><YPos>65</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Source\portable\IAR\V850ES_Fx3\portasm.s85</Filename><XPos>0</XPos><YPos>80</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Source\portable\MemMang\heap_2.c</Filename><XPos>0</XPos><YPos>216</YPos><SelStart>9232</SelStart><SelEnd>9239</SelEnd></Tab><ActiveTab>5</ActiveTab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\Common\Minimal\flash.c</Filename><XPos>0</XPos><YPos>72</YPos><SelStart>3690</SelStart><SelEnd>3690</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Source\tasks.c</Filename><XPos>0</XPos><YPos>1767</YPos><SelStart>55191</SelStart><SelEnd>55191</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\NEC_V850ES_Fx3_IAR\FreeRTOSConfig.h</Filename><XPos>0</XPos><YPos>45</YPos><SelStart>2688</SelStart><SelEnd>2688</SelEnd></Tab></Pane><ActivePane>0</ActivePane><Sizes><Pane><X>1000000</X><Y>1000000</Y></Pane></Sizes><SplitMode>1</SplitMode></Editor>
<Positions>
- <Top><Row0><Sizes><Toolbar-00aa9b30><key>iaridepm.enu1</key></Toolbar-00aa9b30><Toolbar-03abbe58><key>debuggergui.enu1</key></Toolbar-03abbe58></Sizes></Row0></Top><Left><Row0><Sizes><Wnd1><Rect><Top>-2</Top><Left>-2</Left><Bottom>740</Bottom><Right>183</Right><x>-2</x><y>-2</y><xscreen>240</xscreen><yscreen>200</yscreen><sizeHorzCX>142857</sizeHorzCX><sizeHorzCY>203666</sizeHorzCY><sizeVertCX>110119</sizeVertCX><sizeVertCY>755601</sizeVertCY></Rect></Wnd1></Sizes></Row0></Left><Right><Row0><Sizes><Wnd2><Rect><Top>-2</Top><Left>-2</Left><Bottom>740</Bottom><Right>525</Right><x>-2</x><y>-2</y><xscreen>200</xscreen><yscreen>200</yscreen><sizeHorzCX>119048</sizeHorzCX><sizeHorzCY>203666</sizeHorzCY><sizeVertCX>313690</sizeVertCX><sizeVertCY>755601</sizeVertCY></Rect></Wnd2></Sizes></Row0></Right><Bottom><Row0><Sizes><Wnd0><Rect><Top>-2</Top><Left>-2</Left><Bottom>198</Bottom><Right>1682</Right><x>-2</x><y>-2</y><xscreen>1684</xscreen><yscreen>200</yscreen><sizeHorzCX>1002381</sizeHorzCX><sizeHorzCY>203666</sizeHorzCY><sizeVertCX>142857</sizeVertCX><sizeVertCY>203666</sizeVertCY></Rect></Wnd0></Sizes></Row0></Bottom><Float><Sizes/></Float></Positions>
+ <Top><Row0><Sizes><Toolbar-00aa9b60><key>iaridepm.enu1</key></Toolbar-00aa9b60><Toolbar-02f1e380><key>debuggergui.enu1</key></Toolbar-02f1e380></Sizes></Row0></Top><Left><Row0><Sizes><Wnd2><Rect><Top>-2</Top><Left>-2</Left><Bottom>740</Bottom><Right>344</Right><x>-2</x><y>-2</y><xscreen>240</xscreen><yscreen>200</yscreen><sizeHorzCX>142857</sizeHorzCX><sizeHorzCY>203666</sizeHorzCY><sizeVertCX>205952</sizeVertCX><sizeVertCY>755601</sizeVertCY></Rect></Wnd2></Sizes></Row0></Left><Right><Row0><Sizes><Wnd3><Rect><Top>-2</Top><Left>-2</Left><Bottom>740</Bottom><Right>528</Right><x>-2</x><y>-2</y><xscreen>200</xscreen><yscreen>200</yscreen><sizeHorzCX>119048</sizeHorzCX><sizeHorzCY>203666</sizeHorzCY><sizeVertCX>315476</sizeVertCX><sizeVertCY>755601</sizeVertCY></Rect></Wnd3></Sizes></Row0></Right><Bottom><Row0><Sizes><Wnd0><Rect><Top>-2</Top><Left>-2</Left><Bottom>198</Bottom><Right>1682</Right><x>-2</x><y>-2</y><xscreen>1684</xscreen><yscreen>200</yscreen><sizeHorzCX>1002381</sizeHorzCX><sizeHorzCY>203666</sizeHorzCY><sizeVertCX>142857</sizeVertCX><sizeVertCY>203666</sizeVertCY></Rect></Wnd0></Sizes></Row0></Bottom><Float><Sizes/></Float></Positions>
</Desktop>
</Project>
diff --git a/Demo/NEC_V850ES_Fx3_IAR/settings/rtosdemo.dni b/Demo/NEC_V850ES_Fx3_IAR/settings/rtosdemo.dni
index 385b3b7b..3ac16814 100644
--- a/Demo/NEC_V850ES_Fx3_IAR/settings/rtosdemo.dni
+++ b/Demo/NEC_V850ES_Fx3_IAR/settings/rtosdemo.dni
@@ -236,8 +236,7 @@ Category=_ 0
LoggingEnabled=_ 0
LogFile=_ ""
[Breakpoints]
-Bp0=_ "STD_CODE" "{C:\E\Dev\FreeRTOS\WorkingCopy3\Source\queue.c}.998.8@1" 1 0 0 0 "" 0 ""
-Count=1
+Count=0
[TraceHelper]
Enabled=1
ShowSource=1
diff --git a/Demo/NEC_V850ES_Fx3_IAR/settings/rtosdemo.wsdt b/Demo/NEC_V850ES_Fx3_IAR/settings/rtosdemo.wsdt
index 496deec9..6975cc0a 100644
--- a/Demo/NEC_V850ES_Fx3_IAR/settings/rtosdemo.wsdt
+++ b/Demo/NEC_V850ES_Fx3_IAR/settings/rtosdemo.wsdt
@@ -17,7 +17,7 @@
<Build><ColumnWidth0>20</ColumnWidth0><ColumnWidth1>1216</ColumnWidth1><ColumnWidth2>324</ColumnWidth2><ColumnWidth3>81</ColumnWidth3></Build><Debug-Log/><TerminalIO/></Static>
<Windows>
- <Wnd0>
+ <Wnd2>
<Tabs>
<Tab>
<Identity>TabID-30435-11592</Identity>
@@ -25,24 +25,24 @@
<Factory>Workspace</Factory>
<Session>
- <NodeDict><ExpandedNode>rtosdemo</ExpandedNode><ExpandedNode>rtosdemo/demo source</ExpandedNode><ExpandedNode>rtosdemo/demo source/Standard Demo Tasks</ExpandedNode><ExpandedNode>rtosdemo/kernel source</ExpandedNode></NodeDict></Session>
+ <NodeDict><ExpandedNode>rtosdemo</ExpandedNode><ExpandedNode>rtosdemo/demo source</ExpandedNode><ExpandedNode>rtosdemo/kernel source</ExpandedNode></NodeDict></Session>
</Tab>
</Tabs>
- <SelectedTab>0</SelectedTab></Wnd0><Wnd1><Tabs><Tab><Identity>TabID-2785-875</Identity><TabName>Build</TabName><Factory>Build</Factory><Session/></Tab><Tab><Identity>TabID-21438-1140</Identity><TabName>Debug Log</TabName><Factory>Debug-Log</Factory><Session/></Tab><Tab><Identity>TabID-21061-4073</Identity><TabName>Breakpoints</TabName><Factory>Breakpoints</Factory></Tab></Tabs><SelectedTab>0</SelectedTab></Wnd1></Windows>
+ <SelectedTab>0</SelectedTab></Wnd2><Wnd3><Tabs><Tab><Identity>TabID-2785-875</Identity><TabName>Build</TabName><Factory>Build</Factory><Session/></Tab><Tab><Identity>TabID-21438-1140</Identity><TabName>Debug Log</TabName><Factory>Debug-Log</Factory><Session/></Tab><Tab><Identity>TabID-21061-4073</Identity><TabName>Breakpoints</TabName><Factory>Breakpoints</Factory></Tab></Tabs><SelectedTab>0</SelectedTab></Wnd3></Windows>
<Editor>
- <Pane><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\NEC_V850ES_Fx3_IAR\serial\serialISR.s85</Filename><XPos>0</XPos><YPos>6</YPos><SelStart>1116</SelStart><SelEnd>1116</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\NEC_V850ES_Fx3_IAR\serial\serial.c</Filename><XPos>0</XPos><YPos>108</YPos><SelStart>4801</SelStart><SelEnd>4801</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\Common\Minimal\comtest.c</Filename><XPos>0</XPos><YPos>165</YPos><SelStart>7455</SelStart><SelEnd>7455</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\NEC_V850ES_Fx3_IAR\RegTest.s85</Filename><XPos>0</XPos><YPos>125</YPos><SelStart>3960</SelStart><SelEnd>3960</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Source\portable\IAR\V850ES_Fx3\portmacro.h</Filename><XPos>0</XPos><YPos>116</YPos><SelStart>5010</SelStart><SelEnd>5015</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Source\portable\IAR\V850ES_Fx3\port.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Source\include\queue.h</Filename><XPos>0</XPos><YPos>719</YPos><SelStart>25052</SelStart><SelEnd>25072</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Source\queue.c</Filename><XPos>1</XPos><YPos>984</YPos><SelStart>33540</SelStart><SelEnd>33540</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Source\portable\IAR\V850ES_Fx3\portasm.s85</Filename><XPos>0</XPos><YPos>237</YPos><SelStart>9109</SelStart><SelEnd>9109</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Source\include\task.h</Filename><XPos>0</XPos><YPos>102</YPos><SelStart>3906</SelStart><SelEnd>3924</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\NEC_V850ES_Fx3_IAR\FreeRTOSConfig.h</Filename><XPos>0</XPos><YPos>69</YPos><SelStart>3431</SelStart><SelEnd>3431</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\Common\Minimal\BlockQ.c</Filename><XPos>0</XPos><YPos>171</YPos><SelStart>9651</SelStart><SelEnd>9651</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Source\tasks.c</Filename><XPos>0</XPos><YPos>1486</YPos><SelStart>46919</SelStart><SelEnd>46919</SelEnd></Tab><ActiveTab>12</ActiveTab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\NEC_V850ES_Fx3_IAR\main.c</Filename><XPos>0</XPos><YPos>100</YPos><SelStart>4336</SelStart><SelEnd>4336</SelEnd></Tab></Pane><ActivePane>0</ActivePane><Sizes><Pane><X>1000000</X><Y>1000000</Y></Pane></Sizes><SplitMode>1</SplitMode></Editor>
+ <Pane/><ActivePane>0</ActivePane><Sizes><Pane><X>1000000</X><Y>1000000</Y></Pane></Sizes><SplitMode>1</SplitMode></Editor>
<Positions>
- <Top><Row0><Sizes><Toolbar-00aa9b30><key>iaridepm.enu1</key></Toolbar-00aa9b30></Sizes></Row0><Row1><Sizes/></Row1></Top><Left><Row0><Sizes><Wnd0><Rect><Top>-2</Top><Left>-2</Left><Bottom>740</Bottom><Right>314</Right><x>-2</x><y>-2</y><xscreen>316</xscreen><yscreen>205</yscreen><sizeHorzCX>188095</sizeHorzCX><sizeHorzCY>208758</sizeHorzCY><sizeVertCX>188095</sizeVertCX><sizeVertCY>755601</sizeVertCY></Rect></Wnd0></Sizes></Row0></Left><Right><Row0><Sizes/></Row0></Right><Bottom><Row0><Sizes><Wnd1><Rect><Top>-2</Top><Left>-2</Left><Bottom>198</Bottom><Right>1682</Right><x>-2</x><y>-2</y><xscreen>1684</xscreen><yscreen>200</yscreen><sizeHorzCX>1002381</sizeHorzCX><sizeHorzCY>203666</sizeHorzCY><sizeVertCX>142857</sizeVertCX><sizeVertCY>203666</sizeVertCY></Rect></Wnd1></Sizes></Row0></Bottom><Float><Sizes/></Float></Positions>
+ <Top><Row0><Sizes><Toolbar-00aa9b60><key>iaridepm.enu1</key></Toolbar-00aa9b60></Sizes></Row0><Row1><Sizes/></Row1></Top><Left><Row0><Sizes><Wnd2><Rect><Top>-2</Top><Left>-2</Left><Bottom>740</Bottom><Right>314</Right><x>-2</x><y>-2</y><xscreen>316</xscreen><yscreen>205</yscreen><sizeHorzCX>188095</sizeHorzCX><sizeHorzCY>208758</sizeHorzCY><sizeVertCX>188095</sizeVertCX><sizeVertCY>755601</sizeVertCY></Rect></Wnd2></Sizes></Row0></Left><Right><Row0><Sizes/></Row0></Right><Bottom><Row0><Sizes><Wnd3><Rect><Top>-2</Top><Left>-2</Left><Bottom>198</Bottom><Right>1682</Right><x>-2</x><y>-2</y><xscreen>1684</xscreen><yscreen>200</yscreen><sizeHorzCX>1002381</sizeHorzCX><sizeHorzCY>203666</sizeHorzCY><sizeVertCX>142857</sizeVertCX><sizeVertCY>203666</sizeVertCY></Rect></Wnd3></Sizes></Row0></Bottom><Float><Sizes/></Float></Positions>
</Desktop>
</Workspace>