]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lib.git/commitdiff
Finished to implement the rpp-test-suite project for POSIX FreeRTOS. Compilesss niceeee.
authorCarlos Jenkins <carlos@jenkins.co.cr>
Mon, 10 Jun 2013 00:10:12 +0000 (02:10 +0200)
committerCarlos Jenkins <carlos@jenkins.co.cr>
Mon, 10 Jun 2013 00:10:12 +0000 (02:10 +0200)
apps/rpp-test-suite/src/ain.c
apps/rpp-test-suite/src/aout.c
apps/rpp-test-suite/src/din.c
apps/rpp-test-suite/src/hbr.c
apps/rpp-test-suite/src/lout.c
apps/rpp-test-suite/src/main.c
apps/rpp-test-suite/src/sdr.c
apps/rpp-test-suite_posix/.cproject [new file with mode: 0644]
apps/rpp-test-suite_posix/.gitignore
apps/rpp-test-suite_posix/.project [new file with mode: 0644]

index fb1f36e6a996dde0d2151adaa23e9ac264451f34..f9c899060d6c8aac6d3dfeee7289c1cc9fa5a051 100644 (file)
@@ -93,7 +93,7 @@ void test_ain(void)
 
         rpp_sci_printf((const char*)
                 "ERROR: Problem spawning the test task. "
-                "Error code: %d\r\n", task_created
+                "Error code: %d\r\n", (uint32_t)task_created
             );
         wait_for_quit();
         return;
index 76ee03148f3237bd04696e72f4655d8cdf5d6e49..d18a491444fbc086b35a354a446d21e3f6563b88 100644 (file)
@@ -102,7 +102,7 @@ void aout_test_task(void* par)
 
         rpp_sci_printf((const char*)
                 "\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b"
-                "Samples: %d", samples
+                "Samples: %lu", samples
             );
 
     }
@@ -126,7 +126,7 @@ void test_aout(void)
 
         rpp_sci_printf((const char*)
                 "ERROR: Problem spawning the test task. "
-                "Error code: %d\r\n", task_created
+                "Error code: %d\r\n", (uint32_t)task_created
             );
         wait_for_quit();
         return;
index 706eb8f9278e7cd8aa5e8dc263be930ccdab6055..25ce2edc03071de784215343d26ece79ec7b1ec4 100644 (file)
@@ -104,7 +104,7 @@ void test_din(void)
 
         rpp_sci_printf((const char*)
                 "ERROR: Problem spawning the test task. "
-                "Error code: %d\r\n", task_created
+                "Error code: %d\r\n", (uint32_t)task_created
             );
         wait_for_quit();
         return;
index a7d09b784e96e704f686e6ec43c659c8d8e65a3c..99d2be5e66485ea1e947ea70c848b3743232ab4b 100644 (file)
@@ -84,7 +84,7 @@ void hbr_test_task(void* par)
 
         rpp_sci_printf(
                 "\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b"
-                "Samples: %d", samples
+                "Samples: %lu", samples
             );
 
     }
@@ -108,7 +108,7 @@ void test_hbr(void)
 
         rpp_sci_printf((const char*)
                 "ERROR: Problem spawning the test task. "
-                "Error code: %d\r\n", task_created
+                "Error code: %d\r\n", (uint32_t)task_created
             );
         wait_for_quit();
         return;
index ed1326015e829edef0a582960f3a837ecd4f96ba..2c60663d8f44be0779d4b06c51834e81405deedd 100644 (file)
@@ -91,7 +91,7 @@ void test_lout(void)
 
         rpp_sci_printf((const char*)
                 "ERROR: Problem spawning the test task. "
-                "Error code: %d\r\n", task_created
+                "Error code: %d\r\n", (uint32_t)task_created
             );
         wait_for_quit();
         return;
index b37dd6c1a285b3730ed0fd344f321593292b7fd3..e6749902e778158e0db33b0e0b7d803d23853b2b 100644 (file)
@@ -214,7 +214,7 @@ void busy_infinite_loop()
  *
  * This function is called after startup.
  */
