new
This commit is contained in:
commit
1ba4553e29
61
.cproject
Normal file
61
.cproject
Normal file
@ -0,0 +1,61 @@
|
||||
<?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="it.baeyens.arduino.core.toolChain.release.1766021206">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="it.baeyens.arduino.core.toolChain.release.1766021206" moduleId="org.eclipse.cdt.core.settings" name="Release">
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
<extension id="org.eclipse.cdt.core.MakeErrorParser" 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.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactName="${ProjName}" buildProperties="" description="" id="it.baeyens.arduino.core.toolChain.release.1766021206" name="Release" parent="org.eclipse.cdt.build.core.emptycfg">
|
||||
<folderInfo id="it.baeyens.arduino.core.toolChain.release.1766021206.928550470" name="/" resourcePath="">
|
||||
<toolChain id="it.baeyens.arduino.core.toolChain.release.1379005045" name="it.baeyens.arduino.core.toolChain.release" superClass="it.baeyens.arduino.core.toolChain.release">
|
||||
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF" id="it.baeyens.arduino.targetplatform.2135596349" name="Arduino Target" osList="all" superClass="it.baeyens.arduino.targetplatform"/>
|
||||
<builder buildPath="${workspace_loc:/ThermometerPro}/Release" id="it.baeyens.arduino.sketch.builder.92079915" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="Arduino sketch builder" superClass="it.baeyens.arduino.sketch.builder"/>
|
||||
<tool id="it.baeyens.arduino.tool.sketch.compiler.cpp.1453728045" name="Arduino C++ Compiler" superClass="it.baeyens.arduino.tool.sketch.compiler.cpp">
|
||||
<option id="it.baeyens.arduino.compiler.cpp.sketch.option.incpath.1409263842" name="Include Paths (-I)" superClass="it.baeyens.arduino.compiler.cpp.sketch.option.incpath" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/ThermometerPro/arduino/core}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/ThermometerPro/arduino/variant}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/ThermometerPro/Libraries/SPI}""/>
|
||||
</option>
|
||||
<inputType id="it.baeyens.arduino.compiler.cpp.sketch.input.2020703864" name="CPP source files" superClass="it.baeyens.arduino.compiler.cpp.sketch.input"/>
|
||||
</tool>
|
||||
<tool id="it.baeyens.arduino.tool.compiler.c.1433100019" name="Arduino C Compiler" superClass="it.baeyens.arduino.tool.compiler.c">
|
||||
<option id="it.baeyens.arduino.compiler.c.sketch.option.incpath.14050020" name="Include Paths (-I)" superClass="it.baeyens.arduino.compiler.c.sketch.option.incpath" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/ThermometerPro/arduino/core}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/ThermometerPro/arduino/variant}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/ThermometerPro/Libraries/SPI}""/>
|
||||
</option>
|
||||
<inputType id="it.baeyens.arduino.compiler.c.sketch.input.1030697818" name="C Source Files" superClass="it.baeyens.arduino.compiler.c.sketch.input"/>
|
||||
</tool>
|
||||
<tool id="it.baeyens.arduino.tool.ar.312506607" name="Arduino archiver" superClass="it.baeyens.arduino.tool.ar"/>
|
||||
<tool id="it.baeyens.arduino.tool.combine.1683962638" name="Arduino combiner" superClass="it.baeyens.arduino.tool.combine"/>
|
||||
<tool id="it.baeyens.arduino.tool.objcopy.eep.1315458820" name="Arduino tool Create eeprom" superClass="it.baeyens.arduino.tool.objcopy.eep"/>
|
||||
<tool id="it.baeyens.arduino.tool.objcopy.flash.1262587554" name="Arduino tool Create hex" superClass="it.baeyens.arduino.tool.objcopy.flash"/>
|
||||
<tool id="it.baeyens.arduino.tool.size.456132484" name="Arduino tool Print Size" superClass="it.baeyens.arduino.tool.size"/>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
<sourceEntries>
|
||||
<entry excluding="Libraries/*/?xamples" flags="VALUE_WORKSPACE_PATH" kind="sourcePath" name=""/>
|
||||
</sourceEntries>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<project id="ThermometerPro.null.1070532003" name="ThermometerPro"/>
|
||||
</storageModule>
|
||||
<storageModule moduleId="scannerConfiguration">
|
||||
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="refreshScope"/>
|
||||
</cproject>
|
59
.project
Normal file
59
.project
Normal file
@ -0,0 +1,59 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>ThermometerPro</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
|
||||
<triggers>clean,full,incremental,</triggers>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
|
||||
<triggers>full,incremental,</triggers>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.cdt.core.cnature</nature>
|
||||
<nature>org.eclipse.cdt.core.ccnature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
|
||||
<nature>it.baeyens.arduinonature</nature>
|
||||
</natures>
|
||||
<linkedResources>
|
||||
<link>
|
||||
<name>Libraries/SPI</name>
|
||||
<type>2</type>
|
||||
<locationURI>ArduinoHardwareLibPath/SPI</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>arduino/core</name>
|
||||
<type>2</type>
|
||||
<locationURI>ArduinoPlatformPath/cores/arduino</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>arduino/variant</name>
|
||||
<type>2</type>
|
||||
<locationURI>ArduinoPinPath/micro</locationURI>
|
||||
</link>
|
||||
</linkedResources>
|
||||
<variableList>
|
||||
<variable>
|
||||
<name>ArduinoHardwareLibPath</name>
|
||||
<value>file:/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/libraries</value>
|
||||
</variable>
|
||||
<variable>
|
||||
<name>ArduinoPinPath</name>
|
||||
<value>file:/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/variants</value>
|
||||
</variable>
|
||||
<variable>
|
||||
<name>ArduinoPlatformPath</name>
|
||||
<value>file:/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr</value>
|
||||
</variable>
|
||||
</variableList>
|
||||
</projectDescription>
|
13
.settings/language.settings.xml
Normal file
13
.settings/language.settings.xml
Normal file
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<project>
|
||||
<configuration id="it.baeyens.arduino.core.toolChain.release.1766021206" name="Release">
|
||||
<extension point="org.eclipse.cdt.core.LanguageSettingsProvider">
|
||||
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
|
||||
<provider class="it.baeyens.arduino.toolchain.ArduinoLanguageProvider" console="false" id="it.baeyens.arduino.languageSettingsProvider" keep-relative-paths="false" name="Arduino Compiler Settings" parameter="${COMMAND} -E -P -v -dD ${INPUTS}" prefer-non-shared="true">
|
||||
<language-scope id="org.eclipse.cdt.core.gcc"/>
|
||||
<language-scope id="org.eclipse.cdt.core.g++"/>
|
||||
</provider>
|
||||
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
|
||||
</extension>
|
||||
</configuration>
|
||||
</project>
|
297
.settings/org.eclipse.cdt.core.prefs
Normal file
297
.settings/org.eclipse.cdt.core.prefs
Normal file
@ -0,0 +1,297 @@
|
||||
eclipse.preferences.version=1
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.ARCHIVE_FILE/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.ARCHIVE_FILE/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.ARCHIVE_FILE/value=arduino.ar
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BOOTLOADER.EXTENDED_FUSES/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BOOTLOADER.EXTENDED_FUSES/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BOOTLOADER.EXTENDED_FUSES/value=0xcb
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BOOTLOADER.FILE/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BOOTLOADER.FILE/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BOOTLOADER.FILE/value=caterina/Caterina-Micro.hex
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BOOTLOADER.HIGH_FUSES/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BOOTLOADER.HIGH_FUSES/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BOOTLOADER.HIGH_FUSES/value=0xd8
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BOOTLOADER.LOCK_BITS/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BOOTLOADER.LOCK_BITS/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BOOTLOADER.LOCK_BITS/value=0x2F
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BOOTLOADER.LOW_FUSES/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BOOTLOADER.LOW_FUSES/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BOOTLOADER.LOW_FUSES/value=0xff
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BOOTLOADER.TOOL/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BOOTLOADER.TOOL/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BOOTLOADER.TOOL/value=avrdude
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BOOTLOADER.UNLOCK_BITS/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BOOTLOADER.UNLOCK_BITS/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BOOTLOADER.UNLOCK_BITS/value=0x3F
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BUILD.CORE/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BUILD.CORE/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BUILD.CORE/value=arduino
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BUILD.EXTRA_FLAGS/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BUILD.EXTRA_FLAGS/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BUILD.EXTRA_FLAGS/value=-DUSB_VID\=${A.BUILD.VID} -DUSB_PID\=${A.BUILD.PID}
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BUILD.F_CPU/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BUILD.F_CPU/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BUILD.F_CPU/value=16000000L
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BUILD.MCU/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BUILD.MCU/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BUILD.MCU/value=atmega32u4
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BUILD.PATH/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BUILD.PATH/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BUILD.PATH/value=${ProjDirPath}/${ConfigName}
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BUILD.PID/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BUILD.PID/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BUILD.PID/value=0x8037
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BUILD.PROJECT_NAME/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BUILD.PROJECT_NAME/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BUILD.PROJECT_NAME/value=${ProjName}
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BUILD.USE_ARCHIVER/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BUILD.USE_ARCHIVER/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BUILD.USE_ARCHIVER/value=true
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BUILD.VARIANT.PATH/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BUILD.VARIANT.PATH/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BUILD.VARIANT.PATH/value=/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/variants/${A.BUILD.VARIANT}
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BUILD.VARIANT/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BUILD.VARIANT/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BUILD.VARIANT/value=micro
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BUILD.VID/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BUILD.VID/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.BUILD.VID/value=0x2341
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.CMD.PATH/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.CMD.PATH/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.CMD.PATH/value=${A.TOOLS.AVRDUDE.CMD.PATH}
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.CMD/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.CMD/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.CMD/value=${A.TOOLS.BOSSAC.CMD}
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.COMPILER.AR.CMD/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.COMPILER.AR.CMD/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.COMPILER.AR.CMD/value=avr-ar
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.COMPILER.AR.FLAGS/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.COMPILER.AR.FLAGS/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.COMPILER.AR.FLAGS/value=rcs
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.COMPILER.C.CMD/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.COMPILER.C.CMD/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.COMPILER.C.CMD/value=avr-gcc
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.COMPILER.C.ELF.CMD/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.COMPILER.C.ELF.CMD/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.COMPILER.C.ELF.CMD/value=avr-gcc
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.COMPILER.C.ELF.FLAGS/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.COMPILER.C.ELF.FLAGS/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.COMPILER.C.ELF.FLAGS/value=-Os -Wl,--gc-sections
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.COMPILER.C.FLAGS/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.COMPILER.C.FLAGS/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.COMPILER.C.FLAGS/value=-c -g -Os -w -ffunction-sections -fdata-sections -MMD
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.COMPILER.CPP.CMD/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.COMPILER.CPP.CMD/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.COMPILER.CPP.CMD/value=avr-g++
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.COMPILER.CPP.FLAGS/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.COMPILER.CPP.FLAGS/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.COMPILER.CPP.FLAGS/value=-c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.COMPILER.ELF2HEX.CMD/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.COMPILER.ELF2HEX.CMD/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.COMPILER.ELF2HEX.CMD/value=avr-objcopy
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.COMPILER.ELF2HEX.FLAGS/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.COMPILER.ELF2HEX.FLAGS/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.COMPILER.ELF2HEX.FLAGS/value=-O ihex -R .eeprom
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.COMPILER.LDFLAGS/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.COMPILER.LDFLAGS/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.COMPILER.LDFLAGS/value=
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.COMPILER.OBJCOPY.CMD/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.COMPILER.OBJCOPY.CMD/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.COMPILER.OBJCOPY.CMD/value=avr-objcopy
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.COMPILER.OBJCOPY.EEP.FLAGS/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.COMPILER.OBJCOPY.EEP.FLAGS/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.COMPILER.OBJCOPY.EEP.FLAGS/value=-O ihex -j .eeprom --set-section-flags\=.eeprom\=alloc,load --no-change-warnings --change-section-lma .eeprom\=0
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.COMPILER.PATH/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.COMPILER.PATH/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.COMPILER.PATH/value=${A.RUNTIME.IDE.PATH}/hardware/tools/avr/bin/
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.COMPILER.S.FLAGS/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.COMPILER.S.FLAGS/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.COMPILER.S.FLAGS/value=-c -g -assembler-with-cpp
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.COMPILER.SIZE.CMD/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.COMPILER.SIZE.CMD/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.COMPILER.SIZE.CMD/value=avr-size
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.CONFIG.PATH/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.CONFIG.PATH/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.CONFIG.PATH/value=${A.TOOLS.AVRDUDE.CONFIG.PATH}
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.NAME/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.NAME/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.NAME/value=Arduino Micro
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.PATH/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.PATH/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.PATH/value=${A.TOOLS.BOSSAC.PATH}
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.AR.PATTERN.1/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.AR.PATTERN.1/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.AR.PATTERN.1/value="${A.COMPILER.PATH}${A.COMPILER.AR.CMD}" ${A.COMPILER.AR.FLAGS} "${A.BUILD.PATH}/${A.ARCHIVE_FILE}"
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.AR.PATTERN.2/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.AR.PATTERN.2/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.AR.PATTERN.2/value=
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.AR.PATTERN/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.AR.PATTERN/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.AR.PATTERN/value="${A.COMPILER.PATH}${A.COMPILER.AR.CMD}" ${A.COMPILER.AR.FLAGS} "${A.BUILD.PATH}/${A.ARCHIVE_FILE}" "${A.OBJECT_FILE}"
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.C.COMBINE.PATTERN.1/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.C.COMBINE.PATTERN.1/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.C.COMBINE.PATTERN.1/value="${A.COMPILER.PATH}${A.COMPILER.C.ELF.CMD}" ${A.COMPILER.C.ELF.FLAGS} -mmcu\=${A.BUILD.MCU} -o "${A.BUILD.PATH}/${A.BUILD.PROJECT_NAME}.elf"
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.C.COMBINE.PATTERN.2/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.C.COMBINE.PATTERN.2/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.C.COMBINE.PATTERN.2/value=\ "${A.BUILD.PATH}/${A.ARCHIVE_FILE}" "-L${A.BUILD.PATH}" -lm
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.C.COMBINE.PATTERN/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.C.COMBINE.PATTERN/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.C.COMBINE.PATTERN/value="${A.COMPILER.PATH}${A.COMPILER.C.ELF.CMD}" ${A.COMPILER.C.ELF.FLAGS} -mmcu\=${A.BUILD.MCU} -o "${A.BUILD.PATH}/${A.BUILD.PROJECT_NAME}.elf" ${A.OBJECT_FILES} "${A.BUILD.PATH}/${A.ARCHIVE_FILE}" "-L${A.BUILD.PATH}" -lm
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.C.O.PATTERN.1/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.C.O.PATTERN.1/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.C.O.PATTERN.1/value="${A.COMPILER.PATH}${A.COMPILER.C.CMD}" ${A.COMPILER.C.FLAGS} -mmcu\=${A.BUILD.MCU} -DF_CPU\=${A.BUILD.F_CPU} -D${A.SOFTWARE}\=${A.RUNTIME.IDE.VERSION} ${A.BUILD.EXTRA_FLAGS} ${A.INCLUDES}
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.C.O.PATTERN.2/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.C.O.PATTERN.2/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.C.O.PATTERN.2/value=\ -o
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.C.O.PATTERN.3/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.C.O.PATTERN.3/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.C.O.PATTERN.3/value=
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.C.O.PATTERN/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.C.O.PATTERN/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.C.O.PATTERN/value="${A.COMPILER.PATH}${A.COMPILER.C.CMD}" ${A.COMPILER.C.FLAGS} -mmcu\=${A.BUILD.MCU} -DF_CPU\=${A.BUILD.F_CPU} -D${A.SOFTWARE}\=${A.RUNTIME.IDE.VERSION} ${A.BUILD.EXTRA_FLAGS} ${A.INCLUDES} "${A.SOURCE_FILE}" -o "${A.OBJECT_FILE}"
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.CPP.O.PATTERN.1/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.CPP.O.PATTERN.1/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.CPP.O.PATTERN.1/value="${A.COMPILER.PATH}${A.COMPILER.CPP.CMD}" ${A.COMPILER.CPP.FLAGS} -mmcu\=${A.BUILD.MCU} -DF_CPU\=${A.BUILD.F_CPU} -D${A.SOFTWARE}\=${A.RUNTIME.IDE.VERSION} ${A.BUILD.EXTRA_FLAGS} ${A.INCLUDES}
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.CPP.O.PATTERN.2/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.CPP.O.PATTERN.2/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.CPP.O.PATTERN.2/value=\ -o
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.CPP.O.PATTERN.3/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.CPP.O.PATTERN.3/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.CPP.O.PATTERN.3/value=
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.CPP.O.PATTERN/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.CPP.O.PATTERN/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.CPP.O.PATTERN/value="${A.COMPILER.PATH}${A.COMPILER.CPP.CMD}" ${A.COMPILER.CPP.FLAGS} -mmcu\=${A.BUILD.MCU} -DF_CPU\=${A.BUILD.F_CPU} -D${A.SOFTWARE}\=${A.RUNTIME.IDE.VERSION} ${A.BUILD.EXTRA_FLAGS} ${A.INCLUDES} "${A.SOURCE_FILE}" -o "${A.OBJECT_FILE}"
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.OBJCOPY.EEP.PATTERN.1/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.OBJCOPY.EEP.PATTERN.1/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.OBJCOPY.EEP.PATTERN.1/value="${A.COMPILER.PATH}${A.COMPILER.OBJCOPY.CMD}" ${A.COMPILER.OBJCOPY.EEP.FLAGS} "${A.BUILD.PATH}/${A.BUILD.PROJECT_NAME}.elf" "${A.BUILD.PATH}/${A.BUILD.PROJECT_NAME}.eep"
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.OBJCOPY.EEP.PATTERN/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.OBJCOPY.EEP.PATTERN/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.OBJCOPY.EEP.PATTERN/value="${A.COMPILER.PATH}${A.COMPILER.OBJCOPY.CMD}" ${A.COMPILER.OBJCOPY.EEP.FLAGS} "${A.BUILD.PATH}/${A.BUILD.PROJECT_NAME}.elf" "${A.BUILD.PATH}/${A.BUILD.PROJECT_NAME}.eep"
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.OBJCOPY.HEX.PATTERN.1/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.OBJCOPY.HEX.PATTERN.1/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.OBJCOPY.HEX.PATTERN.1/value="${A.COMPILER.PATH}${A.COMPILER.ELF2HEX.CMD}" ${A.COMPILER.ELF2HEX.FLAGS} "${A.BUILD.PATH}/${A.BUILD.PROJECT_NAME}.elf" "${A.BUILD.PATH}/${A.BUILD.PROJECT_NAME}.hex"
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.OBJCOPY.HEX.PATTERN/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.OBJCOPY.HEX.PATTERN/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.OBJCOPY.HEX.PATTERN/value="${A.COMPILER.PATH}${A.COMPILER.ELF2HEX.CMD}" ${A.COMPILER.ELF2HEX.FLAGS} "${A.BUILD.PATH}/${A.BUILD.PROJECT_NAME}.elf" "${A.BUILD.PATH}/${A.BUILD.PROJECT_NAME}.hex"
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.SIZE.PATTERN.1/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.SIZE.PATTERN.1/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.SIZE.PATTERN.1/value="${A.COMPILER.PATH}${A.COMPILER.SIZE.CMD}" -A "${A.BUILD.PATH}/${A.BUILD.PROJECT_NAME}.hex"
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.SIZE.PATTERN/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.SIZE.PATTERN/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.SIZE.PATTERN/value="${A.COMPILER.PATH}${A.COMPILER.SIZE.CMD}" -A "${A.BUILD.PATH}/${A.BUILD.PROJECT_NAME}.hex"
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.SIZE.REGEX/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.SIZE.REGEX/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RECIPE.SIZE.REGEX/value=Total\\s+([0-9]+).*
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RUNTIME.IDE.PATH/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RUNTIME.IDE.PATH/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RUNTIME.IDE.PATH/value=/Applications/Arduino.app/Contents/Resources/Java
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RUNTIME.IDE.VERSION/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RUNTIME.IDE.VERSION/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.RUNTIME.IDE.VERSION/value=152
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.SOFTWARE/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.SOFTWARE/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.SOFTWARE/value=ARDUINO
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.TOOLS.AVRDUDE.BOOTLOADER.PARAMS.QUIET/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.TOOLS.AVRDUDE.BOOTLOADER.PARAMS.QUIET/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.TOOLS.AVRDUDE.BOOTLOADER.PARAMS.QUIET/value=-q -q
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.TOOLS.AVRDUDE.BOOTLOADER.PARAMS.VERBOSE/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.TOOLS.AVRDUDE.BOOTLOADER.PARAMS.VERBOSE/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.TOOLS.AVRDUDE.BOOTLOADER.PARAMS.VERBOSE/value=-v -v -v -v
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.TOOLS.AVRDUDE.BOOTLOADER.PATTERN/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.TOOLS.AVRDUDE.BOOTLOADER.PATTERN/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.TOOLS.AVRDUDE.BOOTLOADER.PATTERN/value="${A.CMD.PATH}" "-C${A.CONFIG.PATH}" ${A.BOOTLOADER.VERBOSE} -p${A.BUILD.MCU} -c${A.PROTOCOL} ${A.PROGRAM.EXTRA_PARAMS} "-Uflash\:w\:${A.RUNTIME.IDE.PATH}/hardware/arduino/avr/bootloaders/${A.BOOTLOADER.FILE}\:i" -Ulock\:w\:${A.BOOTLOADER.LOCK_BITS}\:m
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.TOOLS.AVRDUDE.CMD.PATH.LINUX/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.TOOLS.AVRDUDE.CMD.PATH.LINUX/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.TOOLS.AVRDUDE.CMD.PATH.LINUX/value=${A.RUNTIME.IDE.PATH}/hardware/tools/avrdude
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.TOOLS.AVRDUDE.CMD.PATH/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.TOOLS.AVRDUDE.CMD.PATH/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.TOOLS.AVRDUDE.CMD.PATH/value=${A.RUNTIME.IDE.PATH}/hardware/tools/avr/bin/avrdude
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.TOOLS.AVRDUDE.CONFIG.PATH.LINUX/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.TOOLS.AVRDUDE.CONFIG.PATH.LINUX/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.TOOLS.AVRDUDE.CONFIG.PATH.LINUX/value=${A.RUNTIME.IDE.PATH}/hardware/tools/avrdude.conf
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.TOOLS.AVRDUDE.CONFIG.PATH/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.TOOLS.AVRDUDE.CONFIG.PATH/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.TOOLS.AVRDUDE.CONFIG.PATH/value=${A.RUNTIME.IDE.PATH}/hardware/tools/avr/etc/avrdude.conf
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.TOOLS.AVRDUDE.ERASE.PARAMS.QUIET/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.TOOLS.AVRDUDE.ERASE.PARAMS.QUIET/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.TOOLS.AVRDUDE.ERASE.PARAMS.QUIET/value=-q -q
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.TOOLS.AVRDUDE.ERASE.PARAMS.VERBOSE/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.TOOLS.AVRDUDE.ERASE.PARAMS.VERBOSE/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.TOOLS.AVRDUDE.ERASE.PARAMS.VERBOSE/value=-v -v -v -v
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.TOOLS.AVRDUDE.ERASE.PATTERN/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.TOOLS.AVRDUDE.ERASE.PATTERN/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.TOOLS.AVRDUDE.ERASE.PATTERN/value="${A.CMD.PATH}" "-C${A.CONFIG.PATH}" ${A.ERASE.VERBOSE} -p${A.BUILD.MCU} -c${A.PROTOCOL} ${A.PROGRAM.EXTRA_PARAMS} -e -Ulock\:w\:${A.BOOTLOADER.UNLOCK_BITS}\:m -Uefuse\:w\:${A.BOOTLOADER.EXTENDED_FUSES}\:m -Uhfuse\:w\:${A.BOOTLOADER.HIGH_FUSES}\:m -Ulfuse\:w\:${A.BOOTLOADER.LOW_FUSES}\:m
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.TOOLS.AVRDUDE.PROGRAM.PARAMS.QUIET/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.TOOLS.AVRDUDE.PROGRAM.PARAMS.QUIET/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.TOOLS.AVRDUDE.PROGRAM.PARAMS.QUIET/value=-q -q
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.TOOLS.AVRDUDE.PROGRAM.PARAMS.VERBOSE/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.TOOLS.AVRDUDE.PROGRAM.PARAMS.VERBOSE/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.TOOLS.AVRDUDE.PROGRAM.PARAMS.VERBOSE/value=-v -v -v -v
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.TOOLS.AVRDUDE.PROGRAM.PATTERN/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.TOOLS.AVRDUDE.PROGRAM.PATTERN/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.TOOLS.AVRDUDE.PROGRAM.PATTERN/value="${A.CMD.PATH}" "-C${A.CONFIG.PATH}" ${A.PROGRAM.VERBOSE} -p${A.BUILD.MCU} -c${A.PROTOCOL} ${A.PROGRAM.EXTRA_PARAMS} "-Uflash\:w\:${A.BUILD.PATH}/${A.BUILD.PROJECT_NAME}.hex\:i"
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.TOOLS.AVRDUDE.UPLOAD.PARAMS.QUIET/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.TOOLS.AVRDUDE.UPLOAD.PARAMS.QUIET/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.TOOLS.AVRDUDE.UPLOAD.PARAMS.QUIET/value=-q -q
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.TOOLS.AVRDUDE.UPLOAD.PARAMS.VERBOSE/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.TOOLS.AVRDUDE.UPLOAD.PARAMS.VERBOSE/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.TOOLS.AVRDUDE.UPLOAD.PARAMS.VERBOSE/value=-v -v -v -v
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.TOOLS.AVRDUDE.UPLOAD.PATTERN/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.TOOLS.AVRDUDE.UPLOAD.PATTERN/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.TOOLS.AVRDUDE.UPLOAD.PATTERN/value="${A.CMD.PATH}" "-C${A.CONFIG.PATH}" ${A.UPLOAD.VERBOSE} -p${A.BUILD.MCU} -c${A.UPLOAD.PROTOCOL} -P${A.SERIAL.PORT} -b${A.UPLOAD.SPEED} -D "-Uflash\:w\:${A.BUILD.PATH}/${A.BUILD.PROJECT_NAME}.hex\:i"
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.UPLOAD.DISABLE_FLUSHING/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.UPLOAD.DISABLE_FLUSHING/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.UPLOAD.DISABLE_FLUSHING/value=true
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.UPLOAD.MAXIMUM_SIZE/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.UPLOAD.MAXIMUM_SIZE/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.UPLOAD.MAXIMUM_SIZE/value=28672
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.UPLOAD.PROTOCOL/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.UPLOAD.PROTOCOL/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.UPLOAD.PROTOCOL/value=avr109
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.UPLOAD.SPEED/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.UPLOAD.SPEED/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.UPLOAD.SPEED/value=57600
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.UPLOAD.TOOL/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.UPLOAD.TOOL/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.UPLOAD.TOOL/value=avrdude
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.UPLOAD.USE_1200BPS_TOUCH/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.UPLOAD.USE_1200BPS_TOUCH/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.UPLOAD.USE_1200BPS_TOUCH/value=true
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.UPLOAD.WAIT_FOR_UPLOAD_PORT/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.UPLOAD.WAIT_FOR_UPLOAD_PORT/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/A.UPLOAD.WAIT_FOR_UPLOAD_PORT/value=true
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/JANTJE.BOARDS_FILE/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/JANTJE.BOARDS_FILE/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/JANTJE.BOARDS_FILE/value=/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/boards.txt
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/JANTJE.BOARD_NAME/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/JANTJE.BOARD_NAME/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/JANTJE.BOARD_NAME/value=Arduino Micro
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/JANTJE.COM_PORT/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/JANTJE.COM_PORT/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/JANTJE.COM_PORT/value=/dev/tty.usbmodemfd111
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/JANTJE.EXTRA.C.COMPILE/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/JANTJE.EXTRA.C.COMPILE/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/JANTJE.EXTRA.C.COMPILE/value=
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/JANTJE.EXTRA.COMPILE/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/JANTJE.EXTRA.COMPILE/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/JANTJE.EXTRA.COMPILE/value=
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/JANTJE.EXTRA.CPP.COMPILE/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/JANTJE.EXTRA.CPP.COMPILE/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/JANTJE.EXTRA.CPP.COMPILE/value=
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/JANTJE.PLATFORM_FILE/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/JANTJE.PLATFORM_FILE/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/JANTJE.PLATFORM_FILE/value=/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/platform.txt
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/JANTJE.Processor/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/JANTJE.Processor/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/JANTJE.Processor/value=
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/JANTJE.SIZE.SWITCH/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/JANTJE.SIZE.SWITCH/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/JANTJE.SIZE.SWITCH/value=${A.RECIPE.SIZE.PATTERN}
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/JANTJE.SIZE_COMMAND/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/JANTJE.SIZE_COMMAND/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/JANTJE.SIZE_COMMAND/value="${A.COMPILER.PATH}${A.COMPILER.SIZE.CMD}" --format\=avr --mcu\=${A.BUILD.MCU} "${A.BUILD.PATH}/${A.BUILD.PROJECT_NAME}.elf"
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/PATH/delimiter=\:
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/PATH/operation=replace
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/PATH/value=${A.COMPILER.PATH}${PathDelimiter}${A.BUILD.GENERIC.PATH}${PathDelimiter}${PATH}
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/append=true
|
||||
environment/project/it.baeyens.arduino.core.toolChain.release.1766021206/appendContributed=true
|
419
AD7190.cpp
Normal file
419
AD7190.cpp
Normal file
@ -0,0 +1,419 @@
|
||||
/***************************************************************************//**
|
||||
* @file AD7190.c
|
||||
* @brief Implementation of AD7190 Driver.
|
||||
* @author DNechita (Dan.Nechita@analog.com)
|
||||
********************************************************************************
|
||||
* Copyright 2012(c) Analog Devices, Inc.
|
||||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
* - Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* - Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in
|
||||
* the documentation and/or other materials provided with the
|
||||
* distribution.
|
||||
* - Neither the name of Analog Devices, Inc. nor the names of its
|
||||
* contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
* - The use of this software may or may not infringe the patent rights
|
||||
* of one or more patent holders. This license does not release you
|
||||
* from the requirement that you obtain separate licenses from these
|
||||
* patent holders to use this software.
|
||||
* - Use of the software either in source or binary form, must be run
|
||||
* on or directly connected to an Analog Devices Inc. component.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR
|
||||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT,
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
* IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
* LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
********************************************************************************
|
||||
* SVN Revision: 903
|
||||
*******************************************************************************/
|
||||
|
||||
|
||||
/******************************************************************************/
|
||||
/***************************** Include Files **********************************/
|
||||
/******************************************************************************/
|
||||
#include "AD7190.h" // AD7190 definitions.
|
||||
|
||||
|
||||
|
||||
void SPI_Init() {
|
||||
SPI.begin();
|
||||
// SPI_Init(0, 1000000, 1, 0);
|
||||
SPI.setBitOrder(MSBFIRST);
|
||||
SPI.setClockDivider(SPI_CLOCK_DIV64);
|
||||
SPI.setDataMode(SPI_MODE3);
|
||||
|
||||
pinMode(AD7190_SLAVE_ID, OUTPUT);
|
||||
}
|
||||
|
||||
inline void SPI_Enable(unsigned char csPin) {
|
||||
if (csPin != 0) {
|
||||
digitalWrite(csPin, LOW);
|
||||
}
|
||||
}
|
||||
|
||||
inline void SPI_Disable(unsigned char csPin) {
|
||||
if (csPin != 0) {
|
||||
digitalWrite(csPin, HIGH);
|
||||
}
|
||||
}
|
||||
|
||||
unsigned char SPI_Read(unsigned char csPin,
|
||||
unsigned char* data,
|
||||
unsigned char bytesNumber) {
|
||||
SPI_Enable(csPin);
|
||||
|
||||
for (unsigned char byte = 0; byte < bytesNumber; byte++)
|
||||
{
|
||||
data[byte] = SPI.transfer(data[byte]);
|
||||
}
|
||||
|
||||
SPI_Disable(csPin);
|
||||
return 0;
|
||||
}
|
||||
|
||||
unsigned char SPI_Write(unsigned char csPin,
|
||||
unsigned char* data,
|
||||
unsigned char bytesNumber) {
|
||||
SPI_Enable(csPin);
|
||||
|
||||
for(unsigned char byte = 0; byte < bytesNumber; byte++)
|
||||
{
|
||||
SPI.transfer(data[byte]);
|
||||
}
|
||||
|
||||
SPI_Disable(csPin);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/***************************************************************************//**
|
||||
* @brief Writes data into a register.
|
||||
*
|
||||
* @param registerAddress - Address of the register.
|
||||
* @param registerValue - Data value to write.
|
||||
* @param bytesNumber - Number of bytes to be written.
|
||||
* @param modifyCS - Allows Chip Select to be modified.
|
||||
*
|
||||
* @return none.
|
||||
*******************************************************************************/
|
||||
void AD7190_SetRegisterValue(unsigned char registerAddress,
|
||||
unsigned long registerValue,
|
||||
unsigned char bytesNumber,
|
||||
unsigned char modifyCS)
|
||||
{
|
||||
// Serial.print("set: ");
|
||||
// Serial.print(registerAddress, 16); Serial.print(", ");
|
||||
// Serial.print(registerValue, 16); Serial.print(", ");
|
||||
// Serial.print(bytesNumber);
|
||||
// Serial.println();
|
||||
|
||||
unsigned char writeCommand[5] = {0, 0, 0, 0, 0};
|
||||
unsigned char* dataPointer = (unsigned char*)®isterValue;
|
||||
unsigned char bytesNr = bytesNumber;
|
||||
|
||||
writeCommand[0] = AD7190_COMM_WRITE |
|
||||
AD7190_COMM_ADDR(registerAddress);
|
||||
while(bytesNr > 0)
|
||||
{
|
||||
writeCommand[bytesNr] = *dataPointer;
|
||||
dataPointer ++;
|
||||
bytesNr --;
|
||||
}
|
||||
SPI_Write(AD7190_SLAVE_ID * modifyCS, writeCommand, bytesNumber + 1);
|
||||
}
|
||||
|
||||
/***************************************************************************//**
|
||||
* @brief Reads the value of a register.
|
||||
*
|
||||
* @param registerAddress - Address of the register.
|
||||
* @param bytesNumber - Number of bytes that will be read.
|
||||
* @param modifyCS - Allows Chip Select to be modified.
|
||||
*
|
||||
* @return buffer - Value of the register.
|
||||
*******************************************************************************/
|
||||
unsigned long AD7190_GetRegisterValue(unsigned char registerAddress,
|
||||
unsigned char bytesNumber,
|
||||
unsigned char modifyCS)
|
||||
{
|
||||
// Serial.print("get: ");
|
||||
// Serial.print(registerAddress, 16); Serial.print(", ");
|
||||
// Serial.print(bytesNumber);
|
||||
|
||||
unsigned char registerWord[5] = {0, 0, 0, 0, 0};
|
||||
unsigned long buffer = 0x0;
|
||||
unsigned char i = 0;
|
||||
|
||||
registerWord[0] = AD7190_COMM_READ |
|
||||
AD7190_COMM_ADDR(registerAddress);
|
||||
SPI_Read(AD7190_SLAVE_ID * modifyCS, registerWord, bytesNumber + 1);
|
||||
for(i = 1; i < bytesNumber + 1; i++)
|
||||
{
|
||||
buffer = (buffer << 8) + registerWord[i];
|
||||
}
|
||||
|
||||
// Serial.print(buffer, 16); Serial.print(", ");
|
||||
// Serial.println();
|
||||
|
||||
return buffer;
|
||||
}
|
||||
|
||||
/***************************************************************************//**
|
||||
* @brief Checks if the AD7190 part is present.
|
||||
*
|
||||
* @return status - Indicates if the part is present or not.
|
||||
*******************************************************************************/
|
||||
unsigned char AD7190_Init(void)
|
||||
{
|
||||
unsigned char status = 1;
|
||||
unsigned char regVal = 0;
|
||||
|
||||
//SPI_Init(0, 1000000, 1, 0);
|
||||
SPI_Init();
|
||||
|
||||
|
||||
AD7190_Reset();
|
||||
/* Allow at least 500 us before accessing any of the on-chip registers. */
|
||||
// TIME_DelayMs(1);
|
||||
delay(1); // arduino function
|
||||
regVal = AD7190_GetRegisterValue(AD7190_REG_ID, 1, 1);
|
||||
Serial.print(String("regVal: ") + regVal + "\n");
|
||||
if( (regVal & AD7190_ID_MASK) != ID_AD7190)
|
||||
{
|
||||
status = 0;
|
||||
}
|
||||
return status ;
|
||||
}
|
||||
|
||||
/***************************************************************************//**
|
||||
* @brief Resets the device.
|
||||
*
|
||||
* @return none.
|
||||
*******************************************************************************/
|
||||
void AD7190_Reset(void)
|
||||
{
|
||||
unsigned char registerWord[7];
|
||||
|
||||
registerWord[0] = 0x01;
|
||||
registerWord[1] = 0xFF;
|
||||
registerWord[2] = 0xFF;
|
||||
registerWord[3] = 0xFF;
|
||||
registerWord[4] = 0xFF;
|
||||
registerWord[5] = 0xFF;
|
||||
registerWord[6] = 0xFF;
|
||||
SPI_Write(AD7190_SLAVE_ID, registerWord, 7);
|
||||
}
|
||||
|
||||
/***************************************************************************//**
|
||||
* @brief Set device to idle or power-down.
|
||||
*
|
||||
* @param pwrMode - Selects idle mode or power-down mode.
|
||||
* Example: 0 - power-down
|
||||
* 1 - idle
|
||||
*
|
||||
* @return none.
|
||||
*******************************************************************************/
|
||||
void AD7190_SetPower(unsigned char pwrMode)
|
||||
{
|
||||
unsigned long oldPwrMode = 0x0;
|
||||
unsigned long newPwrMode = 0x0;
|
||||
|
||||
oldPwrMode = AD7190_GetRegisterValue(AD7190_REG_MODE, 3, 1);
|
||||
oldPwrMode &= ~(AD7190_MODE_SEL(0x7));
|
||||
newPwrMode = oldPwrMode |
|
||||
AD7190_MODE_SEL((pwrMode * (AD7190_MODE_IDLE)) |
|
||||
(!pwrMode * (AD7190_MODE_PWRDN)));
|
||||
AD7190_SetRegisterValue(AD7190_REG_MODE, newPwrMode, 3, 1);
|
||||
}
|
||||
|
||||
/***************************************************************************//**
|
||||
* @brief Waits for RDY pin to go low.
|
||||
*
|
||||
* @return none.
|
||||
*******************************************************************************/
|
||||
void AD7190_WaitRdyGoLow(void)
|
||||
{
|
||||
unsigned long timeOutCnt = 0xFFFFF;
|
||||
|
||||
// while(AD7190_RDY_STATE && timeOutCnt--)
|
||||
int miso = 0;
|
||||
while ((miso = digitalRead(MISO)) && timeOutCnt--)
|
||||
{
|
||||
;
|
||||
}
|
||||
}
|
||||
|
||||
/***************************************************************************//**
|
||||
* @brief Selects the channel to be enabled.
|
||||
*
|
||||
* @param channel - Selects a channel.
|
||||
*
|
||||
* @return none.
|
||||
*******************************************************************************/
|
||||
void AD7190_ChannelSelect(unsigned short channel)
|
||||
{
|
||||
unsigned long oldRegValue = 0x0;
|
||||
unsigned long newRegValue = 0x0;
|
||||
|
||||
oldRegValue = AD7190_GetRegisterValue(AD7190_REG_CONF, 3, 1);
|
||||
oldRegValue &= ~(AD7190_CONF_CHAN(0xFF));
|
||||
newRegValue = oldRegValue | AD7190_CONF_CHAN(1 << channel);
|
||||
AD7190_SetRegisterValue(AD7190_REG_CONF, newRegValue, 3, 1);
|
||||
}
|
||||
|
||||
/***************************************************************************//**
|
||||
* @brief Performs the given calibration to the specified channel.
|
||||
*
|
||||
* @param mode - Calibration type.
|
||||
* @param channel - Channel to be calibrated.
|
||||
*
|
||||
* @return none.
|
||||
*******************************************************************************/
|
||||
void AD7190_Calibrate(unsigned char mode, unsigned char channel)
|
||||
{
|
||||
unsigned long oldRegValue = 0x0;
|
||||
unsigned long newRegValue = 0x0;
|
||||
|
||||
AD7190_ChannelSelect(channel);
|
||||
oldRegValue = AD7190_GetRegisterValue(AD7190_REG_MODE, 3, 1);
|
||||
oldRegValue &= ~AD7190_MODE_SEL(0x7);
|
||||
newRegValue = oldRegValue | AD7190_MODE_SEL(mode);
|
||||
//ADI_PART_CS_LOW;
|
||||
SPI_Enable(AD7190_SLAVE_ID);
|
||||
AD7190_SetRegisterValue(AD7190_REG_MODE, newRegValue, 3, 0); // CS is not modified.
|
||||
AD7190_WaitRdyGoLow();
|
||||
//ADI_PART_CS_HIGH;
|
||||
SPI_Disable(AD7190_SLAVE_ID);
|
||||
}
|
||||
|
||||
/***************************************************************************//**
|
||||
* @brief Selects the polarity of the conversion and the ADC input range.
|
||||
*
|
||||
* @param polarity - Polarity select bit.
|
||||
Example: 0 - bipolar operation is selected.
|
||||
1 - unipolar operation is selected.
|
||||
* @param range - Gain select bits. These bits are written by the user to select
|
||||
the ADC input range.
|
||||
*
|
||||
* @return none.
|
||||
*******************************************************************************/
|
||||
void AD7190_RangeSetup(unsigned char polarity, unsigned char range)
|
||||
{
|
||||
unsigned long oldRegValue = 0x0;
|
||||
unsigned long newRegValue = 0x0;
|
||||
|
||||
oldRegValue = AD7190_GetRegisterValue(AD7190_REG_CONF,3, 1);
|
||||
oldRegValue &= ~(AD7190_CONF_UNIPOLAR |
|
||||
AD7190_CONF_GAIN(0x7));
|
||||
newRegValue = oldRegValue |
|
||||
(polarity * AD7190_CONF_UNIPOLAR) |
|
||||
AD7190_CONF_GAIN(range);
|
||||
AD7190_SetRegisterValue(AD7190_REG_CONF, newRegValue, 3, 1);
|
||||
}
|
||||
|
||||
/***************************************************************************//**
|
||||
* @brief Returns the result of a single conversion.
|
||||
*
|
||||
* @return regData - Result of a single analog-to-digital conversion.
|
||||
*******************************************************************************/
|
||||
unsigned long AD7190_SingleConversion(void)
|
||||
{
|
||||
unsigned long command = 0x0;
|
||||
unsigned long regData = 0x0;
|
||||
|
||||
command = (((1L) & 0x7) << 21);
|
||||
// Serial.print("Command1: ");
|
||||
// Serial.println(command, 16);
|
||||
command |= (((2L) & 0x3) << 18);
|
||||
// Serial.print("Command2: ");
|
||||
// Serial.println(command, 16);
|
||||
command |= ((0x060) & 0x3FF);
|
||||
// Serial.print("Command3: ");
|
||||
// Serial.println(command, 16);
|
||||
|
||||
//command = AD7190_MODE_SEL(AD7190_MODE_SINGLE) |
|
||||
// AD7190_MODE_CLKSRC(AD7190_CLK_INT_CO) |
|
||||
// AD7190_MODE_RATE(0x060);
|
||||
//Serial.print("Command: ");
|
||||
//Serial.println(command, 16);
|
||||
|
||||
|
||||
//ADI_PART_CS_LOW;
|
||||
SPI_Enable(AD7190_SLAVE_ID);
|
||||
AD7190_SetRegisterValue(AD7190_REG_MODE, command, 3, 0); // CS is not modified.
|
||||
AD7190_WaitRdyGoLow();
|
||||
regData = AD7190_GetRegisterValue(AD7190_REG_DATA, 3, 0);
|
||||
//Serial.print("result: ");
|
||||
//Serial.println(regData, 16);
|
||||
//ADI_PART_CS_HIGH;
|
||||
SPI_Disable(AD7190_SLAVE_ID);
|
||||
|
||||
return regData;
|
||||
}
|
||||
|
||||
/***************************************************************************//**
|
||||
* @brief Returns the average of several conversion results.
|
||||
*
|
||||
* @return samplesAverage - The average of the conversion results.
|
||||
*******************************************************************************/
|
||||
unsigned long AD7190_ContinuousReadAvg(unsigned char sampleNumber)
|
||||
{
|
||||
unsigned long samplesAverage = 0x0;
|
||||
unsigned char count = 0x0;
|
||||
unsigned long command = 0x0;
|
||||
|
||||
command = AD7190_MODE_SEL(AD7190_MODE_CONT) |
|
||||
AD7190_MODE_CLKSRC(AD7190_CLK_INT) |
|
||||
AD7190_MODE_RATE(0x060);
|
||||
//ADI_PART_CS_LOW;
|
||||
SPI_Enable(AD7190_SLAVE_ID);
|
||||
AD7190_SetRegisterValue(AD7190_REG_MODE, command, 3, 0); // CS is not modified.
|
||||
for(count = 0;count < sampleNumber;count ++)
|
||||
{
|
||||
AD7190_WaitRdyGoLow();
|
||||
unsigned long tmp = AD7190_GetRegisterValue(AD7190_REG_DATA, 3, 0); // CS is not modified.
|
||||
Serial.println(tmp);
|
||||
samplesAverage += tmp;
|
||||
|
||||
}
|
||||
//ADI_PART_CS_HIGH;
|
||||
SPI_Disable(AD7190_SLAVE_ID);
|
||||
samplesAverage = samplesAverage / sampleNumber;
|
||||
|
||||
return samplesAverage ;
|
||||
}
|
||||
|
||||
/***************************************************************************//**
|
||||
* @brief Read data from temperature sensor and converts it to Celsius degrees.
|
||||
*
|
||||
* @return temperature - Celsius degrees.
|
||||
*******************************************************************************/
|
||||
unsigned long AD7190_TemperatureRead(void)
|
||||
{
|
||||
unsigned char temperature = 0x0;
|
||||
unsigned long dataReg = 0x0;
|
||||
|
||||
AD7190_RangeSetup(0, AD7190_CONF_GAIN_1);
|
||||
AD7190_ChannelSelect(AD7190_CH_TEMP_SENSOR);
|
||||
dataReg = AD7190_SingleConversion();
|
||||
dataReg -= 0x800000;
|
||||
dataReg /= 2815; // Kelvin Temperature
|
||||
dataReg -= 273; //Celsius Temperature
|
||||
temperature = (unsigned long) dataReg;
|
||||
|
||||
return temperature;
|
||||
}
|
||||
|
214
AD7190.h
Normal file
214
AD7190.h
Normal file
@ -0,0 +1,214 @@
|
||||
/***************************************************************************//**
|
||||
* @file AD7190.h
|
||||
* @brief Header file of AD7190 Driver.
|
||||
* @author DNechita (Dan.Nechita@analog.com)
|
||||
********************************************************************************
|
||||
* Copyright 2012(c) Analog Devices, Inc.
|
||||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
* - Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* - Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in
|
||||
* the documentation and/or other materials provided with the
|
||||
* distribution.
|
||||
* - Neither the name of Analog Devices, Inc. nor the names of its
|
||||
* contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
* - The use of this software may or may not infringe the patent rights
|
||||
* of one or more patent holders. This license does not release you
|
||||
* from the requirement that you obtain separate licenses from these
|
||||
* patent holders to use this software.
|
||||
* - Use of the software either in source or binary form, must be run
|
||||
* on or directly connected to an Analog Devices Inc. component.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR
|
||||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT,
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
* IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
* LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
********************************************************************************
|
||||
* SVN Revision: 903
|
||||
*******************************************************************************/
|
||||
|
||||
#ifndef __AD7190_H__
|
||||
#define __AD7190_H__
|
||||
|
||||
|
||||
|
||||
/******************************************************************************/
|
||||
/***************************** Include Files **********************************/
|
||||
/******************************************************************************/
|
||||
|
||||
#include <Arduino.h>
|
||||
#include <SPI.h>
|
||||
|
||||
|
||||
/******************************************************************************/
|
||||
/******************************** AD7190 **************************************/
|
||||
/******************************************************************************/
|
||||
|
||||
/* SPI slave device ID */
|
||||
//#define AD7190_SLAVE_ID 1
|
||||
#define AD7190_SLAVE_ID 10
|
||||
|
||||
/* AD7190 GPIO */
|
||||
#define AD7190_RDY_STATE GPIO1_STATE
|
||||
|
||||
/* AD7190 Register Map */
|
||||
#define AD7190_REG_COMM 0 // Communications Register (WO, 8-bit)
|
||||
#define AD7190_REG_STAT 0 // Status Register (RO, 8-bit)
|
||||
#define AD7190_REG_MODE 1 // Mode Register (RW, 24-bit
|
||||
#define AD7190_REG_CONF 2 // Configuration Register (RW, 24-bit)
|
||||
#define AD7190_REG_DATA 3 // Data Register (RO, 24/32-bit)
|
||||
#define AD7190_REG_ID 4 // ID Register (RO, 8-bit)
|
||||
#define AD7190_REG_GPOCON 5 // GPOCON Register (RW, 8-bit)
|
||||
#define AD7190_REG_OFFSET 6 // Offset Register (RW, 24-bit
|
||||
#define AD7190_REG_FULLSCALE 7 // Full-Scale Register (RW, 24-bit)
|
||||
|
||||
/* Communications Register Bit Designations (AD7190_REG_COMM) */
|
||||
#define AD7190_COMM_WEN (1 << 7) // Write Enable.
|
||||
#define AD7190_COMM_WRITE (0 << 6) // Write Operation.
|
||||
#define AD7190_COMM_READ (1 << 6) // Read Operation.
|
||||
#define AD7190_COMM_ADDR(x) (((x) & 0x7) << 3) // Register Address.
|
||||
#define AD7190_COMM_CREAD (1 << 2) // Continuous Read of Data Register.
|
||||
|
||||
/* Status Register Bit Designations (AD7190_REG_STAT) */
|
||||
#define AD7190_STAT_RDY (1 << 7) // Ready.
|
||||
#define AD7190_STAT_ERR (1 << 6) // ADC error bit.
|
||||
#define AD7190_STAT_NOREF (1 << 5) // Error no external reference.
|
||||
#define AD7190_STAT_PARITY (1 << 4) // Parity check of the data register.
|
||||
#define AD7190_STAT_CH2 (1 << 2) // Channel 2.
|
||||
#define AD7190_STAT_CH1 (1 << 1) // Channel 1.
|
||||
#define AD7190_STAT_CH0 (1 << 0) // Channel 0.
|
||||
|
||||
/* Mode Register Bit Designations (AD7190_REG_MODE) */
|
||||
#define AD7190_MODE_SEL(x) (((x) & 0x7) << 21) // Operation Mode Select.
|
||||
#define AD7190_MODE_DAT_STA (1 << 20) // Status Register transmission.
|
||||
#define AD7190_MODE_CLKSRC(x) (((x) & 0x3) << 18) // Clock Source Select.
|
||||
#define AD7190_MODE_SINC3 (1 << 15) // SINC3 Filter Select.
|
||||
#define AD7190_MODE_ENPAR (1 << 13) // Parity Enable.
|
||||
#define AD7190_MODE_SCYCLE (1 << 11) // Single cycle conversion.
|
||||
#define AD7190_MODE_REJ60 (1 << 10) // 50/60Hz notch filter.
|
||||
#define AD7190_MODE_RATE(x) ((x) & 0x3FF) // Filter Update Rate Select.
|
||||
|
||||
/* Mode Register: AD7190_MODE_SEL(x) options */
|
||||
#define AD7190_MODE_CONT 0 // Continuous Conversion Mode.
|
||||
#define AD7190_MODE_SINGLE 1 // Single Conversion Mode.
|
||||
#define AD7190_MODE_IDLE 2 // Idle Mode.
|
||||
#define AD7190_MODE_PWRDN 3 // Power-Down Mode.
|
||||
#define AD7190_MODE_CAL_INT_ZERO 4 // Internal Zero-Scale Calibration.
|
||||
#define AD7190_MODE_CAL_INT_FULL 5 // Internal Full-Scale Calibration.
|
||||
#define AD7190_MODE_CAL_SYS_ZERO 6 // System Zero-Scale Calibration.
|
||||
#define AD7190_MODE_CAL_SYS_FULL 7 // System Full-Scale Calibration.
|
||||
|
||||
/* Mode Register: AD7190_MODE_CLKSRC(x) options */
|
||||
#define AD7190_CLK_EXT_MCLK1_2 0 // External crystal. The external crystal
|
||||
// is connected from MCLK1 to MCLK2.
|
||||
#define AD7190_CLK_EXT_MCLK2 1 // External Clock applied to MCLK2
|
||||
#define AD7190_CLK_INT 2 // Internal 4.92 MHz clock.
|
||||
// Pin MCLK2 is tristated.
|
||||
#define AD7190_CLK_INT_CO 3 // Internal 4.92 MHz clock. The internal
|
||||
// clock is available on MCLK2.
|
||||
|
||||
/* Configuration Register Bit Designations (AD7190_REG_CONF) */
|
||||
#define AD7190_CONF_CHOP (1 << 23) // CHOP enable.
|
||||
#define AD7190_CONF_REFSEL (1 << 20) // REFIN1/REFIN2 Reference Select.
|
||||
#define AD7190_CONF_CHAN(x) (((x) & 0xFF) << 8) // Channel select.
|
||||
#define AD7190_CONF_BURN (1 << 7) // Burnout current enable.
|
||||
#define AD7190_CONF_REFDET (1 << 6) // Reference detect enable.
|
||||
#define AD7190_CONF_BUF (1 << 4) // Buffered Mode Enable.
|
||||
#define AD7190_CONF_UNIPOLAR (1 << 3) // Unipolar/Bipolar Enable.
|
||||
#define AD7190_CONF_GAIN(x) ((x) & 0x7) // Gain Select.
|
||||
|
||||
/* Configuration Register: AD7190_CONF_CHAN(x) options */
|
||||
#define AD7190_CH_AIN1P_AIN2M 0 // AIN1(+) - AIN2(-)
|
||||
#define AD7190_CH_AIN3P_AIN4M 1 // AIN3(+) - AIN4(-)
|
||||
#define AD7190_CH_TEMP_SENSOR 2 // Temperature sensor
|
||||
#define AD7190_CH_AIN2P_AIN2M 3 // AIN2(+) - AIN2(-)
|
||||
#define AD7190_CH_AIN1P_AINCOM 4 // AIN1(+) - AINCOM
|
||||
#define AD7190_CH_AIN2P_AINCOM 5 // AIN2(+) - AINCOM
|
||||
#define AD7190_CH_AIN3P_AINCOM 6 // AIN3(+) - AINCOM
|
||||
#define AD7190_CH_AIN4P_AINCOM 7 // AIN4(+) - AINCOM
|
||||
|
||||
/* Configuration Register: AD7190_CONF_GAIN(x) options */
|
||||
// ADC Input Range (5 V Reference)
|
||||
#define AD7190_CONF_GAIN_1 0 // Gain 1 +-5 V
|
||||
#define AD7190_CONF_GAIN_8 3 // Gain 8 +-625 mV
|
||||
#define AD7190_CONF_GAIN_16 4 // Gain 16 +-312.5 mV
|
||||
#define AD7190_CONF_GAIN_32 5 // Gain 32 +-156.2 mV
|
||||
#define AD7190_CONF_GAIN_64 6 // Gain 64 +-78.125 mV
|
||||
#define AD7190_CONF_GAIN_128 7 // Gain 128 +-39.06 mV
|
||||
|
||||
/* ID Register Bit Designations (AD7190_REG_ID) */
|
||||
#define ID_AD7190 0x4
|
||||
#define AD7190_ID_MASK 0x0F
|
||||
|
||||
/* GPOCON Register Bit Designations (AD7190_REG_GPOCON) */
|
||||
#define AD7190_GPOCON_BPDSW (1 << 6) // Bridge power-down switch enable
|
||||
#define AD7190_GPOCON_GP32EN (1 << 5) // Digital Output P3 and P2 enable
|
||||
#define AD7190_GPOCON_GP10EN (1 << 4) // Digital Output P1 and P0 enable
|
||||
#define AD7190_GPOCON_P3DAT (1 << 3) // P3 state
|
||||
#define AD7190_GPOCON_P2DAT (1 << 2) // P2 state
|
||||
#define AD7190_GPOCON_P1DAT (1 << 1) // P1 state
|
||||
#define AD7190_GPOCON_P0DAT (1 << 0) // P0 state
|
||||
|
||||
|
||||
/******************************************************************************/
|
||||
/*********************** Functions Declarations *******************************/
|
||||
/******************************************************************************/
|
||||
|
||||
/*! Writes data into a register. */
|
||||
void AD7190_SetRegisterValue(unsigned char registerAddress,
|
||||
unsigned long registerValue,
|
||||
unsigned char bytesNumber,
|
||||
unsigned char modifyCS);
|
||||
|
||||
/*! Reads the value of a register. */
|
||||
unsigned long AD7190_GetRegisterValue(unsigned char registerAddress,
|
||||
unsigned char bytesNumber,
|
||||
unsigned char modifyCS);
|
||||
|
||||
/*! Checks if the AD7139 part is present. */
|
||||
unsigned char AD7190_Init(void);
|
||||
|
||||
/*! Resets the device. */
|
||||
void AD7190_Reset(void);
|
||||
|
||||
/*! Set device to idle or power-down. */
|
||||
void AD7190_SetPower(unsigned char pwrMode);
|
||||
|
||||
/*! Waits for RDY pin to go low. */
|
||||
void AD7190_WaitRdyGoLow(void);
|
||||
|
||||
/*! Selects the channel to be enabled. */
|
||||
void AD7190_ChannelSelect(unsigned short channel);
|
||||
|
||||
/*! Performs the given calibration to the specified channel. */
|
||||
void AD7190_Calibrate(unsigned char mode, unsigned char channel);
|
||||
|
||||
/*! Selects the polarity of the conversion and the ADC input range. */
|
||||
void AD7190_RangeSetup(unsigned char polarity, unsigned char range);
|
||||
|
||||
/*! Returns the result of a single conversion. */
|
||||
unsigned long AD7190_SingleConversion(void);
|
||||
|
||||
/*! Returns the average of several conversion results. */
|
||||
unsigned long AD7190_ContinuousReadAvg(unsigned char sampleNumber);
|
||||
|
||||
/*! Read data from temperature sensor and converts it to Celsius degrees. */
|
||||
unsigned long AD7190_TemperatureRead(void);
|
||||
|
||||
|
||||
|
||||
|
||||
#endif /* __AD7190_H__ */
|
38
ThermometerPro.cpp
Normal file
38
ThermometerPro.cpp
Normal file
@ -0,0 +1,38 @@
|
||||
#include "ThermometerPro.h"
|
||||
|
||||
#include "AD7190.h"
|
||||
|
||||
void setup() {
|
||||
Serial.begin(9600);
|
||||
|
||||
delay(5000);
|
||||
Serial.print("Hello world\n");
|
||||
|
||||
unsigned char ad7190Status = AD7190_Init();
|
||||
Serial.print(String("ad7190Status: ") + ad7190Status + "\n");
|
||||
|
||||
|
||||
delay(1000);
|
||||
AD7190_Calibrate(AD7190_MODE_CAL_INT_ZERO, AD7190_CH_TEMP_SENSOR);
|
||||
|
||||
delay(1000);
|
||||
AD7190_Calibrate(AD7190_MODE_CAL_INT_FULL, AD7190_CH_TEMP_SENSOR);
|
||||
|
||||
}
|
||||
|
||||
|
||||
unsigned long T() {
|
||||
AD7190_RangeSetup(0, AD7190_CONF_GAIN_1);
|
||||
AD7190_ChannelSelect(AD7190_CH_TEMP_SENSOR);
|
||||
unsigned long t = AD7190_SingleConversion();
|
||||
return t;
|
||||
}
|
||||
|
||||
void loop() {
|
||||
Serial.print("Tick\n");
|
||||
|
||||
unsigned long t = AD7190_TemperatureRead();
|
||||
Serial.println(t);
|
||||
|
||||
delay(1000);
|
||||
}
|
29
ThermometerPro.h
Normal file
29
ThermometerPro.h
Normal file
@ -0,0 +1,29 @@
|
||||
// Only modify this file to include
|
||||
// - function definitions (prototypes)
|
||||
// - include files
|
||||
// - extern variable definitions
|
||||
// In the appropriate section
|
||||
|
||||
#ifndef ThermometerPro_H_
|
||||
#define ThermometerPro_H_
|
||||
#include "Arduino.h"
|
||||
//add your includes for the project ThermometerPro here
|
||||
|
||||
|
||||
//end of add your includes here
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
void loop();
|
||||
void setup();
|
||||
#ifdef __cplusplus
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
//add your function definitions for the project ThermometerPro here
|
||||
|
||||
|
||||
|
||||
|
||||
//Do not add code below this line
|
||||
#endif /* ThermometerPro_H_ */
|
Loading…
x
Reference in New Issue
Block a user