+ jam tutorial \n
parent
64039410e4
commit
b9cd825cba
@ -0,0 +1,281 @@
|
||||
<?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="org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.1083563639">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.1083563639" moduleId="org.eclipse.cdt.core.settings" name="Default">
|
||||
<macros>
|
||||
<stringListMacro name="PATH" type="VALUE_TEXT_LIST">
|
||||
<value name="/home/julsch/gnuarm"/>
|
||||
<value name="/usr/lib/lightdm/lightdm"/>
|
||||
<value name="/usr/local/sbin"/>
|
||||
<value name="/usr/local/bin"/>
|
||||
<value name="/usr/sbin"/>
|
||||
<value name="/usr/bin"/>
|
||||
<value name="/sbin"/>
|
||||
<value name="/bin"/>
|
||||
<value name="/usr/games"/>
|
||||
</stringListMacro>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="org.eclipse.cdt.core.GNU_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"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactName="ukleos" buildProperties="" description="" id="org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.1083563639" name="Default" parent="org.eclipse.cdt.build.core.emptycfg">
|
||||
<folderInfo id="org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.1083563639.254463758" name="/" resourcePath="">
|
||||
<toolChain id="org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.244433063" name="org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base" resourceTypeBasedDiscovery="true" superClass="org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base">
|
||||
<option id="org.eclipse.cdt.cross.arm.gnu.linux.option.target.processor.2105918524" name="Processor" superClass="org.eclipse.cdt.cross.arm.gnu.linux.option.target.processor"/>
|
||||
<option id="org.eclipse.cdt.cross.arm.gnu.linux.option.target.thumb.1317268904" name="Thumb (-mthumb)" superClass="org.eclipse.cdt.cross.arm.gnu.linux.option.target.thumb"/>
|
||||
<option id="org.eclipse.cdt.cross.arm.gnu.linux.option.target.thumbinterwork.1913457533" name="Thumb interwork (-mthumb-interwork)" superClass="org.eclipse.cdt.cross.arm.gnu.linux.option.target.thumbinterwork"/>
|
||||
<option id="org.eclipse.cdt.cross.arm.gnu.linux.option.target.endiannes.1813164150" name="Endiannes" superClass="org.eclipse.cdt.cross.arm.gnu.linux.option.target.endiannes"/>
|
||||
<option id="org.eclipse.cdt.cross.arm.gnu.linux.option.target.fpu.abi.1727677911" name="Float ABI" superClass="org.eclipse.cdt.cross.arm.gnu.linux.option.target.fpu.abi"/>
|
||||
<option id="org.eclipse.cdt.cross.arm.gnu.linux.option.target.fpu.unit.1480443430" name="FPU Type" superClass="org.eclipse.cdt.cross.arm.gnu.linux.option.target.fpu.unit"/>
|
||||
<option id="org.eclipse.cdt.cross.arm.gnu.linux.option.debugging.level.1668446836" name="Debug level" superClass="org.eclipse.cdt.cross.arm.gnu.linux.option.debugging.level"/>
|
||||
<option id="org.eclipse.cdt.cross.arm.gnu.linux.option.debugging.format.1674314500" name="Debug format" superClass="org.eclipse.cdt.cross.arm.gnu.linux.option.debugging.format"/>
|
||||
<option id="org.eclipse.cdt.cross.arm.gnu.linux.option.debugging.other.763958994" name="Other debugging flags" superClass="org.eclipse.cdt.cross.arm.gnu.linux.option.debugging.other"/>
|
||||
<option id="org.eclipse.cdt.cross.arm.gnu.linux.option.debugging.prof.772769601" name="Generate prof information (-p)" superClass="org.eclipse.cdt.cross.arm.gnu.linux.option.debugging.prof"/>
|
||||
<option id="org.eclipse.cdt.cross.arm.gnu.linux.option.debugging.gprof.141256346" name="Generate gprof information (-pg)" superClass="org.eclipse.cdt.cross.arm.gnu.linux.option.debugging.gprof"/>
|
||||
<option id="org.eclipse.cdt.cross.arm.gnu.linux.option.addtools.createflash.1626976139" name="Create Flash Image" superClass="org.eclipse.cdt.cross.arm.gnu.linux.option.addtools.createflash"/>
|
||||
<option id="org.eclipse.cdt.cross.arm.gnu.linux.option.addtools.createlisting.570581637" name="Create Extended Listing" superClass="org.eclipse.cdt.cross.arm.gnu.linux.option.addtools.createlisting"/>
|
||||
<option id="org.eclipse.cdt.cross.arm.gnu.linux.option.addtools.printsize.59313473" name="Print Size" superClass="org.eclipse.cdt.cross.arm.gnu.linux.option.addtools.printsize"/>
|
||||
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.GNU_ELF" id="org.eclipse.cdt.cross.arm.gnu.linux.platform.base.2093484141" isAbstract="false" name="Linux Platform" osList="linux" superClass="org.eclipse.cdt.cross.arm.gnu.linux.platform.base"/>
|
||||
<builder arguments="-sPROJECT=${project}" command="jam" id="org.eclipse.cdt.cross.arm.gnu.linux.builder.base.1639802113" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="ARM Linux GNU Make builder" superClass="org.eclipse.cdt.cross.arm.gnu.linux.builder.base"/>
|
||||
<tool id="org.eclipse.cdt.cross.arm.gnu.linux.assembler.base.365260253" name="ARM Linux GCC Assembler" superClass="org.eclipse.cdt.cross.arm.gnu.linux.assembler.base">
|
||||
<inputType id="org.eclipse.cdt.cross.arm.gnu.linux.assembler.base.input.1538659492" superClass="org.eclipse.cdt.cross.arm.gnu.linux.assembler.base.input"/>
|
||||
</tool>
|
||||
<tool id="org.eclipse.cdt.cross.arm.gnu.linux.c.compiler.base.1605662238" name="ARM Linux GCC C Compiler" superClass="org.eclipse.cdt.cross.arm.gnu.linux.c.compiler.base">
|
||||
<inputType id="org.eclipse.cdt.cross.arm.gnu.linux.c.compiler.base.input.657560288" superClass="org.eclipse.cdt.cross.arm.gnu.linux.c.compiler.base.input"/>
|
||||
</tool>
|
||||
<tool id="org.eclipse.cdt.cross.arm.gnu.linux.cpp.compiler.base.2113566427" name="ARM Linux GCC C++ Compiler" superClass="org.eclipse.cdt.cross.arm.gnu.linux.cpp.compiler.base">
|
||||
<inputType id="org.eclipse.cdt.cross.arm.gnu.linux.cpp.compiler.base.input.872380296" superClass="org.eclipse.cdt.cross.arm.gnu.linux.cpp.compiler.base.input"/>
|
||||
</tool>
|
||||
<tool id="org.eclipse.cdt.cross.arm.gnu.linux.c.linker.base.1868820298" name="ARM Linux GCC C Linker" superClass="org.eclipse.cdt.cross.arm.gnu.linux.c.linker.base"/>
|
||||
<tool id="org.eclipse.cdt.cross.arm.gnu.linux.cpp.linker.base.1575724887" name="ARM Linux GCC C++ Linker" superClass="org.eclipse.cdt.cross.arm.gnu.linux.cpp.linker.base"/>
|
||||
<tool id="org.eclipse.cdt.cross.arm.gnu.linux.archiver.base.489243707" name="ARM Linux GCC Archiver" superClass="org.eclipse.cdt.cross.arm.gnu.linux.archiver.base"/>
|
||||
<tool id="org.eclipse.cdt.cross.arm.gnu.linux.createflash.base.1744536919" name="ARM Linux GNU Create Flash Image" superClass="org.eclipse.cdt.cross.arm.gnu.linux.createflash.base"/>
|
||||
<tool id="org.eclipse.cdt.cross.arm.gnu.linux.createlisting.base.1606508614" name="ARM Linux GNU Create Listing" superClass="org.eclipse.cdt.cross.arm.gnu.linux.createlisting.base"/>
|
||||
<tool id="org.eclipse.cdt.cross.arm.gnu.linux.printsize.base.1405132190" name="ARM Linux GNU Print Size" superClass="org.eclipse.cdt.cross.arm.gnu.linux.printsize.base"/>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
<cconfiguration id="org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.1083563639.268169961">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.1083563639.268169961" moduleId="org.eclipse.cdt.core.settings" name="energy2">
|
||||
<macros>
|
||||
<stringListMacro name="PATH" type="VALUE_TEXT_LIST">
|
||||
<value name="/home/julsch/gnuarm"/>
|
||||
<value name="/usr/lib/lightdm/lightdm"/>
|
||||
<value name="/usr/local/sbin"/>
|
||||
<value name="/usr/local/bin"/>
|
||||
<value name="/usr/sbin"/>
|
||||
<value name="/usr/bin"/>
|
||||
<value name="/sbin"/>
|
||||
<value name="/bin"/>
|
||||
<value name="/usr/games"/>
|
||||
</stringListMacro>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="org.eclipse.cdt.core.GNU_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"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactName="ukleos" buildProperties="" description="" id="org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.1083563639.268169961" name="energy2" parent="org.eclipse.cdt.build.core.emptycfg">
|
||||
<folderInfo id="org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.1083563639.268169961." name="/" resourcePath="">
|
||||
<toolChain id="org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.56466393" name="org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base" resourceTypeBasedDiscovery="true" superClass="org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base">
|
||||
<option id="org.eclipse.cdt.cross.arm.gnu.linux.option.target.processor.897158802" name="Processor" superClass="org.eclipse.cdt.cross.arm.gnu.linux.option.target.processor"/>
|
||||
<option id="org.eclipse.cdt.cross.arm.gnu.linux.option.target.thumb.1340578501" name="Thumb (-mthumb)" superClass="org.eclipse.cdt.cross.arm.gnu.linux.option.target.thumb"/>
|
||||
<option id="org.eclipse.cdt.cross.arm.gnu.linux.option.target.thumbinterwork.1973620723" name="Thumb interwork (-mthumb-interwork)" superClass="org.eclipse.cdt.cross.arm.gnu.linux.option.target.thumbinterwork"/>
|
||||
<option id="org.eclipse.cdt.cross.arm.gnu.linux.option.target.endiannes.1311750130" name="Endiannes" superClass="org.eclipse.cdt.cross.arm.gnu.linux.option.target.endiannes"/>
|
||||
<option id="org.eclipse.cdt.cross.arm.gnu.linux.option.target.fpu.abi.1372660194" name="Float ABI" superClass="org.eclipse.cdt.cross.arm.gnu.linux.option.target.fpu.abi"/>
|
||||
<option id="org.eclipse.cdt.cross.arm.gnu.linux.option.target.fpu.unit.1761700697" name="FPU Type" superClass="org.eclipse.cdt.cross.arm.gnu.linux.option.target.fpu.unit"/>
|
||||
<option id="org.eclipse.cdt.cross.arm.gnu.linux.option.debugging.level.1566843132" name="Debug level" superClass="org.eclipse.cdt.cross.arm.gnu.linux.option.debugging.level"/>
|
||||
<option id="org.eclipse.cdt.cross.arm.gnu.linux.option.debugging.format.1321013391" name="Debug format" superClass="org.eclipse.cdt.cross.arm.gnu.linux.option.debugging.format"/>
|
||||
<option id="org.eclipse.cdt.cross.arm.gnu.linux.option.debugging.other.1895912733" name="Other debugging flags" superClass="org.eclipse.cdt.cross.arm.gnu.linux.option.debugging.other"/>
|
||||
<option id="org.eclipse.cdt.cross.arm.gnu.linux.option.debugging.prof.1515766751" name="Generate prof information (-p)" superClass="org.eclipse.cdt.cross.arm.gnu.linux.option.debugging.prof"/>
|
||||
<option id="org.eclipse.cdt.cross.arm.gnu.linux.option.debugging.gprof.1545779046" name="Generate gprof information (-pg)" superClass="org.eclipse.cdt.cross.arm.gnu.linux.option.debugging.gprof"/>
|
||||
<option id="org.eclipse.cdt.cross.arm.gnu.linux.option.addtools.createflash.1804756979" name="Create Flash Image" superClass="org.eclipse.cdt.cross.arm.gnu.linux.option.addtools.createflash"/>
|
||||
<option id="org.eclipse.cdt.cross.arm.gnu.linux.option.addtools.createlisting.1621156682" name="Create Extended Listing" superClass="org.eclipse.cdt.cross.arm.gnu.linux.option.addtools.createlisting"/>
|
||||
<option id="org.eclipse.cdt.cross.arm.gnu.linux.option.addtools.printsize.1828690125" name="Print Size" superClass="org.eclipse.cdt.cross.arm.gnu.linux.option.addtools.printsize"/>
|
||||
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.GNU_ELF" id="org.eclipse.cdt.cross.arm.gnu.linux.platform.base.972210903" isAbstract="false" name="Linux Platform" osList="linux" superClass="org.eclipse.cdt.cross.arm.gnu.linux.platform.base"/>
|
||||
<builder arguments="-sPROJECT=${project}" command="jam" id="org.eclipse.cdt.cross.arm.gnu.linux.builder.base.1354303276" incrementalBuildTarget="-a" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="ARM Linux GNU Make builder" superClass="org.eclipse.cdt.cross.arm.gnu.linux.builder.base"/>
|
||||
<tool id="org.eclipse.cdt.cross.arm.gnu.linux.assembler.base.576683556" name="ARM Linux GCC Assembler" superClass="org.eclipse.cdt.cross.arm.gnu.linux.assembler.base">
|
||||
<inputType id="org.eclipse.cdt.cross.arm.gnu.linux.assembler.base.input.887946854" superClass="org.eclipse.cdt.cross.arm.gnu.linux.assembler.base.input"/>
|
||||
</tool>
|
||||
<tool id="org.eclipse.cdt.cross.arm.gnu.linux.c.compiler.base.1453604395" name="ARM Linux GCC C Compiler" superClass="org.eclipse.cdt.cross.arm.gnu.linux.c.compiler.base">
|
||||
<inputType id="org.eclipse.cdt.cross.arm.gnu.linux.c.compiler.base.input.342974185" superClass="org.eclipse.cdt.cross.arm.gnu.linux.c.compiler.base.input"/>
|
||||
</tool>
|
||||
<tool id="org.eclipse.cdt.cross.arm.gnu.linux.cpp.compiler.base.2058216360" name="ARM Linux GCC C++ Compiler" superClass="org.eclipse.cdt.cross.arm.gnu.linux.cpp.compiler.base">
|
||||
<inputType id="org.eclipse.cdt.cross.arm.gnu.linux.cpp.compiler.base.input.1842483018" superClass="org.eclipse.cdt.cross.arm.gnu.linux.cpp.compiler.base.input"/>
|
||||
</tool>
|
||||
<tool id="org.eclipse.cdt.cross.arm.gnu.linux.c.linker.base.1172192150" name="ARM Linux GCC C Linker" superClass="org.eclipse.cdt.cross.arm.gnu.linux.c.linker.base"/>
|
||||
<tool id="org.eclipse.cdt.cross.arm.gnu.linux.cpp.linker.base.1195808028" name="ARM Linux GCC C++ Linker" superClass="org.eclipse.cdt.cross.arm.gnu.linux.cpp.linker.base"/>
|
||||
<tool id="org.eclipse.cdt.cross.arm.gnu.linux.archiver.base.146181383" name="ARM Linux GCC Archiver" superClass="org.eclipse.cdt.cross.arm.gnu.linux.archiver.base"/>
|
||||
<tool id="org.eclipse.cdt.cross.arm.gnu.linux.createflash.base.782479428" name="ARM Linux GNU Create Flash Image" superClass="org.eclipse.cdt.cross.arm.gnu.linux.createflash.base"/>
|
||||
<tool id="org.eclipse.cdt.cross.arm.gnu.linux.createlisting.base.355219292" name="ARM Linux GNU Create Listing" superClass="org.eclipse.cdt.cross.arm.gnu.linux.createlisting.base"/>
|
||||
<tool id="org.eclipse.cdt.cross.arm.gnu.linux.printsize.base.1629985269" name="ARM Linux GNU Print Size" superClass="org.eclipse.cdt.cross.arm.gnu.linux.printsize.base"/>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
<cconfiguration id="org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.1083563639.268169961.2135331561">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.1083563639.268169961.2135331561" moduleId="org.eclipse.cdt.core.settings" name="energy_profile_functions">
|
||||
<macros>
|
||||
<stringListMacro name="PATH" type="VALUE_TEXT_LIST">
|
||||
<value name="/home/julsch/gnuarm"/>
|
||||
<value name="/usr/lib/lightdm/lightdm"/>
|
||||
<value name="/usr/local/sbin"/>
|
||||
<value name="/usr/local/bin"/>
|
||||
<value name="/usr/sbin"/>
|
||||
<value name="/usr/bin"/>
|
||||
<value name="/sbin"/>
|
||||
<value name="/bin"/>
|
||||
<value name="/usr/games"/>
|
||||
</stringListMacro>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="org.eclipse.cdt.core.GNU_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"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactName="ukleos" buildProperties="" description="testing the -finstrument-functions flag of the gcc compiler" id="org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.1083563639.268169961.2135331561" name="energy_profile_functions" parent="org.eclipse.cdt.build.core.emptycfg">
|
||||
<folderInfo id="org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.1083563639.268169961.2135331561." name="/" resourcePath="">
|
||||
<toolChain id="org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.878257760" name="org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base" resourceTypeBasedDiscovery="true" superClass="org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base">
|
||||
<option id="org.eclipse.cdt.cross.arm.gnu.linux.option.target.processor.2111524312" name="Processor" superClass="org.eclipse.cdt.cross.arm.gnu.linux.option.target.processor"/>
|
||||
<option id="org.eclipse.cdt.cross.arm.gnu.linux.option.target.thumb.1359922805" name="Thumb (-mthumb)" superClass="org.eclipse.cdt.cross.arm.gnu.linux.option.target.thumb"/>
|
||||
<option id="org.eclipse.cdt.cross.arm.gnu.linux.option.target.thumbinterwork.1735040238" name="Thumb interwork (-mthumb-interwork)" superClass="org.eclipse.cdt.cross.arm.gnu.linux.option.target.thumbinterwork"/>
|
||||
<option id="org.eclipse.cdt.cross.arm.gnu.linux.option.target.endiannes.1434027414" name="Endiannes" superClass="org.eclipse.cdt.cross.arm.gnu.linux.option.target.endiannes"/>
|
||||
<option id="org.eclipse.cdt.cross.arm.gnu.linux.option.target.fpu.abi.616739418" name="Float ABI" superClass="org.eclipse.cdt.cross.arm.gnu.linux.option.target.fpu.abi"/>
|
||||
<option id="org.eclipse.cdt.cross.arm.gnu.linux.option.target.fpu.unit.2036545170" name="FPU Type" superClass="org.eclipse.cdt.cross.arm.gnu.linux.option.target.fpu.unit"/>
|
||||
<option id="org.eclipse.cdt.cross.arm.gnu.linux.option.debugging.level.2108997610" name="Debug level" superClass="org.eclipse.cdt.cross.arm.gnu.linux.option.debugging.level"/>
|
||||
<option id="org.eclipse.cdt.cross.arm.gnu.linux.option.debugging.format.1228007595" name="Debug format" superClass="org.eclipse.cdt.cross.arm.gnu.linux.option.debugging.format"/>
|
||||
<option id="org.eclipse.cdt.cross.arm.gnu.linux.option.debugging.other.1822330063" name="Other debugging flags" superClass="org.eclipse.cdt.cross.arm.gnu.linux.option.debugging.other"/>
|
||||
<option id="org.eclipse.cdt.cross.arm.gnu.linux.option.debugging.prof.1195011530" name="Generate prof information (-p)" superClass="org.eclipse.cdt.cross.arm.gnu.linux.option.debugging.prof"/>
|
||||
<option id="org.eclipse.cdt.cross.arm.gnu.linux.option.debugging.gprof.1569269324" name="Generate gprof information (-pg)" superClass="org.eclipse.cdt.cross.arm.gnu.linux.option.debugging.gprof"/>
|
||||
<option id="org.eclipse.cdt.cross.arm.gnu.linux.option.addtools.createflash.1493937832" name="Create Flash Image" superClass="org.eclipse.cdt.cross.arm.gnu.linux.option.addtools.createflash"/>
|
||||
<option id="org.eclipse.cdt.cross.arm.gnu.linux.option.addtools.createlisting.720922932" name="Create Extended Listing" superClass="org.eclipse.cdt.cross.arm.gnu.linux.option.addtools.createlisting"/>
|
||||
<option id="org.eclipse.cdt.cross.arm.gnu.linux.option.addtools.printsize.111821750" name="Print Size" superClass="org.eclipse.cdt.cross.arm.gnu.linux.option.addtools.printsize"/>
|
||||
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.GNU_ELF" id="org.eclipse.cdt.cross.arm.gnu.linux.platform.base.887708500" isAbstract="false" name="Linux Platform" osList="linux" superClass="org.eclipse.cdt.cross.arm.gnu.linux.platform.base"/>
|
||||
<builder arguments="-sPROJECT=${project}" command="jam" id="org.eclipse.cdt.cross.arm.gnu.linux.builder.base.1006613367" incrementalBuildTarget="-a" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="ARM Linux GNU Make builder" superClass="org.eclipse.cdt.cross.arm.gnu.linux.builder.base"/>
|
||||
<tool id="org.eclipse.cdt.cross.arm.gnu.linux.assembler.base.1126922759" name="ARM Linux GCC Assembler" superClass="org.eclipse.cdt.cross.arm.gnu.linux.assembler.base">
|
||||
<inputType id="org.eclipse.cdt.cross.arm.gnu.linux.assembler.base.input.2003963039" superClass="org.eclipse.cdt.cross.arm.gnu.linux.assembler.base.input"/>
|
||||
</tool>
|
||||
<tool id="org.eclipse.cdt.cross.arm.gnu.linux.c.compiler.base.1032224388" name="ARM Linux GCC C Compiler" superClass="org.eclipse.cdt.cross.arm.gnu.linux.c.compiler.base">
|
||||
<inputType id="org.eclipse.cdt.cross.arm.gnu.linux.c.compiler.base.input.1010436045" superClass="org.eclipse.cdt.cross.arm.gnu.linux.c.compiler.base.input"/>
|
||||
</tool>
|
||||
<tool id="org.eclipse.cdt.cross.arm.gnu.linux.cpp.compiler.base.1751701335" name="ARM Linux GCC C++ Compiler" superClass="org.eclipse.cdt.cross.arm.gnu.linux.cpp.compiler.base">
|
||||
<inputType id="org.eclipse.cdt.cross.arm.gnu.linux.cpp.compiler.base.input.1870694833" superClass="org.eclipse.cdt.cross.arm.gnu.linux.cpp.compiler.base.input"/>
|
||||
</tool>
|
||||
<tool id="org.eclipse.cdt.cross.arm.gnu.linux.c.linker.base.1123088500" name="ARM Linux GCC C Linker" superClass="org.eclipse.cdt.cross.arm.gnu.linux.c.linker.base"/>
|
||||
<tool id="org.eclipse.cdt.cross.arm.gnu.linux.cpp.linker.base.1699850380" name="ARM Linux GCC C++ Linker" superClass="org.eclipse.cdt.cross.arm.gnu.linux.cpp.linker.base"/>
|
||||
<tool id="org.eclipse.cdt.cross.arm.gnu.linux.archiver.base.314697088" name="ARM Linux GCC Archiver" superClass="org.eclipse.cdt.cross.arm.gnu.linux.archiver.base"/>
|
||||
<tool id="org.eclipse.cdt.cross.arm.gnu.linux.createflash.base.735906752" name="ARM Linux GNU Create Flash Image" superClass="org.eclipse.cdt.cross.arm.gnu.linux.createflash.base"/>
|
||||
<tool id="org.eclipse.cdt.cross.arm.gnu.linux.createlisting.base.1872030260" name="ARM Linux GNU Create Listing" superClass="org.eclipse.cdt.cross.arm.gnu.linux.createlisting.base"/>
|
||||
<tool id="org.eclipse.cdt.cross.arm.gnu.linux.printsize.base.1103342009" name="ARM Linux GNU Print Size" superClass="org.eclipse.cdt.cross.arm.gnu.linux.printsize.base"/>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<project id="ukleos.null.1573737916" name="ukleos"/>
|
||||
</storageModule>
|
||||
<storageModule moduleId="refreshScope" versionNumber="1">
|
||||
<resource resourceType="PROJECT" workspacePath="/ukleos"/>
|
||||
</storageModule>
|
||||
<storageModule moduleId="scannerConfiguration">
|
||||
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
|
||||
<scannerConfigBuildInfo instanceId="org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.58138074.1433566827;org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.58138074.1433566827.;org.eclipse.cdt.cross.arm.gnu.linux.assembler.base.1558761989;org.eclipse.cdt.cross.arm.gnu.linux.assembler.base.input.1037674519">
|
||||
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.cross.arm.gnu.ARM_GCCManagedMakePerProjectProfileC"/>
|
||||
</scannerConfigBuildInfo>
|
||||
<scannerConfigBuildInfo instanceId="org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.58138074.1433566827">
|
||||
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.cross.arm.gnu.ARM_GCCManagedMakePerProjectProfileC"/>
|
||||
</scannerConfigBuildInfo>
|
||||
<scannerConfigBuildInfo instanceId="org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.58138074.1433566827;org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.58138074.1433566827.;org.eclipse.cdt.cross.arm.gnu.linux.cpp.compiler.base.1501937104;org.eclipse.cdt.cross.arm.gnu.linux.cpp.compiler.base.input.2062660491">
|
||||
<autodiscovery enabled="false" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.cross.arm.gnu.ARM_GCCManagedMakePerProjectProfileCPP"/>
|
||||
</scannerConfigBuildInfo>
|
||||
<scannerConfigBuildInfo instanceId="org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.58138074.1433566827;org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.58138074.1433566827.;org.eclipse.cdt.cross.arm.gnu.linux.c.compiler.base.1836306392;org.eclipse.cdt.cross.arm.gnu.linux.c.compiler.base.input.968114082">
|
||||
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.cross.arm.gnu.ARM_GCCManagedMakePerProjectProfileC"/>
|
||||
</scannerConfigBuildInfo>
|
||||
<scannerConfigBuildInfo instanceId="org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.58138074.1433566827;org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.58138074.1433566827.;org.eclipse.cdt.cross.arm.gnu.linux.cpp.compiler.base.2070034679;org.eclipse.cdt.cross.arm.gnu.linux.cpp.compiler.base.input.861264821">
|
||||
<autodiscovery enabled="false" problemReportingEnabled="false" selectedProfileId="org.eclipse.cdt.cross.arm.gnu.ARM_GCCManagedMakePerProjectProfileCPP"/>
|
||||
<profile id="org.eclipse.cdt.cross.arm.gnu.ARM_GCCManagedMakePerProjectProfileCPP">
|
||||
<buildOutputProvider>
|
||||
<openAction enabled="true" filePath=""/>
|
||||
<parser enabled="false"/>
|
||||
</buildOutputProvider>
|
||||
<scannerInfoProvider id="specsFile">
|
||||
<runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.cpp" command="arm-elf-g++" useDefault="true"/>
|
||||
<parser enabled="false"/>
|
||||
</scannerInfoProvider>
|
||||
</profile>
|
||||
</scannerConfigBuildInfo>
|
||||
<scannerConfigBuildInfo instanceId="org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.1083563639;org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.1083563639.254463758;org.eclipse.cdt.cross.arm.gnu.linux.assembler.base.365260253;org.eclipse.cdt.cross.arm.gnu.linux.assembler.base.input.1538659492">
|
||||
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.cross.arm.gnu.ARM_GCCManagedMakePerProjectProfileC"/>
|
||||
</scannerConfigBuildInfo>
|
||||
<scannerConfigBuildInfo instanceId="org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.1083563639;org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.1083563639.254463758;org.eclipse.cdt.cross.arm.gnu.linux.cpp.compiler.base.2113566427;org.eclipse.cdt.cross.arm.gnu.linux.cpp.compiler.base.input.872380296">
|
||||
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.cross.arm.gnu.ARM_GCCManagedMakePerProjectProfileCPP"/>
|
||||
<profile id="org.eclipse.cdt.cross.arm.gnu.ARM_GCCManagedMakePerProjectProfileCPP">
|
||||
<buildOutputProvider>
|
||||
<openAction enabled="true" filePath=""/>
|
||||
<parser enabled="true"/>
|
||||
</buildOutputProvider>
|
||||
<scannerInfoProvider id="specsFile">
|
||||
<runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.cpp" command="/home/julsch/gnuarm/bin/arm-elf-gcc" useDefault="true"/>
|
||||
<parser enabled="true"/>
|
||||
</scannerInfoProvider>
|
||||
</profile>
|
||||
</scannerConfigBuildInfo>
|
||||
<scannerConfigBuildInfo instanceId="org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.58138074.1433566827;org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.58138074.1433566827.;org.eclipse.cdt.cross.arm.gnu.linux.c.compiler.base.1080109922;org.eclipse.cdt.cross.arm.gnu.linux.c.compiler.base.input.880223749">
|
||||
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.cross.arm.gnu.ARM_GCCManagedMakePerProjectProfileC"/>
|
||||
</scannerConfigBuildInfo>
|
||||
<scannerConfigBuildInfo instanceId="org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.58138074.1433566827;org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.58138074.1433566827.;org.eclipse.cdt.cross.arm.gnu.linux.assembler.base.1223630990;org.eclipse.cdt.cross.arm.gnu.linux.assembler.base.input.879543817">
|
||||
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.cross.arm.gnu.ARM_GCCManagedMakePerProjectProfileC"/>
|
||||
</scannerConfigBuildInfo>
|
||||
<scannerConfigBuildInfo instanceId="org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.1083563639;org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.1083563639.254463758;org.eclipse.cdt.cross.arm.gnu.linux.c.compiler.base.1605662238;org.eclipse.cdt.cross.arm.gnu.linux.c.compiler.base.input.657560288">
|
||||
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.cross.arm.gnu.ARM_GCCManagedMakePerProjectProfileC"/>
|
||||
</scannerConfigBuildInfo>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.make.core.buildtargets">
|
||||
<buildTargets>
|
||||
<target name="flash" path="" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
|
||||
<buildCommand>jam</buildCommand>
|
||||
<buildArguments>-sPROJECT=${project}</buildArguments>
|
||||
<buildTarget>flash</buildTarget>
|
||||
<stopOnError>true</stopOnError>
|
||||
<useDefaultCommand>true</useDefaultCommand>
|
||||
<runAllBuilders>true</runAllBuilders>
|
||||
</target>
|
||||
<target name="flash all" path="" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
|
||||
<buildCommand>jam</buildCommand>
|
||||
<buildArguments>-sPROJECT=${project}</buildArguments>
|
||||
<buildTarget>-a flash</buildTarget>
|
||||
<stopOnError>true</stopOnError>
|
||||
<useDefaultCommand>true</useDefaultCommand>
|
||||
<runAllBuilders>true</runAllBuilders>
|
||||
</target>
|
||||
</buildTargets>
|
||||
</storageModule>
|
||||
</cproject>
|
@ -0,0 +1,79 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>ukleos</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
|
||||
<triggers>clean,full,incremental,</triggers>
|
||||
<arguments>
|
||||
<dictionary>
|
||||
<key>?name?</key>
|
||||
<value></value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.append_environment</key>
|
||||
<value>true</value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.autoBuildTarget</key>
|
||||
<value>all</value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.buildArguments</key>
|
||||
<value>-sPROJECT=${project}</value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.buildCommand</key>
|
||||
<value>jam</value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.cleanBuildTarget</key>
|
||||
<value>clean</value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.contents</key>
|
||||
<value>org.eclipse.cdt.make.core.activeConfigSettings</value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.enableAutoBuild</key>
|
||||
<value>false</value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.enableCleanBuild</key>
|
||||
<value>true</value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.enableFullBuild</key>
|
||||
<value>true</value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.fullBuildTarget</key>
|
||||
<value>-a</value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.stopOnError</key>
|
||||
<value>true</value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key>
|
||||
<value>false</value>
|
||||
</dictionary>
|
||||
</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.core.ccnature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
@ -0,0 +1,65 @@
|
||||
eclipse.preferences.version=1
|
||||
org.eclipse.cdt.codan.checkers.errnoreturn=Warning
|
||||
org.eclipse.cdt.codan.checkers.errnoreturn.params={implicit\=>false}
|
||||
org.eclipse.cdt.codan.checkers.errreturnvalue=Error
|
||||
org.eclipse.cdt.codan.checkers.errreturnvalue.params={}
|
||||
org.eclipse.cdt.codan.checkers.noreturn=Error
|
||||
org.eclipse.cdt.codan.checkers.noreturn.params={implicit\=>false}
|
||||
org.eclipse.cdt.codan.internal.checkers.AbstractClassCreation=Error
|
||||
org.eclipse.cdt.codan.internal.checkers.AbstractClassCreation.params={launchModes\=>{RUN_ON_FULL_BUILD\=>false,RUN_ON_INC_BUILD\=>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\=>false,RUN_ON_INC_BUILD\=>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={}
|
||||
org.eclipse.cdt.codan.internal.checkers.AssignmentToItselfProblem=Error
|
||||
org.eclipse.cdt.codan.internal.checkers.AssignmentToItselfProblem.params={}
|
||||
org.eclipse.cdt.codan.internal.checkers.CaseBreakProblem=Warning
|
||||
org.eclipse.cdt.codan.internal.checkers.CaseBreakProblem.params={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={unknown\=>false,exceptions\=>()}
|
||||
org.eclipse.cdt.codan.internal.checkers.CircularReferenceProblem=Error
|
||||
org.eclipse.cdt.codan.internal.checkers.CircularReferenceProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>false,RUN_ON_INC_BUILD\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
|
||||
org.eclipse.cdt.codan.internal.checkers.FieldResolutionProblem=Error
|
||||
org.eclipse.cdt.codan.internal.checkers.FieldResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>false,RUN_ON_INC_BUILD\=>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\=>false,RUN_ON_INC_BUILD\=>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\=>false,RUN_ON_INC_BUILD\=>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\=>false,RUN_ON_INC_BUILD\=>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\=>false,RUN_ON_INC_BUILD\=>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\=>false,RUN_ON_INC_BUILD\=>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\=>false,RUN_ON_INC_BUILD\=>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={pattern\=>"^[a-z]",macro\=>true,exceptions\=>()}
|
||||
org.eclipse.cdt.codan.internal.checkers.NonVirtualDestructorProblem=Warning
|
||||
org.eclipse.cdt.codan.internal.checkers.NonVirtualDestructorProblem.params={}
|
||||
org.eclipse.cdt.codan.internal.checkers.OverloadProblem=Error
|
||||
org.eclipse.cdt.codan.internal.checkers.OverloadProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>false,RUN_ON_INC_BUILD\=>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\=>false,RUN_ON_INC_BUILD\=>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\=>false,RUN_ON_INC_BUILD\=>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={}
|
||||
org.eclipse.cdt.codan.internal.checkers.ScanfFormatStringSecurityProblem=-Warning
|
||||
org.eclipse.cdt.codan.internal.checkers.ScanfFormatStringSecurityProblem.params={}
|
||||
org.eclipse.cdt.codan.internal.checkers.StatementHasNoEffectProblem=Warning
|
||||
org.eclipse.cdt.codan.internal.checkers.StatementHasNoEffectProblem.params={macro\=>true,exceptions\=>()}
|
||||
org.eclipse.cdt.codan.internal.checkers.SuggestedParenthesisProblem=Warning
|
||||
org.eclipse.cdt.codan.internal.checkers.SuggestedParenthesisProblem.params={paramNot\=>false}
|
||||
org.eclipse.cdt.codan.internal.checkers.SuspiciousSemicolonProblem=Warning
|
||||
org.eclipse.cdt.codan.internal.checkers.SuspiciousSemicolonProblem.params={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\=>false,RUN_ON_INC_BUILD\=>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={macro\=>true}
|
||||
org.eclipse.cdt.codan.internal.checkers.UnusedStaticFunctionProblem=Warning
|
||||
org.eclipse.cdt.codan.internal.checkers.UnusedStaticFunctionProblem.params={macro\=>true}
|
||||
org.eclipse.cdt.codan.internal.checkers.UnusedVariableDeclarationProblem=Warning
|
||||
org.eclipse.cdt.codan.internal.checkers.UnusedVariableDeclarationProblem.params={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\=>false,RUN_ON_INC_BUILD\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
|
@ -0,0 +1,57 @@
|
||||
eclipse.preferences.version=1
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.1083563639.268169961.2135331561/PATH/delimiter=\:
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.1083563639.268169961.2135331561/PATH/operation=replace
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.1083563639.268169961.2135331561/PATH/value=/usr/lib/lightdm/lightdm\:/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin\:/usr/games\:/home/julsch/gnuarm/bin
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.1083563639.268169961.2135331561/append=true
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.1083563639.268169961.2135331561/appendContributed=true
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.1083563639.268169961.2135331561/project/delimiter=\:
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.1083563639.268169961.2135331561/project/operation=replace
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.1083563639.268169961.2135331561/project/value=energy_profile_functions
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.1083563639.268169961/PATH/delimiter=\:
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.1083563639.268169961/PATH/operation=replace
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.1083563639.268169961/PATH/value=/usr/lib/lightdm/lightdm\:/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin\:/usr/games\:/home/julsch/gnuarm/bin
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.1083563639.268169961/append=true
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.1083563639.268169961/appendContributed=true
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.1083563639.268169961/project/delimiter=\:
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.1083563639.268169961/project/operation=replace
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.1083563639.268169961/project/value=energy2
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.1083563639/PATH/delimiter=\:
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.1083563639/PATH/operation=replace
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.1083563639/PATH/value=/usr/lib/lightdm/lightdm\:/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin\:/usr/games\:/home/julsch/gnuarm/bin
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.1083563639/append=true
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.1083563639/appendContributed=true
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.1083563639/project/delimiter=\:
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.1083563639/project/operation=append
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.1083563639/project/value=default
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.58138074.1433566827.720239648.671347658/PATH/delimiter=\:
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.58138074.1433566827.720239648.671347658/PATH/operation=replace
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.58138074.1433566827.720239648.671347658/PATH/value=/usr/lib/lightdm/lightdm\:/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin\:/usr/games\:/home/julsch/gnuarm/bin
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.58138074.1433566827.720239648.671347658/PROJECT/delimiter=\:
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.58138074.1433566827.720239648.671347658/PROJECT/operation=replace
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.58138074.1433566827.720239648.671347658/PROJECT/value=test_ltc4150
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.58138074.1433566827.720239648.671347658/append=true
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.58138074.1433566827.720239648.671347658/appendContributed=true
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.58138074.1433566827.720239648.894844977/PATH/delimiter=\:
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.58138074.1433566827.720239648.894844977/PATH/operation=replace
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.58138074.1433566827.720239648.894844977/PATH/value=/usr/lib/lightdm/lightdm\:/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin\:/usr/games\:/home/julsch/gnuarm/bin
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.58138074.1433566827.720239648.894844977/PROJECT/delimiter=\:
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.58138074.1433566827.720239648.894844977/PROJECT/operation=replace
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.58138074.1433566827.720239648.894844977/PROJECT/value=test_shell
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.58138074.1433566827.720239648.894844977/append=true
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.58138074.1433566827.720239648.894844977/appendContributed=true
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.58138074.1433566827.720239648/PATH/delimiter=\:
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.58138074.1433566827.720239648/PATH/operation=replace
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.58138074.1433566827.720239648/PATH/value=/usr/lib/lightdm/lightdm\:/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin\:/usr/games\:/home/julsch/gnuarm/bin
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.58138074.1433566827.720239648/PROJECT/delimiter=\:
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.58138074.1433566827.720239648/PROJECT/operation=replace
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.58138074.1433566827.720239648/PROJECT/value=energy2
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.58138074.1433566827.720239648/append=true
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.58138074.1433566827.720239648/appendContributed=true
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.58138074.1433566827/PATH/delimiter=\:
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.58138074.1433566827/PATH/operation=append
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.58138074.1433566827/PATH/value=/home/julsch/gnuarm/bin
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.58138074.1433566827/PROJECT/delimiter=\:
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.58138074.1433566827/PROJECT/operation=append
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.58138074.1433566827/PROJECT/value=ukleos
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.58138074.1433566827/append=true
|
||||
environment/project/org.eclipse.cdt.cross.arm.gnu.linux.toolchain.base.58138074.1433566827/appendContributed=true
|
@ -1,3 +1,3 @@
|
||||
obj/boot_23xx.d obj/boot_23xx.o: src/boot_23xx.c src/boot_23xx.h
|
||||
obj/boot_23xx.d: src/boot_23xx.c src/boot_23xx.h
|
||||
|
||||
src/boot_23xx.h:
|
||||
|
@ -1,3 +1,3 @@
|
||||
obj/boot_2xxx.d obj/boot_2xxx.o: src/boot_2xxx.c src/boot_2xxx.h
|
||||
obj/boot_2xxx.d: src/boot_2xxx.c src/boot_2xxx.h
|
||||
|
||||
src/boot_2xxx.h:
|
||||
|
@ -1,3 +1,3 @@
|
||||
obj/ihex.d obj/ihex.o: src/ihex.c src/ihex.h
|
||||
obj/ihex.d: src/ihex.c src/ihex.h
|
||||
|
||||
src/ihex.h:
|
||||
|
@ -1,3 +1,3 @@
|
||||
obj/serial.d obj/serial.o: src/serial.c src/serial.h
|
||||
obj/serial.d: src/serial.c src/serial.h
|
||||
|
||||
src/serial.h:
|
||||
|
@ -1,3 +1,3 @@
|
||||
obj/uuencode.d obj/uuencode.o: src/uuencode.c src/uuencode.h
|
||||
obj/uuencode.d: src/uuencode.c src/uuencode.h
|
||||
|
||||
src/uuencode.h:
|
||||
|
@ -0,0 +1,5 @@
|
||||
SubDir TOP projects energy2 ;
|
||||
|
||||
Module energy2 : main.c testThread.c testSHT11.c led.c testShell.c testLTC4150.c : auto_init hwtimer swtimer sht11 shell posix_io ps uart0 ltc4150 ;
|
||||
|
||||
UseModule energy2 ;
|
@ -0,0 +1,52 @@
|
||||
/*
|
||||
* led.c
|
||||
*
|
||||
* Created on: 30.05.2012
|
||||
* Author: julsch
|
||||
*/
|
||||
|
||||
#include "led.h"
|
||||
|
||||
#ifndef SWTIMER_H_
|
||||
#include <swtimer.h>
|
||||
#endif
|
||||
|
||||
#ifndef BOARD_H_
|
||||
#include <board.h>
|
||||
#endif
|
||||
|
||||
|
||||
char led_stack[MINIMUM_STACK_SIZE+1024];
|
||||
int led_pid;
|
||||
static int timesInThread;
|
||||
static long int toggleSpeedInThread;
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
* LED FUNCTIONS
|
||||
*****************************************************************************/
|
||||
|
||||
/**
|
||||
* Toggle the LED n times.
|
||||
*/
|
||||
void toggleLedNTimes(int times, long int toggleSpeed) {
|
||||
LED_RED_ON;
|
||||
|
||||
for (int var = 1; var < times; var++) {
|
||||
//hwtimer_wait(toggleSpeed);
|
||||
swtimer_usleep(toggleSpeed);
|
||||
LED_RED_TOGGLE;
|
||||
}
|
||||
}
|
||||
|
||||
/*void toggleLedInThread(void) {
|
||||
toggleLedNTimes(timesInThread, toggleSpeedInThread);
|
||||
}
|
||||
|
||||
void toggleLedNTimesInThread(int times, long int toggleSpeed) {
|
||||
timesInThread = times;
|
||||
toggleSpeedInThread = toggleSpeed;
|
||||
led_pid = thread_create(led_stack,sizeof(led_stack),PRIORITY_MIN,CREATE_STACKTEST,toggleLedInThread,"toggle led");
|
||||
}*/
|
||||
|
||||
|
@ -0,0 +1,28 @@
|
||||
/*
|
||||
* led.h
|
||||
*
|
||||
* Provides some useful functions to generate different user signals with the
|
||||
* red LED.
|
||||
*
|
||||
* Created on: 30.05.2012
|
||||
* Author: julsch
|
||||
*/
|
||||
|
||||
#ifndef LED_H_
|
||||
#define LED_H_
|
||||
|
||||
#include <thread.h>
|
||||
|
||||
/**
|
||||
* Toggle the LED n times.
|
||||
*/
|
||||
void toggleLedNTimes(int times, long int toggleSpeed);
|
||||
|
||||
//void toggleLedNTimesInThread(int times, long int toggleSpeed);
|
||||
|
||||
|
||||
#endif /* LED_H_ */
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,70 @@
|
||||
#include <stdio.h>
|
||||
#include <hwtimer.h>
|
||||
#include <swtimer.h>
|
||||
#include <board.h>
|
||||
|
||||
|
||||
//#include "testThread.h"
|
||||
|
||||
// init MSB
|
||||
void initMSBModules(void);
|
||||
|
||||
// led functions
|
||||
//void toggleLedNTimes(int times, long int toggleSpeed);
|
||||
|
||||
// thread functions
|
||||
//void testThreadFunctions(void);
|
||||
//int createThread(void (*threadFunction)(char *), char *stack, int stacksize);
|
||||
//void runThread(void);
|
||||
//void runThread2(void);
|
||||
|
||||
|
||||
// global variables
|
||||
int thread1 = -1;
|
||||
int thread2 = -1;
|
||||
int pid = -1;
|
||||
|
||||
//char stack[2048];
|
||||
|
||||
/**
|
||||
* This is the hello-world main file. Here are the first steps for testing and learning c programming.
|
||||
* @return the program status
|
||||
*/
|
||||
int main(void) {
|
||||
//BEGIN: ORGINAL
|
||||
//printf("Hello world!\n");
|
||||
//END: ORGINAL
|
||||
|
||||
//printf("main loop\n");
|
||||
initMSBModules();
|
||||
|
||||
// --- testing ---
|
||||
//testThreadFunctions();
|
||||
//testSHT11Functions();
|
||||
//startShell();
|
||||
testLTCFunctions();
|
||||
|
||||
printf("main loop\n");
|
||||
while(1) {
|
||||
toggleLedNTimes(2,62500LU);
|
||||
//printf("main loop\n");
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/******************************************************************************
|
||||
* Initialze MSB modules
|
||||
*****************************************************************************/
|
||||
|
||||
/**
|
||||
* Initiliaze modules of the MSB for the hello-world program.
|
||||
*/
|
||||
void initMSBModules(void) {
|
||||
printf("init MSB modules\n");
|
||||
// do nothing because auto_init initiate all init method without parameters
|
||||
|
||||
//hwtimer_init();
|
||||
//swtimer_init();
|
||||
//sht11_init();
|
||||
}
|
@ -0,0 +1,75 @@
|
||||
/*
|
||||
* testLTC4150.c
|
||||
*
|
||||
* Created on: 05.06.2012
|
||||
* Author: julsch
|
||||
*/
|
||||
|
||||
#include "testLTC4150.h"
|
||||
|
||||
void testLTCFunctions(void) {
|
||||
startCurrentMeasurement();
|
||||
|
||||
int i = 0;
|
||||
while(i < 10) {
|
||||
printCurrent();
|
||||
//printAverageCurrent();
|
||||
swtimer_usleep(1000000LU);
|
||||
//toggleLedNTimes(2,62500LU);
|
||||
//printf("now %lu",hwtimer_arch_now());
|
||||
i++;
|
||||
}
|
||||
}
|
||||
|
||||
void startCurrentMeasurement(void) {
|
||||
printf("starting ltc4150 measuring\n");
|
||||
ltc4150_start();
|
||||
}
|
||||
|
||||
|
||||
void stopCurrentMeasurement(void) {
|
||||
printf("stopping ltc4150 measuring\n");
|
||||
ltc4150_stop();
|
||||
}
|
||||
|
||||
|
||||
void resetCurrentMeasurement(void) {
|
||||
printf("restarting ltc4150 measuring\n");
|
||||
ltc4150_start();
|
||||
}
|
||||
|
||||
double getAverageCurrent(void) {
|
||||
return ltc4150_get_avg_mA();
|
||||
}
|
||||
|
||||
double getCurrent(void) {
|
||||
return ltc4150_get_current_mA();
|
||||
}
|
||||
|
||||
void printAverageCurrent(void) {
|
||||
double avg = ltc4150_get_avg_mA();
|
||||
printf("avg %.4f mA\n", avg);
|
||||
}
|
||||
|
||||
void printCurrent(void) {
|
||||
double avg = ltc4150_get_current_mA();
|
||||
printf("current %.4f mA\n", avg);
|
||||
}
|
||||
|
||||
void printCurrentWithLED(void) {
|
||||
LED_RED_ON;
|
||||
swtimer_usleep(2000000LU);
|
||||
double avg = ltc4150_get_current_mA();
|
||||
printf("current %.4f mA\n", avg);
|
||||
LED_RED_OFF;
|
||||
}
|
||||
|
||||
void printCurrentWithoutLED(void) {
|
||||
LED_RED_OFF;
|
||||
swtimer_usleep(2000000LU);
|
||||
double avg = ltc4150_get_current_mA();
|
||||
printf("current %.4f mA\n", avg);
|
||||
}
|
||||
|
||||
|
||||
|
@ -0,0 +1,31 @@
|
||||
/*
|
||||
* testLTC4150.h
|
||||
*
|
||||
* Created on: 05.06.2012
|
||||
* Author: julsch
|
||||
*/
|
||||
|
||||
#ifndef TESTLTC4150_H_
|
||||
#define TESTLTC4150_H_
|
||||
|
||||
#include <swtimer.h>
|
||||
#include "led.h"
|
||||
#include <ltc4150.h>
|
||||
#include <board.h>
|
||||
|
||||
void testLTCFunctions(void);
|
||||
|
||||
void startCurrentMeasurement(void);
|
||||
void stopCurrentMeasurement(void);
|
||||
void resetCurrentMeasurement(void);
|
||||
|
||||
double getAverageCurrent(void);
|
||||
double getCurrent(void);
|
||||
|
||||
void printAverageCurrent(void);
|
||||
void printCurrent(void);
|
||||
|
||||
void printCurrentWithLED(void);
|
||||
void printCurrentWithoutLED(void);
|
||||
|
||||
#endif /* TESTLTC4150_H_ */
|
@ -0,0 +1,101 @@
|
||||
/*
|
||||
* testSHT11.c
|
||||
* Testing sht11 funstions
|
||||
*
|
||||
* Created on: 01.06.2012
|
||||
* Author: julsch
|
||||
*/
|
||||
|
||||
#include "testSHT11.h"
|
||||
|
||||
#ifndef THREAD_H_
|
||||
#include <thread.h>
|
||||
#endif
|
||||
|
||||
#ifndef LED_H_
|
||||
#include "led.h"
|
||||
#endif
|
||||
|
||||
// interprocess communication, stack and pid for thread
|
||||
static sht11_mode_t printingMode;
|
||||
char stack[8196];
|
||||
int pid;
|
||||
|
||||
/**
|
||||
* Testing SHT11 functions.
|
||||
*/
|
||||
void testSHT11Functions(void) {
|
||||
//printf("resut of 'or': %d\n",HUMIDITY | TEMPERATURE);
|
||||
|
||||
// simple measurement test
|
||||
/*while(1) {
|
||||
//printMeasurement(HUMIDITY | TEMPERATURE);
|
||||
printMeasurement(TEMPERATURE);
|
||||
swtimer_usleep(1000000LU);
|
||||
}*/
|
||||
|
||||
// measurement test in thread
|
||||
|
||||
printingMode = HUMIDITY;
|
||||
printf("create SHT11 thread\n");
|
||||
pid = thread_create(stack, sizeof(stack), 0, STATUS_SLEEPING, getMeasurementInThread, "nr2");
|
||||
|
||||
int i=0;
|
||||
while (1) {
|
||||
i++;
|
||||
|
||||
if (i==2) {
|
||||
printingMode = HUMIDITY;
|
||||
} else if (i == 5) {
|
||||
printingMode = HUMIDITY | TEMPERATURE;
|
||||
} else {
|
||||
printingMode = TEMPERATURE;
|
||||
}
|
||||
swtimer_usleep(2000000LU);
|
||||
thread_wakeup(pid);
|
||||
|
||||
i = i % 5;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
void getMeasurementInThread(void) {
|
||||
//thread_print_stack();
|
||||
while(1) {
|
||||
toggleLedNTimes(10,62500LU);
|
||||
printf("Reading measurements with type %d from SHT11\n", printingMode);
|
||||
printMeasurement(printingMode);
|
||||
thread_sleep();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Depending on parameter sht11_mode_t the procedure prints rel. humidity,
|
||||
* temperature and/or temperature compensated relative humidity.
|
||||
* @param sht11_mode_t is value HUMIDITY or/and TEMPERATURE
|
||||
*/
|
||||
void printMeasurement(sht11_mode_t mode) {
|
||||
sht11_val_t sht11_val;
|
||||
uint8_t success = 0;
|
||||
success = sht11_read_sensor(&sht11_val, mode);
|
||||
if (!success) {
|
||||
printf("Error while reading humidity");
|
||||
} else {
|
||||
toggleLedNTimes(2,50000LU);
|
||||
switch (mode) {
|
||||
case HUMIDITY:
|
||||
printf("%5.2f%% relative humidity\n", sht11_val.relhum);
|
||||
break;
|
||||
case TEMPERATURE:
|
||||
printf("%5.2f%°C temperature\n", sht11_val.temperature);
|
||||
break;
|
||||
case HUMIDITY | TEMPERATURE:
|
||||
printf("%5.2f%°C temperature,\n", sht11_val.temperature);
|
||||
printf("%5.2f%% relative humidity,\n", sht11_val.relhum);
|
||||
printf("%5.2f%% temperature compensated relative humidity.\n", sht11_val.relhum_temp);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,33 @@
|
||||
/*
|
||||
* testSHT11.h
|
||||
*
|
||||
* Created on: 01.06.2012
|
||||
* Author: julsch
|
||||
*/
|
||||
|
||||
#ifndef TESTSHT11_H_
|
||||
#define TESTSHT11_H_
|
||||
|
||||
#ifndef SHT11_H_
|
||||
#include <sht11.h>
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Testing SHT11 functions.
|
||||
*/
|
||||
void testSHT11Functions(void);
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
void getMeasurementInThread(void);
|
||||
|
||||
/**
|
||||
* Depending on parameter sht11_mode_t the procedure prints rel. humidity,
|
||||
* temperature and/or temperature compensated relative humidity.
|
||||
* @param sht11_mode_t is value HUMIDITY or/and TEMPERATURE
|
||||
*/
|
||||
void printMeasurement(sht11_mode_t mode);
|
||||
|
||||
|
||||
#endif /* TESTSHT11_H_ */
|
@ -0,0 +1,91 @@
|
||||
/*
|
||||
* testShell.c
|
||||
*
|
||||
* Created on: 05.06.2012
|
||||
* Author: julsch
|
||||
*/
|
||||
|
||||
#include "testShell.h"
|
||||
#include "testSHT11.h"
|
||||
#include "testLTC4150.h"
|
||||
|
||||
//global variables
|
||||
char shell_stack[MINIMUM_STACK_SIZE+4096];
|
||||
shell_t shell;
|
||||
int shell_pid;
|
||||
|
||||
//#ifdef _TESTSHELL_H_
|
||||
extern void printAverageCurrent(void);
|
||||
extern void printCurrent(void);
|
||||
//#endif
|
||||
|
||||
void print_teststart(char* str) {
|
||||
printf("[TEST_START]\n");
|
||||
}
|
||||
|
||||
void print_testend(char* str) {
|
||||
printf("[TEST_END]\n");
|
||||
}
|
||||
|
||||
void print_temp(char* str) {
|
||||
printMeasurement(TEMPERATURE);
|
||||
}
|
||||
|
||||
void print_avg_current(void) {
|
||||
printAverageCurrent();
|
||||
}
|
||||
|
||||
void print_current(void) {
|
||||
printCurrent();
|
||||
}
|
||||
|
||||
int shell_readc() {
|
||||
char c = 0;
|
||||
posix_read(uart0_handler_pid, &c, 1);
|
||||
return c;
|
||||
}
|
||||
|
||||
void shell_putchar(int c) {
|
||||
putchar(c);
|
||||
}
|
||||
|
||||
const shell_command_t shell_commands[] = {
|
||||
{"start", "", print_teststart},
|
||||
{"end", "", print_testend},
|
||||
{"temp","",print_temp},
|
||||
{"curLTC","",print_current},
|
||||
{"avgLTC","",print_avg_current},
|
||||
{"upLTC","",startCurrentMeasurement},
|
||||
{"cur_LEDON","",printCurrentWithLED},
|
||||
{"cur_LEDOFF","",printCurrentWithoutLED},
|
||||
{"ps","",thread_print_all},
|
||||
{NULL, NULL, NULL}
|
||||
};
|
||||
|
||||
void shell_runner(void) {
|
||||
|
||||
posix_open(uart0_handler_pid, 0);
|
||||
printf("INIT SHELL.\n");
|
||||
shell_init(&shell,shell_commands, shell_readc, shell_putchar);
|
||||
printf("RUN SHELL.\n");
|
||||
shell_run(&shell);
|
||||
}
|
||||
|
||||
void startShell(void) {
|
||||
//printf("Moin. build on %s %s SVN-Revision: %s\n", kernel_builddate, kernel_buildtime, kernel_svnrevision);
|
||||
printf("My Shell.\n");
|
||||
|
||||
board_uart0_init();
|
||||
|
||||
//posix_open(uart0_handler_pid, 0);
|
||||
//printf("INIT SHELL.\n");
|
||||
//shell_init(&shell,shell_commands, shell_readc, shell_putchar);
|
||||
//printf("RUN SHELL.\n");
|
||||
//shell_run(&shell);
|
||||
|
||||
// Does not work, maybe the wrong thread is active when entering a command
|
||||
shell_pid = thread_create(shell_stack,sizeof(shell_stack),PRIORITY_MAIN-1,CREATE_STACKTEST,shell_runner,"s1");
|
||||
}
|
||||
|
||||
|
||||
|
@ -0,0 +1,28 @@
|
||||
/*
|
||||
* testShell.h
|
||||
*
|
||||
* Created on: 05.06.2012
|
||||
* Author: julsch
|
||||
*/
|
||||
|
||||
#ifndef TESTSHELL_H_
|
||||
#define TESTSHELL_H_
|
||||
|
||||
#include <posix_io.h>
|
||||
#include <shell.h>
|
||||
#include <board_uart0.h>
|
||||
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <malloc.h>
|
||||
#include <thread.h>
|
||||
#include <ps.h>
|
||||
|
||||
|
||||
void startShell(void);
|
||||
void print_teststart(char* str);
|
||||
void print_testend(char* str);
|
||||
int shell_readc();
|
||||
void shell_putchar(int c);
|
||||
|
||||
#endif /* TESTSHELL_H_ */
|
@ -0,0 +1,75 @@
|
||||
/*
|
||||
* testThread.c
|
||||
* testing thread functions in ukleos
|
||||
* Created on: 01.06.2012
|
||||
* Author: julsch
|
||||
*/
|
||||
|
||||
#include "testThread.h"
|
||||
#ifndef THREAD_H_
|
||||
#include <thread.h>
|
||||
#endif
|
||||
|
||||
|
||||
/**
|
||||
* Testing thread functions
|
||||
* Thread exmaple only works, if the content of the body is included in the
|
||||
* main. In testThreadFunction the example does not work.
|
||||
*/
|
||||
void testThreadFunctions(void) {
|
||||
printf("init thread\n");
|
||||
toggleLedNTimes(10,125000LU);
|
||||
|
||||
int thread1 = -1;
|
||||
int thread2 = -1;
|
||||
|
||||
thread1 = createThread(runThread, second_thread_stack, sizeof(second_thread_stack));
|
||||
thread2 = createThread(runThread2, third_thread_stack, sizeof(third_thread_stack));
|
||||
}
|
||||
|
||||
/**
|
||||
* howto-exmaple to create a thread in ukleos. The new thread runs the first time after the caller function returns or the procedure ends.
|
||||
* The caller function has to declared the stack.
|
||||
*/
|
||||
int createThread(void (*threadFunction)(void), char *stack, int stacksize) {
|
||||
int threadID;
|
||||
|
||||
printf("create thread\n");
|
||||
threadID = thread_create(stack, stacksize, 0, CREATE_WOUT_YIELD | CREATE_STACKTEST, threadFunction, "nr2");
|
||||
return threadID;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Thread execution function. The function print the whole ABC on serial and redo this on an infinite loop
|
||||
*/
|
||||
void runThread(void) {
|
||||
char *value = 'A';
|
||||
while(1) {
|
||||
swtimer_usleep(500000LU);
|
||||
printf("Message %c\n", value);
|
||||
if (value == 90) {
|
||||
value = 64;
|
||||
toggleLedNTimes(10,50000LU);
|
||||
}
|
||||
value++;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Second thread execution function. The function prints numbers between 1 and 90 in an infinite loop.
|
||||
*/
|
||||
void runThread2(void) {
|
||||
char *value = 1;
|
||||
while(1) {
|
||||
swtimer_usleep(500000LU);
|
||||
printf("Message %d\n", value);
|
||||
if (value == 90) {
|
||||
value = 1;
|
||||
toggleLedNTimes(10,50000LU);
|
||||
}
|
||||
value++;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,42 @@
|
||||
/*
|
||||
* testThread.h
|
||||
*
|
||||
* Created on: 01.06.2012
|
||||
* Author: julsch
|
||||
*/
|
||||
|
||||
#ifndef TESTTHREAD_H_
|
||||
#define TESTTHREAD_H_
|
||||
|
||||
|
||||
char second_thread_stack[8192];
|
||||
char third_thread_stack[8192];
|
||||
|
||||
|
||||
/**
|
||||
* Testing thread functions
|
||||
* Thread exmaple only works, if the content of the body is included in the
|
||||
* main. In testThreadFunction the example does not work.
|
||||
*/
|
||||
void testThreadFunctions(void);
|
||||
|
||||
/**
|
||||
* howto-exmaple to create a thread in ukleos. The new thread runs the first time after the caller function returns or the procedure ends.
|
||||
* The caller function has to declared the stack.
|
||||
*/
|
||||
int createThread(void (*threadFunction)(void), char *stack, int stacksize);
|
||||
|
||||
/**
|
||||
* Thread execution function. The function print the whole ABC on serial and redo this on an infinite loop
|
||||
*/
|
||||
void runThread(void);
|
||||
|
||||
/**
|
||||
* Second thread execution function. The function prints numbers between 1 and 90 in an infinite loop.
|
||||
*/
|
||||
void runThread2(void);
|
||||
|
||||
|
||||
|
||||
|
||||
#endif /* TESTTHREAD_H_ */
|
@ -0,0 +1,13 @@
|
||||
#!/usr/bin/expect
|
||||
|
||||
set timeout 5
|
||||
|
||||
spawn pseudoterm $env(PORT)
|
||||
|
||||
expect {
|
||||
"Hello World!" {}
|
||||
timeout { exit 1 }
|
||||
}
|
||||
|
||||
puts "\nTest successful!\n"
|
||||
|
@ -0,0 +1,5 @@
|
||||
SubDir TOP projects energy_profile_functions ;
|
||||
|
||||
Module energy_profile_functions : main.c led.c : auto_init swtimer ;
|
||||
|
||||
UseModule energy_profile_functions ;
|
@ -0,0 +1,52 @@
|
||||
/*
|
||||
* led.c
|
||||
*
|
||||
* Created on: 30.05.2012
|
||||
* Author: julsch
|
||||
*/
|
||||
|
||||
#include "led.h"
|
||||
|
||||
#ifndef SWTIMER_H_
|
||||
#include <swtimer.h>
|
||||
#endif
|
||||
|
||||
#ifndef BOARD_H_
|
||||
#include <board.h>
|
||||
#endif
|
||||
|
||||
|
||||
char led_stack[MINIMUM_STACK_SIZE+1024];
|
||||
int led_pid;
|
||||
static int timesInThread;
|
||||
static long int toggleSpeedInThread;
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
* LED FUNCTIONS
|
||||
*****************************************************************************/
|
||||
|
||||
/**
|
||||
* Toggle the LED n times.
|
||||
*/
|
||||
void toggleLedNTimes(int times, long int toggleSpeed) {
|
||||
LED_RED_ON;
|
||||
|
||||
for (int var = 1; var < times; var++) {
|
||||
//hwtimer_wait(toggleSpeed);
|
||||
swtimer_usleep(toggleSpeed);
|
||||
LED_RED_TOGGLE;
|
||||
}
|
||||
}
|
||||
|
||||
/*void toggleLedInThread(void) {
|
||||
toggleLedNTimes(timesInThread, toggleSpeedInThread);
|
||||
}
|
||||
|
||||
void toggleLedNTimesInThread(int times, long int toggleSpeed) {
|
||||
timesInThread = times;
|
||||
toggleSpeedInThread = toggleSpeed;
|
||||
led_pid = thread_create(led_stack,sizeof(led_stack),PRIORITY_MIN,CREATE_STACKTEST,toggleLedInThread,"toggle led");
|
||||
}*/
|
||||
|
||||
|
@ -0,0 +1,28 @@
|
||||
/*
|
||||
* led.h
|
||||
*
|
||||
* Provides some useful functions to generate different user signals with the
|
||||
* red LED.
|
||||
*
|
||||
* Created on: 30.05.2012
|
||||
* Author: julsch
|
||||
*/
|
||||
|
||||
#ifndef LED_H_
|
||||
#define LED_H_
|
||||
|
||||
#include <thread.h>
|
||||
|
||||
/**
|
||||
* Toggle the LED n times.
|
||||
*/
|
||||
void toggleLedNTimes(int times, long int toggleSpeed);
|
||||
|
||||
//void toggleLedNTimesInThread(int times, long int toggleSpeed);
|
||||
|
||||
|
||||
#endif /* LED_H_ */
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,31 @@
|
||||
//#include <stdio.h>
|
||||
//#include "trace.h"
|
||||
|
||||
#include "led.c"
|
||||
|
||||
int main(void) {
|
||||
printf("Hello world!\n");
|
||||
|
||||
int i = 0;
|
||||
while(1) {
|
||||
i++;
|
||||
jumpToDummyFunction();
|
||||
jumpWithoutProfileFunction();
|
||||
if (i >= 20) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
void jumpToDummyFunction() {
|
||||
|
||||
printf("This is a dummy.\n");
|
||||
}
|
||||
|
||||
void __attribute__((__no_instrument_function__)) jumpWithoutProfileFunction() {
|
||||
printf("no profile\n");
|
||||
}
|
||||
|
@ -0,0 +1,13 @@
|
||||
#!/usr/bin/expect
|
||||
|
||||
set timeout 5
|
||||
|
||||
spawn pseudoterm $env(PORT)
|
||||
|
||||
expect {
|
||||
"Hello World!" {}
|
||||
timeout { exit 1 }
|
||||
}
|
||||
|
||||
puts "\nTest successful!\n"
|
||||
|
@ -0,0 +1,23 @@
|
||||
/*
|
||||
* trace.c
|
||||
*
|
||||
* Created on: 19.06.2012
|
||||
* Author: julsch
|
||||
*/
|
||||
//#include "led.h"
|
||||
|
||||
void __attribute__((no_instrument_function)) __cyg_profile_func_enter (void *func, void *caller) {
|
||||
//if(fp_trace != NULL) {
|
||||
printf("e %p %p\n", func, caller);
|
||||
//}
|
||||
//toggleLedNTimes(2,62500LU);
|
||||
}
|
||||
|
||||
void __attribute__((no_instrument_function)) __cyg_profile_func_exit (void *func, void *caller) {
|
||||
//if(fp_trace != NULL) {
|
||||
printf("x %p %p\n", func, caller);
|
||||
//}
|
||||
//toggleLedNTimes(2,62500LU);
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,15 @@
|
||||
/*
|
||||
* trace.h
|
||||
*
|
||||
* Created on: 19.06.2012
|
||||
* Author: julsch
|
||||
*/
|
||||
|
||||
#ifndef TRACE_H_
|
||||
#define TRACE_H_
|
||||
|
||||
void __attribute__((no_instrument_function))__cyg_profile_func_enter (void *func, void *caller);
|
||||
void __attribute__((no_instrument_function))__cyg_profile_func_exit (void *func, void *caller);
|
||||
|
||||
|
||||
#endif /* TRACE_H_ */
|