-void main(void)
+int main(void)
 {
     // Initialize library
     rpp_init();
@@ -232,7 +232,7 @@ void main(void)
     if(task_created != pdPASS) {
         rpp_sci_printf((const char*)
                 "ERROR: Problem allocating memory for command processor to "
-                "start. Error code: %d\r\n", task_created
+                "start. Error code: %d\r\n", (uint32_t)task_created
             );
         busy_infinite_loop();
     }
@@ -245,6 +245,8 @@ void main(void)
             "ERROR: Problem allocating memory for scheduler to start.\r\n"
         );
     busy_infinite_loop();
+
+    return 0;
 }
 
 
index 0f3e2d5b6d491042b9073de9e1910632b9b143e1..6282af71d781b67849fdcf170f200f2e1de39fee 100644 (file)
@@ -85,7 +85,7 @@ void test_sdr(void)
 
         rpp_sci_printf((const char*)
                 "ERROR: Problem spawning the test task. "
-                "Error code: %d\r\n", task_created
+                "Error code: %d\r\n", (uint32_t)task_created
             );
 
         wait_for_quit();
diff --git a/apps/rpp-test-suite_posix/.cproject b/apps/rpp-test-suite_posix/.cproject
new file mode 100644 (file)
index 0000000..2556788
--- /dev/null
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<?fileVersion 4.0.0?>
+
+<cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
+       <storageModule moduleId="org.eclipse.cdt.core.settings">
+               <cconfiguration id="cdt.managedbuild.toolchain.gnu.base.307175498">
+                       <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="cdt.managedbuild.toolchain.gnu.base.307175498" moduleId="org.eclipse.cdt.core.settings" name="Default">
+                               <externalSettings/>
+                               <extensions>
+                                       <extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
+                                       <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+                                       <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
+                                       <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+                                       <extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+                                       <extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+                               </extensions>
+                       </storageModule>
+                       <storageModule moduleId="cdtBuildSystem" version="4.0.0">
+                               <configuration artifactName="${ProjName}" buildProperties="" description="" id="cdt.managedbuild.toolchain.gnu.base.307175498" name="Default" parent="org.eclipse.cdt.build.core.emptycfg">
+                                       <folderInfo id="cdt.managedbuild.toolchain.gnu.base.307175498.1939840090" name="/" resourcePath="">
+                                               <toolChain id="cdt.managedbuild.toolchain.gnu.base.1771895254" name="cdt.managedbuild.toolchain.gnu.base" superClass="cdt.managedbuild.toolchain.gnu.base">
+                                                       <targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF" id="cdt.managedbuild.target.gnu.platform.base.1872178374" name="Debug Platform" osList="linux,hpux,aix,qnx" superClass="cdt.managedbuild.target.gnu.platform.base"/>
+                                                       <builder buildPath="${workspace_loc:/rpp-test-suite_posix/Default}" id="cdt.managedbuild.target.gnu.builder.base.712159644" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="Gnu Make Builder" superClass="cdt.managedbuild.target.gnu.builder.base"/>
+                                                       <tool id="cdt.managedbuild.tool.gnu.archiver.base.749776317" name="GCC Archiver" superClass="cdt.managedbuild.tool.gnu.archiver.base"/>
+                                                       <tool id="cdt.managedbuild.tool.gnu.cpp.compiler.base.921125778" name="GCC C++ Compiler" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.base"/>
+                                                       <tool id="cdt.managedbuild.tool.gnu.c.compiler.base.607280630" name="GCC C Compiler" superClass="cdt.managedbuild.tool.gnu.c.compiler.base">
+                                                               <option id="gnu.c.compiler.option.include.paths.807574401" name="Include paths (-I)" superClass="gnu.c.compiler.option.include.paths" valueType="includePath">
+                                                                       <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/include}&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="../../../os/6.0.4_posix/include/"/>
+                                                                       <listOptionValue builtIn="false" value="../../rpp-test-suite/include/"/>
+                                                                       <listOptionValue builtIn="false" value="../../../rpp/include/"/>
+                                                               </option>
+                                                               <option id="gnu.c.compiler.option.misc.other.1082435022" name="Other flags" superClass="gnu.c.compiler.option.misc.other" value="-pthread -c -fmessage-length=0" valueType="string"/>
+                                                               <inputType id="cdt.managedbuild.tool.gnu.c.compiler.input.497561818" superClass="cdt.managedbuild.tool.gnu.c.compiler.input"/>
+                                                       </tool>
+                                                       <tool id="cdt.managedbuild.tool.gnu.c.linker.base.853552706" name="GCC C Linker" superClass="cdt.managedbuild.tool.gnu.c.linker.base">
+                                                               <option id="gnu.c.link.option.libs.1254500065" name="Libraries (-l)" superClass="gnu.c.link.option.libs" valueType="libs">
+                                                                       <listOptionValue builtIn="false" value="pthread"/>
+                                                                       <listOptionValue builtIn="false" value="m"/>
+                                                               </option>
+                                                               <inputType id="cdt.managedbuild.tool.gnu.c.linker.input.1451368053" superClass="cdt.managedbuild.tool.gnu.c.linker.input">
+                                                                       <additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
+                                                                       <additionalInput kind="additionalinput" paths="$(LIBS)"/>
+                                                               </inputType>
+                                                       </tool>
+                                                       <tool id="cdt.managedbuild.tool.gnu.cpp.linker.base.753872778" name="GCC C++ Linker" superClass="cdt.managedbuild.tool.gnu.cpp.linker.base"/>
+                                                       <tool id="cdt.managedbuild.tool.gnu.assembler.base.1932184853" name="GCC Assembler" superClass="cdt.managedbuild.tool.gnu.assembler.base">
+                                                               <inputType id="cdt.managedbuild.tool.gnu.assembler.input.2129269263" superClass="cdt.managedbuild.tool.gnu.assembler.input"/>
+                                                       </tool>
+                                               </toolChain>
+                                       </folderInfo>
+                                       <sourceEntries>
+                                               <entry excluding="src|lib" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>
+                                               <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="lib"/>
+                                               <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="src"/>
+                                       </sourceEntries>
+                               </configuration>
+                       </storageModule>
+                       <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
+               </cconfiguration>
+       </storageModule>
+       <storageModule moduleId="cdtBuildSystem" version="4.0.0">
+               <project id="rpp-test-suite_posix.null.1593524691" name="rpp-test-suite_posix"/>
+       </storageModule>
+       <storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
+       <storageModule moduleId="refreshScope" versionNumber="2">
+               <configuration configurationName="Default">
+                       <resource resourceType="PROJECT" workspacePath="/rpp-test-suite_posix"/>
+               </configuration>
+       </storageModule>
+       <storageModule moduleId="scannerConfiguration">
+               <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
+               <scannerConfigBuildInfo instanceId="cdt.managedbuild.toolchain.gnu.base.307175498;cdt.managedbuild.toolchain.gnu.base.307175498.1939840090;cdt.managedbuild.tool.gnu.c.compiler.base.607280630;cdt.managedbuild.tool.gnu.c.compiler.input.497561818">
+                       <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
+               </scannerConfigBuildInfo>
+       </storageModule>
+</cproject>
index e9f52339f3e08b9c07802131eb510d6416bdd3da..ec66d07454a98f308da12dfbb384189ff43b6024 100644 (file)
@@ -1,3 +1,2 @@
-Debug
-Release
+Default
 .settings/*
diff --git a/apps/rpp-test-suite_posix/.project b/apps/rpp-test-suite_posix/.project
new file mode 100644 (file)
index 0000000..654d459
--- /dev/null
@@ -0,0 +1,223 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+       <name>rpp-test-suite_posix</name>
+       <comment></comment>
+       <projects>
+       </projects>
+       <buildSpec>
+               <buildCommand>
+                       <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
+                       <triggers>clean,full,incremental,</triggers>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+               <buildCommand>
+                       <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
+                       <triggers>full,incremental,</triggers>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+       </buildSpec>
+       <natures>
+               <nature>org.eclipse.cdt.core.cnature</nature>
+               <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
+               <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
+       </natures>
+       <linkedResources>
+               <link>
+                       <name>lib/os</name>
+                       <type>2</type>
+                       <locationURI>virtual:/virtual</locationURI>
+               </link>
+               <link>
+                       <name>lib/rpp</name>
+                       <type>2</type>
+                       <locationURI>virtual:/virtual</locationURI>
+               </link>
+               <link>
+                       <name>src/ain.c</name>
+                       <type>1</type>
+                       <locationURI>PARENT-1-PROJECT_LOC/rpp-test-suite/src/ain.c</locationURI>
+               </link>
+               <link>
+                       <name>src/aout.c</name>
+                       <type>1</type>
+                       <locationURI>PARENT-1-PROJECT_LOC/rpp-test-suite/src/aout.c</locationURI>
+               </link>
+               <link>
+                       <name>src/can.c</name>
+                       <type>1</type>
+                       <locationURI>PARENT-1-PROJECT_LOC/rpp-test-suite/src/can.c</locationURI>
+               </link>
+               <link>
+                       <name>src/din.c</name>
+                       <type>1</type>
+                       <locationURI>PARENT-1-PROJECT_LOC/rpp-test-suite/src/din.c</locationURI>
+               </link>
+               <link>
+                       <name>src/eth.c</name>
+                       <type>1</type>
+                       <locationURI>PARENT-1-PROJECT_LOC/rpp-test-suite/src/eth.c</locationURI>
+               </link>
+               <link>
+                       <name>src/fr.c</name>
+                       <type>1</type>
+                       <locationURI>PARENT-1-PROJECT_LOC/rpp-test-suite/src/fr.c</locationURI>
+               </link>
+               <link>
+                       <name>src/hbr.c</name>
+                       <type>1</type>
+                       <locationURI>PARENT-1-PROJECT_LOC/rpp-test-suite/src/hbr.c</locationURI>
+               </link>
+               <link>
+                       <name>src/hout.c</name>
+                       <type>1</type>
+                       <locationURI>PARENT-1-PROJECT_LOC/rpp-test-suite/src/hout.c</locationURI>
+               </link>
+               <link>
+                       <name>src/lin.c</name>
+                       <type>1</type>
+                       <locationURI>PARENT-1-PROJECT_LOC/rpp-test-suite/src/lin.c</locationURI>
+               </link>
+               <link>
+                       <name>src/lout.c</name>
+                       <type>1</type>
+                       <locationURI>PARENT-1-PROJECT_LOC/rpp-test-suite/src/lout.c</locationURI>
+               </link>
+               <link>
+                       <name>src/main.c</name>
+                       <type>1</type>
+                       <locationURI>PARENT-1-PROJECT_LOC/rpp-test-suite/src/main.c</locationURI>
+               </link>
+               <link>
+                       <name>src/mout.c</name>
+                       <type>1</type>
+                       <locationURI>PARENT-1-PROJECT_LOC/rpp-test-suite/src/mout.c</locationURI>
+               </link>
+               <link>
+                       <name>src/sci.c</name>
+                       <type>1</type>
+                       <locationURI>PARENT-1-PROJECT_LOC/rpp-test-suite/src/sci.c</locationURI>
+               </link>
+               <link>
+                       <name>src/sdc.c</name>
+                       <type>1</type>
+                       <locationURI>PARENT-1-PROJECT_LOC/rpp-test-suite/src/sdc.c</locationURI>
+               </link>
+               <link>
+                       <name>src/sdr.c</name>
+                       <type>1</type>
+                       <locationURI>PARENT-1-PROJECT_LOC/rpp-test-suite/src/sdr.c</locationURI>
+               </link>
+               <link>
+                       <name>lib/os/croutine.c</name>
+                       <type>1</type>
+                       <locationURI>PARENT-2-PROJECT_LOC/os/6.0.4_posix/src/os/croutine.c</locationURI>
+               </link>
+               <link>
+                       <name>lib/os/heap.c</name>
+                       <type>1</type>
+                       <locationURI>PARENT-2-PROJECT_LOC/os/6.0.4_posix/src/os/heap.c</locationURI>
+               </link>
+               <link>
+                       <name>lib/os/list.c</name>
+                       <type>1</type>
+                       <locationURI>PARENT-2-PROJECT_LOC/os/6.0.4_posix/src/os/list.c</locationURI>
+               </link>
+               <link>
+                       <name>lib/os/port.c</name>
+                       <type>1</type>
+                       <locationURI>PARENT-2-PROJECT_LOC/os/6.0.4_posix/src/os/port.c</locationURI>
+               </link>
+               <link>
+                       <name>lib/os/queue.c</name>
+                       <type>1</type>
+                       <locationURI>PARENT-2-PROJECT_LOC/os/6.0.4_posix/src/os/queue.c</locationURI>
+               </link>
+               <link>
+                       <name>lib/os/tasks.c</name>
+                       <type>1</type>
+                       <locationURI>PARENT-2-PROJECT_LOC/os/6.0.4_posix/src/os/tasks.c</locationURI>
+               </link>
+               <link>
+                       <name>lib/rpp/ain.c</name>
+                       <type>1</type>
+                       <locationURI>PARENT-2-PROJECT_LOC/rpp/src/rpp/ain.c</locationURI>
+               </link>
+               <link>
+                       <name>lib/rpp/aout.c</name>
+                       <type>1</type>
+                       <locationURI>PARENT-2-PROJECT_LOC/rpp/src/rpp/aout.c</locationURI>
+               </link>
+               <link>
+                       <name>lib/rpp/can.c</name>
+                       <type>1</type>
+                       <locationURI>PARENT-2-PROJECT_LOC/rpp/src/rpp/can.c</locationURI>
+               </link>
+               <link>
+                       <name>lib/rpp/din.c</name>
+                       <type>1</type>
+                       <locationURI>PARENT-2-PROJECT_LOC/rpp/src/rpp/din.c</locationURI>
+               </link>
+               <link>
+                       <name>lib/rpp/eth.c</name>
+                       <type>1</type>
+                       <locationURI>PARENT-2-PROJECT_LOC/rpp/src/rpp/eth.c</locationURI>
+               </link>
+               <link>
+                       <name>lib/rpp/fr.c</name>
+                       <type>1</type>
+                       <locationURI>PARENT-2-PROJECT_LOC/rpp/src/rpp/fr.c</locationURI>
+               </link>
+               <link>
+                       <name>lib/rpp/hbr.c</name>
+                       <type>1</type>
+                       <locationURI>PARENT-2-PROJECT_LOC/rpp/src/rpp/hbr.c</locationURI>
+               </link>
+               <link>
+                       <name>lib/rpp/hout.c</name>
+                       <type>1</type>
+                       <locationURI>PARENT-2-PROJECT_LOC/rpp/src/rpp/hout.c</locationURI>
+               </link>
+               <link>
+                       <name>lib/rpp/lin.c</name>
+                       <type>1</type>
+                       <locationURI>PARENT-2-PROJECT_LOC/rpp/src/rpp/lin.c</locationURI>
+               </link>
+               <link>
+                       <name>lib/rpp/lout.c</name>
+                       <type>1</type>
+                       <locationURI>PARENT-2-PROJECT_LOC/rpp/src/rpp/lout.c</locationURI>
+               </link>
+               <link>
+                       <name>lib/rpp/mout.c</name>
+                       <type>1</type>
+                       <locationURI>PARENT-2-PROJECT_LOC/rpp/src/rpp/mout.c</locationURI>
+               </link>
+               <link>
+                       <name>lib/rpp/rpp.c</name>
+                       <type>1</type>
+                       <locationURI>PARENT-2-PROJECT_LOC/rpp/src/rpp/rpp.c</locationURI>
+               </link>
+               <link>
+                       <name>lib/rpp/sci.c</name>
+                       <type>1</type>
+                       <locationURI>PARENT-2-PROJECT_LOC/rpp/src/rpp/sci.c</locationURI>
+               </link>
+               <link>
+                       <name>lib/rpp/sci_posix.c</name>
+                       <type>1</type>
+                       <locationURI>PARENT-2-PROJECT_LOC/os/6.0.4_posix/src/rpp/sci_posix.c</locationURI>
+               </link>
+               <link>
+                       <name>lib/rpp/sdc.c</name>
+                       <type>1</type>
+                       <locationURI>PARENT-2-PROJECT_LOC/rpp/src/rpp/sdc.c</locationURI>
+               </link>
+               <link>
+                       <name>lib/rpp/sdr.c</name>
+                       <type>1</type>
+                       <locationURI>PARENT-2-PROJECT_LOC/rpp/src/rpp/sdr.c</locationURI>
+               </link>
+       </linkedResources>
+</projectDescription>