]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lib.git/commitdiff
Remove the name of the platform from the OS folder name
authorMichal Horn <hornmich@fel.cvut.cz>
Thu, 16 Apr 2015 13:56:02 +0000 (15:56 +0200)
committerMichal Horn <hornmich@fel.cvut.cz>
Thu, 16 Apr 2015 14:09:32 +0000 (16:09 +0200)
74 files changed:
.cproject
Makefile.config
Makefile.var
POSIX/GNUmakefile
apps/rpp-test-suite/src/ain.c
apps/rpp-test-suite/src/main.c
os/7.0.2/include/os/FreeRTOS.h [moved from os/7.0.2_rm48/include/os/FreeRTOS.h with 100% similarity]
os/7.0.2/include/os/FreeRTOSConfig.h [moved from os/7.0.2_rm48/include/os/FreeRTOSConfig.h with 100% similarity]
os/7.0.2/include/os/StackMacros.h [moved from os/7.0.2_rm48/include/os/StackMacros.h with 100% similarity]
os/7.0.2/include/os/croutine.h [moved from os/7.0.2_rm48/include/os/croutine.h with 100% similarity]
os/7.0.2/include/os/list.h [moved from os/7.0.2_rm48/include/os/list.h with 100% similarity]
os/7.0.2/include/os/mpu_wrappers.h [moved from os/7.0.2_rm48/include/os/mpu_wrappers.h with 100% similarity]
os/7.0.2/include/os/os.h [moved from os/7.0.2_rm48/include/os/os.h with 100% similarity]
os/7.0.2/include/os/portable.h [moved from os/7.0.2_rm48/include/os/portable.h with 100% similarity]
os/7.0.2/include/os/portmacro.h [moved from os/7.0.2_rm48/include/os/portmacro.h with 100% similarity]
os/7.0.2/include/os/projdefs.h [moved from os/7.0.2_rm48/include/os/projdefs.h with 100% similarity]
os/7.0.2/include/os/queue.h [moved from os/7.0.2_rm48/include/os/queue.h with 100% similarity]
os/7.0.2/include/os/semphr.h [moved from os/7.0.2_rm48/include/os/semphr.h with 100% similarity]
os/7.0.2/include/os/task.h [moved from os/7.0.2_rm48/include/os/task.h with 100% similarity]
os/7.0.2/include/os/timers.h [moved from os/7.0.2_rm48/include/os/timers.h with 100% similarity]
os/7.0.2/src/os/croutine.c [moved from os/7.0.2_rm48/src/os/croutine.c with 100% similarity]
os/7.0.2/src/os/heap.c [moved from os/7.0.2_rm48/src/os/heap.c with 100% similarity]
os/7.0.2/src/os/list.c [moved from os/7.0.2_rm48/src/os/list.c with 100% similarity]
os/7.0.2/src/os/port.c [moved from os/7.0.2_rm48/src/os/port.c with 100% similarity]
os/7.0.2/src/os/portASM.asm [moved from os/7.0.2_rm48/src/os/portASM.asm with 100% similarity]
os/7.0.2/src/os/queue.c [moved from os/7.0.2_rm48/src/os/queue.c with 100% similarity]
os/7.0.2/src/os/tasks.c [moved from os/7.0.2_rm48/src/os/tasks.c with 100% similarity]
os/7.0.2/src/os/timers.c [moved from os/7.0.2_rm48/src/os/timers.c with 100% similarity]
os/7.4.0/include/os/FreeRTOS.h [moved from os/7.4.0_rm48/include/os/FreeRTOS.h with 100% similarity]
os/7.4.0/include/os/FreeRTOSConfig.h [moved from os/7.4.0_rm48/include/os/FreeRTOSConfig.h with 100% similarity]
os/7.4.0/include/os/StackMacros.h [moved from os/7.4.0_rm48/include/os/StackMacros.h with 100% similarity]
os/7.4.0/include/os/croutine.h [moved from os/7.4.0_rm48/include/os/croutine.h with 100% similarity]
os/7.4.0/include/os/list.h [moved from os/7.4.0_rm48/include/os/list.h with 100% similarity]
os/7.4.0/include/os/mpu_wrappers.h [moved from os/7.4.0_rm48/include/os/mpu_wrappers.h with 100% similarity]
os/7.4.0/include/os/os.h [moved from os/7.4.0_rm48/include/os/os.h with 100% similarity]
os/7.4.0/include/os/portable.h [moved from os/7.4.0_rm48/include/os/portable.h with 100% similarity]
os/7.4.0/include/os/portmacro.h [moved from os/7.4.0_rm48/include/os/portmacro.h with 100% similarity]
os/7.4.0/include/os/projdefs.h [moved from os/7.4.0_rm48/include/os/projdefs.h with 100% similarity]
os/7.4.0/include/os/queue.h [moved from os/7.4.0_rm48/include/os/queue.h with 100% similarity]
os/7.4.0/include/os/semphr.h [moved from os/7.4.0_rm48/include/os/semphr.h with 100% similarity]
os/7.4.0/include/os/task.h [moved from os/7.4.0_rm48/include/os/task.h with 100% similarity]
os/7.4.0/include/os/timers.h [moved from os/7.4.0_rm48/include/os/timers.h with 100% similarity]
os/7.4.0/src/os/croutine.c [moved from os/7.4.0_rm48/src/os/croutine.c with 100% similarity]
os/7.4.0/src/os/heap.c [moved from os/7.4.0_rm48/src/os/heap.c with 100% similarity]
os/7.4.0/src/os/list.c [moved from os/7.4.0_rm48/src/os/list.c with 100% similarity]
os/7.4.0/src/os/mpu_wrappers.c [moved from os/7.4.0_rm48/src/os/mpu_wrappers.c with 100% similarity]
os/7.4.0/src/os/port.c [moved from os/7.4.0_rm48/src/os/port.c with 100% similarity]
os/7.4.0/src/os/portASM.asm [moved from os/7.4.0_rm48/src/os/portASM.asm with 100% similarity]
os/7.4.0/src/os/queue.c [moved from os/7.4.0_rm48/src/os/queue.c with 100% similarity]
os/7.4.0/src/os/tasks.c [moved from os/7.4.0_rm48/src/os/tasks.c with 100% similarity]
os/7.4.0/src/os/timers.c [moved from os/7.4.0_rm48/src/os/timers.c with 100% similarity]
os/7.4.2/include/os/FreeRTOS.h [moved from os/7.4.2_rm48/include/os/FreeRTOS.h with 100% similarity]
os/7.4.2/include/os/FreeRTOSConfig.h [moved from os/7.4.2_rm48/include/os/FreeRTOSConfig.h with 100% similarity]
os/7.4.2/include/os/StackMacros.h [moved from os/7.4.2_rm48/include/os/StackMacros.h with 100% similarity]
os/7.4.2/include/os/croutine.h [moved from os/7.4.2_rm48/include/os/croutine.h with 100% similarity]
os/7.4.2/include/os/list.h [moved from os/7.4.2_rm48/include/os/list.h with 100% similarity]
os/7.4.2/include/os/mpu_wrappers.h [moved from os/7.4.2_rm48/include/os/mpu_wrappers.h with 100% similarity]
os/7.4.2/include/os/os.h [moved from os/7.4.2_rm48/include/os/os.h with 100% similarity]
os/7.4.2/include/os/portable.h [moved from os/7.4.2_rm48/include/os/portable.h with 100% similarity]
os/7.4.2/include/os/portmacro.h [moved from os/7.4.2_rm48/include/os/portmacro.h with 100% similarity]
os/7.4.2/include/os/projdefs.h [moved from os/7.4.2_rm48/include/os/projdefs.h with 100% similarity]
os/7.4.2/include/os/queue.h [moved from os/7.4.2_rm48/include/os/queue.h with 100% similarity]
os/7.4.2/include/os/semphr.h [moved from os/7.4.2_rm48/include/os/semphr.h with 100% similarity]
os/7.4.2/include/os/task.h [moved from os/7.4.2_rm48/include/os/task.h with 100% similarity]
os/7.4.2/include/os/timers.h [moved from os/7.4.2_rm48/include/os/timers.h with 100% similarity]
os/7.4.2/os.txt [moved from os/7.4.2_rm48/os.txt with 100% similarity]
os/7.4.2/src/os/croutine.c [moved from os/7.4.2_rm48/src/os/croutine.c with 100% similarity]
os/7.4.2/src/os/heap.c [moved from os/7.4.2_rm48/src/os/heap.c with 100% similarity]
os/7.4.2/src/os/list.c [moved from os/7.4.2_rm48/src/os/list.c with 100% similarity]
os/7.4.2/src/os/port.c [moved from os/7.4.2_rm48/src/os/port.c with 100% similarity]
os/7.4.2/src/os/portASM.asm [moved from os/7.4.2_rm48/src/os/portASM.asm with 100% similarity]
os/7.4.2/src/os/queue.c [moved from os/7.4.2_rm48/src/os/queue.c with 100% similarity]
os/7.4.2/src/os/tasks.c [moved from os/7.4.2_rm48/src/os/tasks.c with 100% similarity]
os/7.4.2/src/os/timers.c [moved from os/7.4.2_rm48/src/os/timers.c with 100% similarity]

