]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lib.git/commitdiff
Added first POSIX project using FreeRTOS POSIX/GCC port. Niceee, works niceee.
authorCarlos Jenkins <carlos@jenkins.co.cr>
Thu, 6 Jun 2013 04:56:41 +0000 (06:56 +0200)
committerCarlos Jenkins <carlos@jenkins.co.cr>
Thu, 6 Jun 2013 04:56:41 +0000 (06:56 +0200)
I will change the prefix of the project tomorrow to something like  posix-foobar, so another project that links with the FreeRTOS for TMS570 with TI ARM compiler can use this name.

apps/sdr-log/.cproject [new file with mode: 0644]
apps/sdr-log/.gitignore [new file with mode: 0644]
apps/sdr-log/.project [new file with mode: 0644]
apps/sdr-log/.settings/language.settings.xml [new file with mode: 0644]
apps/sdr-log/.settings/org.eclipse.cdt.codan.core.prefs [new file with mode: 0644]
apps/sdr-log/include/rpp/RppConfig.h [new file with mode: 0644]
apps/sdr-log/lib/.gitignore [new file with mode: 0644]
apps/sdr-log/src/main.c [new file with mode: 0644]

diff --git a/apps/sdr-log/.cproject b/apps/sdr-log/.cproject
new file mode 100644 (file)
index 0000000..83dea34
--- /dev/null
@@ -0,0 +1,81 @@
+<?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.520906199">
+                       <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="cdt.managedbuild.toolchain.gnu.base.520906199" 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.520906199" name="Default" parent="org.eclipse.cdt.build.core.emptycfg">
+                                       <folderInfo id="cdt.managedbuild.toolchain.gnu.base.520906199.1873576044" name="/" resourcePath="">
+                                               <toolChain id="cdt.managedbuild.toolchain.gnu.base.1592284062" 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.548988665" name="Debug Platform" osList="linux,hpux,aix,qnx" superClass="cdt.managedbuild.target.gnu.platform.base"/>
+                                                       <builder buildPath="${workspace_loc:/sdr-log/Default}" id="cdt.managedbuild.target.gnu.builder.base.1628439192" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="Gnu Make Builder" superClass="cdt.managedbuild.target.gnu.builder.base"/>
+                                                       <tool id="cdt.managedbuild.tool.gnu.archiver.base.1531281075" name="GCC Archiver" superClass="cdt.managedbuild.tool.gnu.archiver.base"/>
+                                                       <tool id="cdt.managedbuild.tool.gnu.cpp.compiler.base.1452913679" name="GCC C++ Compiler" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.base"/>
+                                                       <tool id="cdt.managedbuild.tool.gnu.c.compiler.base.814685508" name="GCC C Compiler" superClass="cdt.managedbuild.tool.gnu.c.compiler.base">
+                                                               <option id="gnu.c.compiler.option.include.paths.679292636" 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/include/"/>
+                                                               </option>
+                                                               <option id="gnu.c.compiler.option.misc.other.1967900330" 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.1444494967" superClass="cdt.managedbuild.tool.gnu.c.compiler.input"/>
+                                                       </tool>
+                                                       <tool id="cdt.managedbuild.tool.gnu.c.linker.base.598007494" name="GCC C Linker" superClass="cdt.managedbuild.tool.gnu.c.linker.base">
+                                                               <option id="gnu.c.link.option.libs.462937230" name="Libraries (-l)" superClass="gnu.c.link.option.libs" valueType="libs">
+                                                                       <listOptionValue builtIn="false" value="pthread"/>
+                                                               </option>
+                                                               <inputType id="cdt.managedbuild.tool.gnu.c.linker.input.2013392924" 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.685628312" name="GCC C++ Linker" superClass="cdt.managedbuild.tool.gnu.cpp.linker.base"/>
+                                                       <tool id="cdt.managedbuild.tool.gnu.assembler.base.1113161609" name="GCC Assembler" superClass="cdt.managedbuild.tool.gnu.assembler.base">
+                                                               <inputType id="cdt.managedbuild.tool.gnu.assembler.input.1925986355" 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="sdr-log.null.531919895" name="sdr-log"/>
+       </storageModule>
+       <storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
+       <storageModule moduleId="refreshScope" versionNumber="2">
+               <configuration configurationName="Default">
+                       <resource resourceType="PROJECT" workspacePath="/sdr-log"/>
+               </configuration>
+       </storageModule>
+       <storageModule moduleId="org.eclipse.cdt.make.core.buildtargets">
+               <buildTargets/>
+       </storageModule>
+       <storageModule moduleId="scannerConfiguration">
+               <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
+               <scannerConfigBuildInfo instanceId="cdt.managedbuild.toolchain.gnu.base.520906199;cdt.managedbuild.toolchain.gnu.base.520906199.1873576044;cdt.managedbuild.tool.gnu.c.compiler.base.814685508;cdt.managedbuild.tool.gnu.c.compiler.input.1444494967">
+                       <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
+               </scannerConfigBuildInfo>
+       </storageModule>
+       <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
+       <storageModule moduleId="null.devicePreference"/>
+       <storageModule moduleId="cpuFamily"/>
+</cproject>
diff --git a/apps/sdr-log/.gitignore b/apps/sdr-log/.gitignore
new file mode 100644 (file)
index 0000000..3dd7461
--- /dev/null
@@ -0,0 +1,2 @@
+Default
+.settings/org.eclipse.core.resources.prefs
diff --git a/apps/sdr-log/.project b/apps/sdr-log/.project
new file mode 100644 (file)
index 0000000..07689d7
--- /dev/null
@@ -0,0 +1,149 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+       <name>sdr-log</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>
+               <buildCommand>
+                       <name>org.eclipse.cdt.codan.core.codanBuilder</name>
+                       <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>
+               <nature>org.eclipse.cdt.codan.core.codanNature</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>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/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>
diff --git a/apps/sdr-log/.settings/language.settings.xml b/apps/sdr-log/.settings/language.settings.xml
new file mode 100644 (file)
index 0000000..f75bdd6
--- /dev/null
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<project>
+       <configuration id="cdt.managedbuild.toolchain.gnu.base.520906199" name="Default">
+               <extension point="org.eclipse.cdt.core.LanguageSettingsProvider">
+                       <provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
+                       <provider class="org.eclipse.cdt.managedbuilder.language.settings.providers.GCCBuildCommandParser" id="org.eclipse.cdt.managedbuilder.core.GCCBuildCommandParser" keep-relative-paths="false" name="CDT GCC Build Output Parser" parameter="(gcc)|([gc]\+\+)|(clang)" prefer-non-shared="true"/>
+                       <provider-reference id="org.eclipse.cdt.managedbuilder.core.GCCBuiltinSpecsDetector" ref="shared-provider"/>
+                       <provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
+               </extension>
+       </configuration>
+</project>
diff --git a/apps/sdr-log/.settings/org.eclipse.cdt.codan.core.prefs b/apps/sdr-log/.settings/org.eclipse.cdt.codan.core.prefs
new file mode 100644 (file)
index 0000000..06fcdbd
--- /dev/null
@@ -0,0 +1,69 @@
+eclipse.preferences.version=1
+onBuild=true
+org.eclipse.cdt.codan.checkers.errnoreturn=Warning
+org.eclipse.cdt.codan.checkers.errnoreturn.params={fileScope\=>inclusion\=>("lib/os/*.c"),exclusion\=>(),launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},implicit\=>false}
+org.eclipse.cdt.codan.checkers.errreturnvalue=Error
+org.eclipse.cdt.codan.checkers.errreturnvalue.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.checkers.noreturn=Error
+org.eclipse.cdt.codan.checkers.noreturn.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},implicit\=>false}
+org.eclipse.cdt.codan.internal.checkers.AbstractClassCreation=Error
+org.eclipse.cdt.codan.internal.checkers.AbstractClassCreation.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.AmbiguousProblem=Error
+org.eclipse.cdt.codan.internal.checkers.AmbiguousProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.AssignmentInConditionProblem=Warning
+org.eclipse.cdt.codan.internal.checkers.AssignmentInConditionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.AssignmentToItselfProblem=Error
+org.eclipse.cdt.codan.internal.checkers.AssignmentToItselfProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.CaseBreakProblem=Warning
+org.eclipse.cdt.codan.internal.checkers.CaseBreakProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},no_break_comment\=>"no break",last_case_param\=>true,empty_case_param\=>false}
+org.eclipse.cdt.codan.internal.checkers.CatchByReference=Warning
+org.eclipse.cdt.codan.internal.checkers.CatchByReference.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},unknown\=>false,exceptions\=>()}
+org.eclipse.cdt.codan.internal.checkers.CircularReferenceProblem=Error
+org.eclipse.cdt.codan.internal.checkers.CircularReferenceProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.ClassMembersInitialization=Warning
+org.eclipse.cdt.codan.internal.checkers.ClassMembersInitialization.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},skip\=>true}
+org.eclipse.cdt.codan.internal.checkers.FieldResolutionProblem=Error
+org.eclipse.cdt.codan.internal.checkers.FieldResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.FunctionResolutionProblem=Error
+org.eclipse.cdt.codan.internal.checkers.FunctionResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.InvalidArguments=Error
+org.eclipse.cdt.codan.internal.checkers.InvalidArguments.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.InvalidTemplateArgumentsProblem=Error
+org.eclipse.cdt.codan.internal.checkers.InvalidTemplateArgumentsProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.LabelStatementNotFoundProblem=Error
+org.eclipse.cdt.codan.internal.checkers.LabelStatementNotFoundProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.MemberDeclarationNotFoundProblem=Error
+org.eclipse.cdt.codan.internal.checkers.MemberDeclarationNotFoundProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.MethodResolutionProblem=Error
+org.eclipse.cdt.codan.internal.checkers.MethodResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.NamingConventionFunctionChecker=-Info
+org.eclipse.cdt.codan.internal.checkers.NamingConventionFunctionChecker.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},pattern\=>"^[a-z]",macro\=>true,exceptions\=>()}
+org.eclipse.cdt.codan.internal.checkers.NonVirtualDestructorProblem=Warning
+org.eclipse.cdt.codan.internal.checkers.NonVirtualDestructorProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.OverloadProblem=Error
+org.eclipse.cdt.codan.internal.checkers.OverloadProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.RedeclarationProblem=Error
+org.eclipse.cdt.codan.internal.checkers.RedeclarationProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.RedefinitionProblem=Error
+org.eclipse.cdt.codan.internal.checkers.RedefinitionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.ReturnStyleProblem=-Warning
+org.eclipse.cdt.codan.internal.checkers.ReturnStyleProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.ScanfFormatStringSecurityProblem=-Warning
+org.eclipse.cdt.codan.internal.checkers.ScanfFormatStringSecurityProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.StatementHasNoEffectProblem=Warning
+org.eclipse.cdt.codan.internal.checkers.StatementHasNoEffectProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},macro\=>true,exceptions\=>()}
+org.eclipse.cdt.codan.internal.checkers.SuggestedParenthesisProblem=Warning
+org.eclipse.cdt.codan.internal.checkers.SuggestedParenthesisProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},paramNot\=>false}
+org.eclipse.cdt.codan.internal.checkers.SuspiciousSemicolonProblem=Warning
+org.eclipse.cdt.codan.internal.checkers.SuspiciousSemicolonProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},else\=>false,afterelse\=>false}
+org.eclipse.cdt.codan.internal.checkers.TypeResolutionProblem=Error
+org.eclipse.cdt.codan.internal.checkers.TypeResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.UnusedFunctionDeclarationProblem=Warning
+org.eclipse.cdt.codan.internal.checkers.UnusedFunctionDeclarationProblem.params={fileScope\=>inclusion\=>("lib/os/*.c"),exclusion\=>(),launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},macro\=>true}
+org.eclipse.cdt.codan.internal.checkers.UnusedStaticFunctionProblem=Warning
+org.eclipse.cdt.codan.internal.checkers.UnusedStaticFunctionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},macro\=>true}
+org.eclipse.cdt.codan.internal.checkers.UnusedVariableDeclarationProblem=Warning
+org.eclipse.cdt.codan.internal.checkers.UnusedVariableDeclarationProblem.params={fileScope\=>inclusion\=>("lib/os/*.c"),exclusion\=>(),launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},macro\=>true,exceptions\=>("@(\#)","$Id")}
+org.eclipse.cdt.codan.internal.checkers.VariableResolutionProblem=Error
+org.eclipse.cdt.codan.internal.checkers.VariableResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+useParentScope=false
diff --git a/apps/sdr-log/include/rpp/RppConfig.h b/apps/sdr-log/include/rpp/RppConfig.h
new file mode 100644 (file)
index 0000000..cdf0856
--- /dev/null
@@ -0,0 +1,39 @@
+/**
+ * RPP API configuration override file.
+ *
+ * @file RppConfig.h
+ *
+ * @copyright Copyright (C) 2013 Czech Technical University in Prague
+ *
+ * @author Carlos Jenkins <carlos@jenkins.co.cr>
+ */
+
+/*
+ * This is a configuration override file.
+ */
+
+/*
+ * Modules include RPP configuration options
+ */
+#define rppCONFIG_INCLUDE_DIN                 1
+#define rppCONFIG_INCLUDE_LOUT                1
+#define rppCONFIG_INCLUDE_AIN                 1
+#define rppCONFIG_INCLUDE_AOUT                1
+#define rppCONFIG_INCLUDE_HBR                 1
+#define rppCONFIG_INCLUDE_MOUT                1
+#define rppCONFIG_INCLUDE_HOUT                1
+#define rppCONFIG_INCLUDE_CAN                 1
+#define rppCONFIG_INCLUDE_LIN                 1
+#define rppCONFIG_INCLUDE_FR                  1
+#define rppCONFIG_INCLUDE_SCI                 1
+#define rppCONFIG_INCLUDE_ETH                 1
+#define rppCONFIG_INCLUDE_SDC                 1
+#define rppCONFIG_INCLUDE_SDR                 1
+
+/**
+ * Compile against the DRV library.
+ * Set to 0 to compile a dummy library without backend.
+ * Setting to 0 is useful to test RPP library compile errors.
+ */
+#define rppCONFIG_DRV                         0
+
diff --git a/apps/sdr-log/lib/.gitignore b/apps/sdr-log/lib/.gitignore
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/apps/sdr-log/src/main.c b/apps/sdr-log/src/main.c
new file mode 100644 (file)
index 0000000..80724ec
--- /dev/null
@@ -0,0 +1,76 @@
+#include "rpp/rpp.h"
+#include <stdlib.h>
+
+#if rppCONFIG_DRV == 0
+#include <stdio.h> // printf()
+#define rpp_sci_printf printf
+#endif
+
+#define FREQ_MILLIS     3000
+
+/**
+ * FreeRTOS Task that send some noise to the log from time to time.
+ */
+void log_noise(void *p)
+{
+    // Calculate wait time in OS ticks
+    static const portTickType freq_ticks = FREQ_MILLIS / portTICK_RATE_MS;
+    portTickType last_wake_time = xTaskGetTickCount();
+
+    // Initialize rand
+    srand(2097925); // They are random, I swear xD
+
+    uint32_t i = 0;
+    while(TRUE) {
+
+        // Wait until next step
+        vTaskDelayUntil(&last_wake_time, freq_ticks);
+
+        // Put something in the log
+        rpp_sdr_printf((const char*)
+                "This is the noise generator at iteration %d "
+                "putting some noise value %d.", i, rand()
+            );
+        i++;
+    }
+}
+
+
+/**
+ * Application main function
+ *
+ * This function is called after startup.
+ */
+int main(void)
+{
+    // Initialize library
+    rpp_init();
+
+    // Initialize log
+    rpp_sdr_setup(TRUE);
+
+    // Spawn tasks
+    xTaskCreate(log_noise, (const signed char*)"log_noise", 512, NULL, 1, NULL);
+
+    // Start Scheduler
+    vTaskStartScheduler();
+
+    return 0;
+}
+
+
+/**
+ * FreeRTOS malloc() failed hook.
+ */
+void vApplicationMallocFailedHook(void) {
+    rpp_sci_printf((const char*)"<malloc() failed>\r\n");
+}
+
+/**
+ * FreeRTOS stack overflow hook.
+ */
+void vApplicationStackOverflowHook(xTaskHandle xTask,
+                                   signed portCHAR *pcTaskName) {
+    rpp_sci_printf((const char*)"<stack overflow : \"%s\">\r\n", pcTaskName);
+}
+