From 300f98014714751e35e717e43e8fde11326f279d Mon Sep 17 00:00:00 2001 From: richardbarry Date: Fri, 9 Sep 2011 10:09:10 +0000 Subject: [PATCH] Complete the RL78 demo. main.c still requires documentation in the comments at the top of the file. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1587 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- .../FreeRTOSConfig.h | 13 +---- .../RL78_RL78G13_Promo_Board_IAR/RTOSDemo.ewp | 14 ++--- Demo/RL78_RL78G13_Promo_Board_IAR/RegTest.s87 | 9 +-- Demo/RL78_RL78G13_Promo_Board_IAR/main.c | 58 +++++++++++++++++-- .../settings/rtosdemo.dbgdt | 14 ++--- .../settings/rtosdemo.dni | 5 +- .../settings/rtosdemo.wsdt | 6 +- 7 files changed, 80 insertions(+), 39 deletions(-) diff --git a/Demo/RL78_RL78G13_Promo_Board_IAR/FreeRTOSConfig.h b/Demo/RL78_RL78G13_Promo_Board_IAR/FreeRTOSConfig.h index 6e841b007..de9b770d2 100644 --- a/Demo/RL78_RL78G13_Promo_Board_IAR/FreeRTOSConfig.h +++ b/Demo/RL78_RL78G13_Promo_Board_IAR/FreeRTOSConfig.h @@ -90,12 +90,12 @@ asm file. It is valid in a C file, but not valid in an asm file. */ #define configUSE_PREEMPTION 1 #define configTICK_RATE_HZ ( ( unsigned short ) 1000 ) #define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 4 ) -#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 100 ) +#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 80 ) #define configMAX_TASK_NAME_LEN ( 10 ) #define configUSE_TRACE_FACILITY 0 #define configUSE_16_BIT_TICKS 1 #define configIDLE_SHOULD_YIELD 1 -#define configTOTAL_HEAP_SIZE ( (size_t ) ( 3500 ) ) +#define configTOTAL_HEAP_SIZE ( (size_t ) ( 3420 ) ) #define configCHECK_FOR_STACK_OVERFLOW 2 #define configUSE_MUTEXES 1 @@ -138,15 +138,6 @@ to exclude the API function. */ */ #define configCLOCK_SOURCE 1 -/* - * RL78/G13 Memory Model - * 1 = use far memory mode - * 0 = use near memory mode - * - * This setting must match the setting in the IAR project options. - */ -#define configMEMORY_MODE 0 - #if configCLOCK_SOURCE == 0 #define configCPU_CLOCK_HZ ( ( unsigned long ) 20000000 ) /* using the external clock source */ #else diff --git a/Demo/RL78_RL78G13_Promo_Board_IAR/RTOSDemo.ewp b/Demo/RL78_RL78G13_Promo_Board_IAR/RTOSDemo.ewp index 0b30add33..a00303a83 100644 --- a/Demo/RL78_RL78G13_Promo_Board_IAR/RTOSDemo.ewp +++ b/Demo/RL78_RL78G13_Promo_Board_IAR/RTOSDemo.ewp @@ -78,7 +78,7 @@