index 0d0e6ce1453380eb2539c5683715d0aec2b567bd..9c1c9ef946688bd149c44d4fdb4603c905243ef7 100644 (file)
--- a/.cproject
+++ b/.cproject
@@ -35,7 +35,7 @@
                                                                <option id="com.ti.ccstudio.buildDefinitions.TMS470_5.1.compilerID.ENUM_TYPE.61845731" name="Designate enum type (Default is packed for EABI) (--enum_type)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.1.compilerID.ENUM_TYPE" value="com.ti.ccstudio.buildDefinitions.TMS470_5.1.compilerID.ENUM_TYPE.packed" valueType="enumerated"/>
                                                                <option id="com.ti.ccstudio.buildDefinitions.TMS470_5.1.compilerID.INCLUDE_PATH.899107020" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.1.compilerID.INCLUDE_PATH" valueType="includePath">
                                                                        <listOptionValue builtIn="false" value="&quot;${CG_TOOL_ROOT}/include&quot;"/>
-                                                                       <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/os/7.0.2_rm48/include}&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/os/7.0.2/include}&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/rpp/include/}&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/lwip/src/include}&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/lwip/src/include/ipv4}&quot;"/>
@@ -50,7 +50,7 @@
                                                                <option id="com.ti.ccstudio.buildDefinitions.TMS470_5.1.compilerID.DIAG_WRAP.192096968" name="Wrap diagnostic messages (--diag_wrap)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.1.compilerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.TMS470_5.1.compilerID.DIAG_WRAP.off" valueType="enumerated"/>
                                                                <option id="com.ti.ccstudio.buildDefinitions.TMS470_5.1.compilerID.GEN_FUNC_SUBSECTIONS.662453482" name="Place each function in a separate subsection (--gen_func_subsections, -ms)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.1.compilerID.GEN_FUNC_SUBSECTIONS" value="com.ti.ccstudio.buildDefinitions.TMS470_5.1.compilerID.GEN_FUNC_SUBSECTIONS.on" valueType="enumerated"/>
                                                                <option id="com.ti.ccstudio.buildDefinitions.TMS470_5.1.compilerID.LITTLE_ENDIAN.1133102083" name="Little endian code [See 'General' page to edit] (--little_endian, -me)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.1.compilerID.LITTLE_ENDIAN" value="true" valueType="boolean"/>
