From 4fd78f39881f96e2db3f19083e6972c349b7205e Mon Sep 17 00:00:00 2001 From: richardbarry Date: Mon, 18 Mar 2013 16:43:21 +0000 Subject: [PATCH] Add two additional targets to the RL78 IAR project. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1845 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- .../FreeRTOSConfig.h | 9 +- .../RL78_RL78G13_Promo_Board_IAR/RTOSDemo.ewd | 600 +++++- .../RL78_RL78G13_Promo_Board_IAR/RTOSDemo.ewp | 1802 ++++++++++++++++- .../{LED.h => demo_specific_io.h} | 32 +- .../Demo/RL78_RL78G13_Promo_Board_IAR/main.c | 8 +- .../main_blinky.c | 4 +- .../RL78_RL78G13_Promo_Board_IAR/main_full.c | 4 +- .../settings/rtosdemo.cspy.bat | 2 +- .../settings/rtosdemo.dbgdt | 12 +- .../settings/rtosdemo.dni | 22 +- .../settings/rtosdemo.wsdt | 14 +- 11 files changed, 2456 insertions(+), 53 deletions(-) rename FreeRTOS/Demo/RL78_RL78G13_Promo_Board_IAR/{LED.h => demo_specific_io.h} (82%) diff --git a/FreeRTOS/Demo/RL78_RL78G13_Promo_Board_IAR/FreeRTOSConfig.h b/FreeRTOS/Demo/RL78_RL78G13_Promo_Board_IAR/FreeRTOSConfig.h index 8492698f8..0224421c2 100644 --- a/FreeRTOS/Demo/RL78_RL78G13_Promo_Board_IAR/FreeRTOSConfig.h +++ b/FreeRTOS/Demo/RL78_RL78G13_Promo_Board_IAR/FreeRTOSConfig.h @@ -92,11 +92,14 @@ asm file. It is valid in a C file, but not valid in an asm file. */ #ifdef __IAR_SYSTEMS_ICC__ #pragma system_include - #include #endif /* __IAR_SYSTEMS_ICC__ */ +/* Include hardware dependent header files to allow this demo to run on +multiple evaluation boards. */ +#include "demo_specific_io.h" + #define configUSE_PREEMPTION 1 #define configTICK_RATE_HZ ( ( unsigned short ) 1000 ) #define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 4 ) @@ -136,6 +139,10 @@ to exclude the API function. */ #define INCLUDE_xTaskGetIdleTaskHandle 0 #define INCLUDE_xTimerGetTimerDaemonTaskHandle 0 +/* Tick interrupt vector - this must match the INTIT_vect definition contained +in the ior5fnnnn.h header file included at the top of this file (the value is +dependent on the hardware being used. */ +#define configTICK_VECTOR INTIT_vect #define configASSERT( x ) if( ( x ) == 0 ) { taskDISABLE_INTERRUPTS(); for( ;; ); } diff --git a/FreeRTOS/Demo/RL78_RL78G13_Promo_Board_IAR/RTOSDemo.ewd b/FreeRTOS/Demo/RL78_RL78G13_Promo_Board_IAR/RTOSDemo.ewd index 726983066..d0d8eedf7 100644 --- a/FreeRTOS/Demo/RL78_RL78G13_Promo_Board_IAR/RTOSDemo.ewd +++ b/FreeRTOS/Demo/RL78_RL78G13_Promo_Board_IAR/RTOSDemo.ewd @@ -57,7 +57,7 @@