From 75363732b31df5aba3a4db00840cff3484e78093 Mon Sep 17 00:00:00 2001 From: richardbarry Date: Mon, 4 Mar 2013 13:23:48 +0000 Subject: [PATCH] All related to RL78 GCC demos (which are still a work in progress): - Abstract out the IO port handling for the LED output so the same code can be used on multiple eval boards. - Add in the RESTORE_CONTEXT macros. - Swap to use heap_1.c instead of heap_4.c. - Add data model macros to FreeRTOSConfig.h (may be removed if only one data model is supported by the compiler). - Install interrupt handlers. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1836 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- FreeRTOS/Demo/RL78_E2Studio_GCC/.cproject | 9 +- .../Demo/RL78_E2Studio_GCC/RTOSDemo.launch | 28 +- .../RL78_E2Studio_GCC/src/FreeRTOSConfig.h | 49 +- .../portable/GCC/RL78/portasm.S | 35 +- .../FreeRTOS_Source/portable/MemMang/heap_1.c | 177 ++++ .../FreeRTOS_Source/portable/MemMang/heap_4.c | 359 ------- FreeRTOS/Demo/RL78_E2Studio_GCC/src/LED.h | 102 ++ .../RL78_E2Studio_GCC/src/hardware_setup.c | 42 +- .../src/interrupt_handlers.c | 144 ++- .../src/interrupt_handlers.h | 144 ++- .../Demo/RL78_E2Studio_GCC/src/iodefine.h | 523 ++++++++--- .../Demo/RL78_E2Studio_GCC/src/iodefine_ext.h | 878 ++++++++++++++++-- FreeRTOS/Demo/RL78_E2Studio_GCC/src/main.c | 73 +- .../RL78_E2Studio_GCC/src/reset_program.asm | 4 +- .../Demo/RL78_E2Studio_GCC/src/typedefine.h | 4 +- .../Demo/RL78_E2Studio_GCC/src/vector_table.c | 125 +-- 16 files changed, 1853 insertions(+), 843 deletions(-) create mode 100644 FreeRTOS/Demo/RL78_E2Studio_GCC/src/FreeRTOS_Source/portable/MemMang/heap_1.c delete mode 100644 FreeRTOS/Demo/RL78_E2Studio_GCC/src/FreeRTOS_Source/portable/MemMang/heap_4.c create mode 100644 FreeRTOS/Demo/RL78_E2Studio_GCC/src/LED.h diff --git a/FreeRTOS/Demo/RL78_E2Studio_GCC/.cproject b/FreeRTOS/Demo/RL78_E2Studio_GCC/.cproject index f62f239c4..b4e3afce3 100644 --- a/FreeRTOS/Demo/RL78_E2Studio_GCC/.cproject +++ b/FreeRTOS/Demo/RL78_E2Studio_GCC/.cproject @@ -55,12 +55,17 @@