-                                                               <option id="com.ti.ccstudio.buildDefinitions.TMS470_5.1.compilerID.DEFINE.1018447230" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.1.compilerID.DEFINE" valueType="definedSymbols">
+                                                               <option id="com.ti.ccstudio.buildDefinitions.TMS470_5.1.compilerID.DEFINE.1018447230" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.1.compilerID.DEFINE" valueType="definedSymbols">
                                                                        <listOptionValue builtIn="false" value="TARGET_RM48_HDK"/>
                                                                </option>
                                                                <inputType id="com.ti.ccstudio.buildDefinitions.TMS470_5.1.compiler.inputType__C_SRCS.826130508" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.1.compiler.inputType__C_SRCS"/>
index 18955d4ef4ab1c1da8b01e0dc6c1f74af7d512e8..5de5b63f65761afdd3810537fb2a43f62177b14f 100644 (file)
@@ -1,2 +1,2 @@
-TARGET=rm48_hdk
-TARGET_CFLAGS=-me -DTARGET_RM48_HDK
+TARGET ?= rm48_hdk
+TARGET_CFLAGS = -me -DTARGET_RM48_HDK
index 729f038b5cc352adc2123b63f201f6566d982d54..dd68855cffb7e92077b9b777f3145251e61f7217 100644 (file)
@@ -14,7 +14,7 @@
 
 include $(dir $(lastword $(MAKEFILE_LIST)))Makefile.config
 
-rpp_lib_OS ?= 7.0.2_rm48
+rpp_lib_OS ?= 7.0.2
 
 rpp_lib_SOURCES =                                                              \
        os/$(rpp_lib_OS)/src/os/croutine.c              \
@@ -23,24 +23,21 @@ rpp_lib_SOURCES =                                                           \
        os/$(rpp_lib_OS)/src/os/port.c                  \
        os/$(rpp_lib_OS)/src/os/queue.c                 \
        os/$(rpp_lib_OS)/src/os/tasks.c                 \
-          $(rpp_lib_SOURCES_$(rpp_lib_OS))
+          $(rpp_lib_SOURCES_$(rpp_lib_OS)_$(TARGET))
 
-rpp_lib_SOURCES_7.0.2_rm48 += \
+rpp_lib_SOURCES_7.0.2_rm48_hdk += \
        os/$(rpp_lib_OS)/src/os/portASM.asm             \
        os/$(rpp_lib_OS)/src/os/timers.c
 
-rpp_lib_SOURCES_6.0.4_posix += \
+rpp_lib_SOURCES_6.0.4_posix_linux += \
        os/$(rpp_lib_OS)/src/rpp/sci_posix.c
 
-rpp_lib_SOURCES +=                                                             \
+rpp_lib_SOURCES_7.0.2_rm48_hdk +=                                      \
        rpp/src/rpp/_$(TARGET)/adc.c                            \
        rpp/src/rpp/can.c                                               \
        rpp/src/rpp/_$(TARGET)/rpp.c                            \
        rpp/src/rpp/gio.c                                               \
-       rpp/src/rpp/sci.c                                               
-       
-
-rpp_lib_SOURCES_7.0.2_rm48 +=                                  \
+       rpp/src/rpp/sci.c                                               \
        rpp/src/drv/_$(TARGET)/adc.c                            \
        rpp/src/drv/sci.c                                               \
        rpp/src/hal/gpio.c                                              \
index 9740934361f79526cbd006aa3b23ba822133b13a..b9407d6b652fe3b7fbc70719f5572b74bebe24e3 100644 (file)
@@ -1,5 +1,5 @@
 rpp_lib_OS = 6.0.4_posix
-
+TARGET=linux
 include ../Makefile.var
 
 rpp_lib_CFLAGS = -Wall -g -O0 -I../apps/rpp-lib_posix/include $(rpp_lib_INCLUDES:%=-I../%)
index d90f56d4b9cfdfa7180ff339a2b231361ce37091..51fd8766f313482fe2fcd14b18ce09b0f05a5c2c 100644 (file)
@@ -33,6 +33,7 @@ static uint8_t tasks_running = 0;
  */
 void adc_test_task(void *par)
 {
+       #ifndef FREERTOS_POSIX
        rpp_sci_printf((const char *)
                                   "Analog Inputs Test [1-12]:\r\n"
                                   );
@@ -86,6 +87,7 @@ void adc_test_task(void *par)
        // Delete myself
        tasks_running--;
        vTaskDelete(NULL);
+       #endif
 }
 
 
@@ -94,6 +96,7 @@ void adc_test_task(void *par)
  */
 void test_adc()
 {
+       #ifndef FREERTOS_POSIX
        /// Configure module
        // - Not needed
 
@@ -141,6 +144,9 @@ void test_adc()
 
 
        rpp_sci_printf((const char *)"\r\n");
+       #else
+       rpp_sci_printf((const char *)"ADC not supported on Linux target.\r\n");
+       #endif
 
        return;
 }
index 9fc3843899ff8d88ccc8d100bf81f93455b3ad30..534fba335a6803e3d458588b32b0a88a386c5584 100644 (file)
@@ -173,12 +173,13 @@ void busy_infinite_loop()
  */
 int main(void)
 {
+       #ifndef FREERTOS_POSIX
        // Initialize library
        rpp_init();
 
        // Speed up the SCI
        rpp_sci_setup(115200);
-
+       #endif
        // Spawn tasks
        portBASE_TYPE task_created =
                xTaskCreate(test_cmdproc,
similarity index 100%
rename from os/7.4.2_rm48/os.txt
rename to os/7.4.2/os.txt