Compare commits
37 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ae4ed4bac3 | |||
| 7cbded7ad5 | |||
| 49c73f9b8f | |||
| ac9b1107a0 | |||
| 8d111243ba | |||
| 1e53cc80ed | |||
| 272440c563 | |||
| ed697667b4 | |||
| 8ab6f27c1a | |||
| 32a8296958 | |||
| 2866988d92 | |||
| 3a29138d4e | |||
| b7f43ea145 | |||
| 6c52f65246 | |||
| 830bae68b5 | |||
| e18a05e35e | |||
| b28bbbc12c | |||
| f63e75d4ea | |||
| a646f4730b | |||
| 2318056e8f | |||
| 47016783a7 | |||
| a2f49d7489 | |||
| 74bcd3e338 | |||
| 5e50811534 | |||
| 0f5ffb0504 | |||
| d243229005 | |||
| 0c7a2b12ee | |||
| b648c556c6 | |||
| abf102fd1e | |||
| f6e5963950 | |||
| 3978f5176f | |||
| c08ab8689a | |||
| 36fde14062 | |||
| dc2e53dca6 | |||
| dc50da83a8 | |||
| d8ccffdf52 | |||
| a04d5f2ae5 |
+41
-41
@@ -34,17 +34,17 @@
|
||||
<listOptionValue builtIn="false" value="LINK_ORDER=TOOLS/ccs_linker_defines.cmd;TOOLS/cc26xx_app.cmd;"/>
|
||||
<listOptionValue builtIn="false" value="RTSC_MBS_VERSION=2.2.0"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.277675815" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="18.1.4.LTS" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.277675815" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="18.1.4.LTS" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.exe.targetPlatformDebug.1593934674" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.exe.builderDebug.632414212" name="GNU Make.FlashROM" parallelBuildOn="true" parallelizationNumber="optimal" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.exe.builderDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.exe.builderDebug.632414212" keepEnvironmentInBuildfile="false" name="GNU Make" parallelBuildOn="true" parallelizationNumber="optimal" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.exe.compilerDebug.154623462" name="ARM Compiler" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.SILICON_VERSION.974280107" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.SILICON_VERSION.7M3" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.CODE_STATE.1783826131" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.CODE_STATE" value="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.CODE_STATE.16" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.ABI.1536570599" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.ABI" value="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.ABI.eabi" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.LITTLE_ENDIAN.1895413316" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.LITTLE_ENDIAN" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.OPT_LEVEL.322983319" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.OPT_LEVEL" value="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.OPT_LEVEL.4" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.OPT_FOR_SPEED.1305400753" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.OPT_FOR_SPEED" value="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.OPT_FOR_SPEED.0" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.INCLUDE_PATH.1468985930" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.SILICON_VERSION.974280107" name="Target processor version (--silicon_version, -mv)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.SILICON_VERSION.7M3" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.CODE_STATE.1783826131" name="Designate code state, 16-bit (thumb) or 32-bit (--code_state)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.CODE_STATE" value="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.CODE_STATE.16" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.ABI.1536570599" name="Application binary interface. (--abi)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.ABI" value="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.ABI.eabi" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.LITTLE_ENDIAN.1895413316" name="Little endian code [See 'General' page to edit] (--little_endian, -me)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.LITTLE_ENDIAN" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.OPT_LEVEL.322983319" name="Optimization level (--opt_level, -O)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.OPT_LEVEL" value="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.OPT_LEVEL.4" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.OPT_FOR_SPEED.1305400753" name="Speed vs. size trade-offs (--opt_for_speed, -mf)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.OPT_FOR_SPEED" value="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.OPT_FOR_SPEED.0" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.INCLUDE_PATH.1468985930" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value="${CG_TOOL_ROOT}/include"/>
|
||||
<listOptionValue builtIn="false" value="C:\ti\simplelink\ble_sdk_2_02_02_25\src\examples\simple_peripheral\cc26xx\app\headstage"/>
|
||||
<listOptionValue builtIn="false" value="${SRC_EX}/examples/simple_peripheral/cc26xx/app"/>
|
||||
@@ -70,7 +70,7 @@
|
||||
<listOptionValue builtIn="false" value="${SRC_BLE_CORE}/rom"/>
|
||||
<listOptionValue builtIn="false" value="${CC26XXWARE}"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.DEFINE.1897088" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.DEFINE.1897088" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="BOARD_DISPLAY_EXCLUDE_UART"/>
|
||||
<listOptionValue builtIn="false" value="POWER_SAVING"/>
|
||||
<listOptionValue builtIn="false" value="BOOSTXL_CC2650MA"/>
|
||||
@@ -86,19 +86,19 @@
|
||||
<listOptionValue builtIn="false" value="xdc_runtime_Assert_DISABLE_ALL"/>
|
||||
<listOptionValue builtIn="false" value="xdc_runtime_Log_DISABLE_ALL"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.DEBUGGING_MODEL.871011287" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.C_DIALECT.863089168" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.C_DIALECT" value="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.C_DIALECT.C99" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.GCC.1454248503" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.GCC" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.DIAG_SUPPRESS.1965115059" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.DIAG_SUPPRESS" valueType="stringList">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.DEBUGGING_MODEL.871011287" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.C_DIALECT.863089168" name="C Dialect" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.C_DIALECT" value="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.C_DIALECT.C99" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.GCC.1454248503" name="Enable support for GCC extensions (DEPRECATED) (--gcc)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.GCC" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.DIAG_SUPPRESS.1965115059" name="Suppress diagnostic <id> (--diag_suppress, -pds)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.DIAG_SUPPRESS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="48"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.DIAG_WARNING.1638011093" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.DIAG_WARNING.1638011093" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.DIAG_WRAP.1920170652" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.DIAG_WRAP.off" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.DISPLAY_ERROR_NUMBER.2038786257" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.GEN_FUNC_SUBSECTIONS.811478344" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.GEN_FUNC_SUBSECTIONS" value="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.GEN_FUNC_SUBSECTIONS.on" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.CMD_FILE.1229809338" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.CMD_FILE" valueType="stringList">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.DIAG_WRAP.1920170652" name="Wrap diagnostic messages (--diag_wrap)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.DIAG_WRAP.off" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.DISPLAY_ERROR_NUMBER.2038786257" name="Emit diagnostic identifier numbers (--display_error_number, -pden)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.GEN_FUNC_SUBSECTIONS.811478344" name="Place each function in a separate subsection (--gen_func_subsections, -ms)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.GEN_FUNC_SUBSECTIONS" value="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.GEN_FUNC_SUBSECTIONS.on" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.CMD_FILE.1229809338" name="Read options from specified file (--cmd_file, -@)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.CMD_FILE" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="${SRC_EX}/config/build_components.opt"/>
|
||||
<listOptionValue builtIn="false" value="${ORG_PROJ_DIR}/build_config.opt"/>
|
||||
<listOptionValue builtIn="false" value="${ORG_PROJ_DIR}/../../ccs/config/ccs_compiler_defines.bcfg"/>
|
||||
@@ -109,48 +109,48 @@
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compiler.inputType__ASM2_SRCS.463094612" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.exe.linkerDebug.1351821865" name="ARM Linker" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.STACK_SIZE.174129193" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.STACK_SIZE" value="256" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.HEAP_SIZE.567300083" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.HEAP_SIZE" value="0" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.MAP_FILE.1800982811" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.OUTPUT_FILE.1091211742" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.OUTPUT_FILE" value="${ProjName}.out" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.LIBRARY.1479599481" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.LIBRARY" valueType="libs">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.STACK_SIZE.174129193" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.STACK_SIZE" value="256" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.HEAP_SIZE.567300083" name="Heap size for C/C++ dynamic memory allocation (--heap_size, -heap)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.HEAP_SIZE" value="0" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.MAP_FILE.1800982811" name="Link information (map) listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.OUTPUT_FILE.1091211742" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.OUTPUT_FILE" value="${ProjName}.out" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.LIBRARY.1479599481" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value="libc.a"/>
|
||||
<listOptionValue builtIn="false" value="${CC26XXWARE}/driverlib/bin/ccs/driverlib.lib"/>
|
||||
<listOptionValue builtIn="false" value="${ROM}/common_rom_releases/03282014/common_rom.symbols"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.SEARCH_PATH.672837228" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.SEARCH_PATH.672837228" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value="${CG_TOOL_ROOT}/lib"/>
|
||||
<listOptionValue builtIn="false" value="${CG_TOOL_ROOT}/include"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.DIAG_SUPPRESS.544523272" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.DIAG_SUPPRESS" valueType="stringList">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.DIAG_SUPPRESS.544523272" name="Suppress diagnostic <id> (--diag_suppress)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.DIAG_SUPPRESS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="10247-D"/>
|
||||
<listOptionValue builtIn="false" value="16002-D"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.DIAG_WRAP.1281207998" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.DIAG_WRAP.off" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.DISPLAY_ERROR_NUMBER.468817864" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.XML_LINK_INFO.1679096029" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.COMPRESS_DWARF.254835397" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.COMPRESS_DWARF" value="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.COMPRESS_DWARF.on" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.UNUSED_SECTION_ELIMINATION.1848192295" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.UNUSED_SECTION_ELIMINATION" value="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.UNUSED_SECTION_ELIMINATION.on" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.DIAG_WRAP.1281207998" name="Wrap diagnostic messages (--diag_wrap)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.DIAG_WRAP.off" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.DISPLAY_ERROR_NUMBER.468817864" name="Emit diagnostic identifier numbers (--display_error_number)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.XML_LINK_INFO.1679096029" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.COMPRESS_DWARF.254835397" name="Aggressively reduce size of the DWARF information (--compress_dwarf)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.COMPRESS_DWARF" value="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.COMPRESS_DWARF.on" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.UNUSED_SECTION_ELIMINATION.1848192295" name="Eliminate sections not needed in the executable (--unused_section_elimination)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.UNUSED_SECTION_ELIMINATION" value="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.UNUSED_SECTION_ELIMINATION.on" valueType="enumerated"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.exeLinker.inputType__CMD_SRCS.1999849945" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.exeLinker.inputType__CMD2_SRCS.25027104" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.exeLinker.inputType__GEN_CMDS.888093741" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.hex.19288898" name="ARM Hex Utility" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.hex">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.hex.ROMWIDTH.11734737" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.hex.ROMWIDTH" value="8" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.hex.MEMWIDTH.466140455" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.hex.MEMWIDTH" value="8" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.hex.OUTPUT_FORMAT.824070691" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.hex.OUTPUT_FORMAT" value="com.ti.ccstudio.buildDefinitions.TMS470_18.1.hex.OUTPUT_FORMAT.INTEL" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.hex.ROMWIDTH.11734737" name="Specify rom width (--romwidth, -romwidth=width)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.hex.ROMWIDTH" value="8" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.hex.MEMWIDTH.466140455" name="Specify memory width (--memwidth, -memwidth=width)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.hex.MEMWIDTH" value="8" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.hex.OUTPUT_FORMAT.824070691" name="Output format" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.hex.OUTPUT_FORMAT" value="com.ti.ccstudio.buildDefinitions.TMS470_18.1.hex.OUTPUT_FORMAT.INTEL" valueType="enumerated"/>
|
||||
</tool>
|
||||
<tool id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.1392704063" name="XDCtools" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool">
|
||||
<option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH.225737408" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH" valueType="stringList">
|
||||
<option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH.225737408" name="Package repositories (--xdcpath)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="${COM_TI_RTSC_TIRTOSCC13XX_CC26XX_REPOS}"/>
|
||||
<listOptionValue builtIn="false" value="${TARGET_CONTENT_BASE}"/>
|
||||
</option>
|
||||
<option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.TARGET.571281110" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.TARGET" value="ti.targets.arm.elf.M3" valueType="string"/>
|
||||
<option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM.205178830" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM" value="ti.platforms.simplelink:CC2640F128" valueType="string"/>
|
||||
<option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM_RAW.1097777495" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM_RAW" value="ti.platforms.simplelink:CC2640F128" valueType="string"/>
|
||||
<option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE.744121344" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE" value="release" valueType="string"/>
|
||||
<option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.CODEGEN_TOOL_DIR.165807018" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.CODEGEN_TOOL_DIR" value="${CG_TOOL_ROOT}" valueType="string"/>
|
||||
<option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.COMPILE_OPTIONS.391961861" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.COMPILE_OPTIONS" value=""${COMPILER_FLAGS}"" valueType="string"/>
|
||||
<option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.TARGET.571281110" name="Target (-t)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.TARGET" value="ti.targets.arm.elf.M3" valueType="string"/>
|
||||
<option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM.205178830" name="Platform (-p)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM" value="ti.platforms.simplelink:CC2640F128" valueType="string"/>
|
||||
<option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM_RAW.1097777495" name="Platform (-p)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM_RAW" value="ti.platforms.simplelink:CC2640F128" valueType="string"/>
|
||||
<option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE.744121344" name="Build-profile (-r)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE" value="release" valueType="string"/>
|
||||
<option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.CODEGEN_TOOL_DIR.165807018" name="Compiler tools directory (-c)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.CODEGEN_TOOL_DIR" value="${CG_TOOL_ROOT}" valueType="string"/>
|
||||
<option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.COMPILE_OPTIONS.391961861" name="Additional compiler options (--compileOptions)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.COMPILE_OPTIONS" value=""${COMPILER_FLAGS}"" valueType="string"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
|
||||
+12
-1
@@ -203,13 +203,17 @@ static void AutoGainChange(int32_t Real_Current){
|
||||
GAIN_200K_counter++;
|
||||
if(GAIN_200K_counter > 2){
|
||||
INSTRUCTION.ADCGainLevel = GAIN_200K;
|
||||
ADCGainControl(INSTRUCTION.ADCGainLevel);
|
||||
GAIN_200K_counter = 0;
|
||||
record_flag = false;
|
||||
}
|
||||
}else{
|
||||
GAIN_10K_counter++;
|
||||
if(GAIN_10K_counter > 2){
|
||||
INSTRUCTION.ADCGainLevel = GAIN_10K;
|
||||
ADCGainControl(INSTRUCTION.ADCGainLevel);
|
||||
GAIN_10K_counter = 0;
|
||||
record_flag = false;
|
||||
}
|
||||
}
|
||||
}else{
|
||||
@@ -227,7 +231,9 @@ static void AutoGainChange(int32_t Real_Current){
|
||||
GAIN_200R_counter++;
|
||||
if(GAIN_200R_counter > 2){
|
||||
INSTRUCTION.ADCGainLevel = GAIN_200R;
|
||||
ADCGainControl(INSTRUCTION.ADCGainLevel);
|
||||
GAIN_200R_counter = 0;
|
||||
record_flag = false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -236,7 +242,9 @@ static void AutoGainChange(int32_t Real_Current){
|
||||
GAIN_200K_counter++;
|
||||
if(GAIN_200K_counter > 2){
|
||||
INSTRUCTION.ADCGainLevel = GAIN_200K;
|
||||
ADCGainControl(INSTRUCTION.ADCGainLevel);
|
||||
GAIN_200K_counter = 0;
|
||||
record_flag = false;
|
||||
}
|
||||
}else{
|
||||
if(GAIN_200R_counter > 0){
|
||||
@@ -255,14 +263,18 @@ static void AutoGainChange(int32_t Real_Current){
|
||||
GAIN_200R_counter++;
|
||||
if(GAIN_200R_counter > 2){
|
||||
INSTRUCTION.ADCGainLevel = GAIN_200R;
|
||||
ADCGainControl(INSTRUCTION.ADCGainLevel);
|
||||
GAIN_200R_counter = 0;
|
||||
record_flag = false;
|
||||
}
|
||||
|
||||
}else{
|
||||
GAIN_10K_counter++;
|
||||
if(GAIN_10K_counter > 2){
|
||||
INSTRUCTION.ADCGainLevel = GAIN_10K;
|
||||
ADCGainControl(INSTRUCTION.ADCGainLevel);
|
||||
GAIN_10K_counter = 0;
|
||||
record_flag = false;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -275,7 +287,6 @@ static void AutoGainChange(int32_t Real_Current){
|
||||
}
|
||||
}
|
||||
}
|
||||
ADCGainControl(INSTRUCTION.ADCGainLevel);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
+67
-41
@@ -72,56 +72,82 @@ static void CV3_Vscan(CV3Mode *CV3){
|
||||
}
|
||||
|
||||
if(!vscanReset){
|
||||
if (Vset >= CV3->_Vmax){
|
||||
VmaxCounter++;
|
||||
}else if (Vset <= CV3->_Vmin){
|
||||
VminCounter++;
|
||||
}
|
||||
if((INSTRUCTION.Vinit < INSTRUCTION.Ve1 && INSTRUCTION.Vinit < INSTRUCTION.Ve2) ||
|
||||
(INSTRUCTION.Vinit > INSTRUCTION.Ve1 && INSTRUCTION.Vinit > INSTRUCTION.Ve2)
|
||||
){
|
||||
if (CV3->_current_direction_up){
|
||||
Vset = Vset + CV3->_Vstep;
|
||||
}else{
|
||||
Vset = Vset - CV3->_Vstep;
|
||||
}
|
||||
|
||||
if (CV3->_current_direction_up){
|
||||
Vset = Vset + CV3->_Vstep;
|
||||
if(INSTRUCTION.Vinit < INSTRUCTION.Ve1 && INSTRUCTION.Vinit < INSTRUCTION.Ve2){
|
||||
if(Vset == CV3->_Vmin){
|
||||
VminCounter = -1;
|
||||
INSTRUCTION.Vinit = INSTRUCTION.Vmin;
|
||||
CV3->_Vinit = CV3->_Vmin;
|
||||
}
|
||||
}else if(INSTRUCTION.Vinit > INSTRUCTION.Ve1 && INSTRUCTION.Vinit > INSTRUCTION.Ve2){
|
||||
if(Vset == CV3->_Vmax){
|
||||
VmaxCounter = -1;
|
||||
INSTRUCTION.Vinit = INSTRUCTION.Vmax;
|
||||
CV3->_Vinit = CV3->_Vmax;
|
||||
}
|
||||
}
|
||||
}else{
|
||||
Vset = Vset - CV3->_Vstep;
|
||||
}
|
||||
|
||||
if(VmaxCounter != 0 && VminCounter != 0){
|
||||
if(VmaxCounter == VminCounter && CV3->_direction_up && CV3->_current_direction_up){
|
||||
if(CycleCounter != VmaxCounter){
|
||||
if(Vset >= CV3->_Vinit){
|
||||
CV3->_cycleNumber--;
|
||||
CycleCounter = VmaxCounter; //VmaxCounter = VminCounter = CycleCounter
|
||||
if (Vset >= CV3->_Vmax){
|
||||
VmaxCounter++;
|
||||
}else if (Vset <= CV3->_Vmin){
|
||||
VminCounter++;
|
||||
}
|
||||
|
||||
if (CV3->_current_direction_up){
|
||||
Vset = Vset + CV3->_Vstep;
|
||||
}else{
|
||||
Vset = Vset - CV3->_Vstep;
|
||||
}
|
||||
|
||||
if(VmaxCounter != 0 && VminCounter != 0){
|
||||
if(VmaxCounter == VminCounter && CV3->_direction_up && CV3->_current_direction_up){
|
||||
if(CycleCounter != VmaxCounter){
|
||||
if(Vset >= CV3->_Vinit){
|
||||
CV3->_cycleNumber--;
|
||||
CycleCounter = VmaxCounter; //VmaxCounter = VminCounter = CycleCounter
|
||||
}
|
||||
}
|
||||
}
|
||||
if(VmaxCounter == VminCounter && !CV3->_direction_up && !CV3->_current_direction_up){
|
||||
if(CycleCounter != VmaxCounter){
|
||||
if(Vset <= CV3->_Vinit){
|
||||
CV3->_cycleNumber--;
|
||||
CycleCounter = VmaxCounter; //VmaxCounter = VminCounter = CycleCounter
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if(VmaxCounter == VminCounter && !CV3->_direction_up && !CV3->_current_direction_up){
|
||||
if(CycleCounter != VmaxCounter){
|
||||
if(Vset <= CV3->_Vinit){
|
||||
CV3->_cycleNumber--;
|
||||
CycleCounter = VmaxCounter; //VmaxCounter = VminCounter = CycleCounter
|
||||
}
|
||||
}
|
||||
|
||||
if (Vset >= CV3->_Vmax){
|
||||
CV3->_current_direction_up = false;
|
||||
}else if (Vset <= CV3->_Vmin){
|
||||
CV3->_current_direction_up = true;
|
||||
}
|
||||
|
||||
/*stop condition*/
|
||||
if(CV3->_cycleNumber == 0){
|
||||
// PeriodicEvent = false;
|
||||
InitEliteFlag();
|
||||
INSTRUCTION.eliteFxn = CONSTANT_CURRENT;
|
||||
INSTRUCTION.sampleRate = 15;
|
||||
INSTRUCTION.charge = 0x01;
|
||||
INSTRUCTION.constantCurrent = 0x00;
|
||||
INSTRUCTION.Vmax = 0xC350;
|
||||
INSTRUCTION.Vmin = 0x0000;
|
||||
INSTRUCTION.notifyRate = 500;
|
||||
INSTRUCTION.VoViSwitch = 0x02;//read Vscan = Vout - Vin
|
||||
}
|
||||
}
|
||||
|
||||
if (Vset >= CV3->_Vmax){
|
||||
CV3->_current_direction_up = false;
|
||||
}else if (Vset <= CV3->_Vmin){
|
||||
CV3->_current_direction_up = true;
|
||||
}
|
||||
|
||||
/*stop condition*/
|
||||
if(CV3->_cycleNumber == 0){
|
||||
// PeriodicEvent = false;
|
||||
InitEliteFlag();
|
||||
INSTRUCTION.eliteFxn = CONSTANT_CURRENT;
|
||||
INSTRUCTION.sampleRate = 15;
|
||||
INSTRUCTION.charge = 0x01;
|
||||
INSTRUCTION.constantCurrent = 0x00;
|
||||
INSTRUCTION.Vmax = 0xC350;
|
||||
INSTRUCTION.Vmin = 0x0000;
|
||||
INSTRUCTION.notifyRate = 500;
|
||||
INSTRUCTION.VoViSwitch = 0x02;//read Vscan = Vout - Vin
|
||||
}
|
||||
}
|
||||
// int32_t RealV;
|
||||
// RealV = (int32_t)(Vset / 500);//[1uV]
|
||||
|
||||
+401
-317
@@ -29,7 +29,7 @@
|
||||
*/
|
||||
|
||||
|
||||
#define BOARD_C754
|
||||
#define BOARD_7A27
|
||||
|
||||
typedef struct _formula{
|
||||
|
||||
@@ -481,23 +481,23 @@ struct _correction{
|
||||
|
||||
#ifdef BOARD_EARTH
|
||||
{
|
||||
.ADC_volt.coeff = (-6256660),
|
||||
.ADC_volt.offset = 101658275678,
|
||||
.ADC_volt.coeff = (-6254086),
|
||||
.ADC_volt.offset = 101630724842,
|
||||
|
||||
.ADC_current[0].coeff = 31271240,
|
||||
.ADC_current[0].offset = (-508496329863),
|
||||
.ADC_current[0].coeff = 31307316,
|
||||
.ADC_current[0].offset = (-509080082505),
|
||||
|
||||
.ADC_current[1].coeff = 659931818,
|
||||
.ADC_current[1].offset = (-10729666444387),
|
||||
.ADC_current[1].coeff = 1038879134,
|
||||
.ADC_current[1].offset = (-16891544490582),
|
||||
|
||||
.ADC_current[2].coeff = 31485559000,
|
||||
.ADC_current[2].offset = (-511907957163000),
|
||||
.ADC_current[2].coeff = 31275322353,
|
||||
.ADC_current[2].offset = (-508594079552145),
|
||||
|
||||
.DAC2RealV.coeff = (-19047143),
|
||||
.DAC2RealV.offset = 565935714286,
|
||||
.DAC2RealV.coeff = (-10498733),
|
||||
.DAC2RealV.offset = 559635479474,
|
||||
|
||||
.Usercode2DAC.coeff = (-10500262),
|
||||
.Usercode2DAC.offset = 559630236100,
|
||||
.Usercode2DAC.coeff = (-10498733),
|
||||
.Usercode2DAC.offset = 559635479474,
|
||||
|
||||
.Gain0Boundary[0] = 0x5D96,
|
||||
.Gain0Boundary[1] = 0x5DD9,
|
||||
@@ -509,23 +509,23 @@ struct _correction{
|
||||
|
||||
#ifdef BOARD_MARS
|
||||
{
|
||||
.ADC_volt.coeff = (-6270623),
|
||||
.ADC_volt.offset = 102383421553,
|
||||
.ADC_volt.coeff = (-6245492),
|
||||
.ADC_volt.offset = 101945499581,
|
||||
|
||||
.ADC_current[0].coeff = 31187022,
|
||||
.ADC_current[0].offset = (-509159321195),
|
||||
.ADC_current[0].coeff = 31368636,
|
||||
.ADC_current[0].offset = (-512446169562),
|
||||
|
||||
.ADC_current[1].coeff = 655981611,
|
||||
.ADC_current[1].offset = (-10709717111320),
|
||||
.ADC_current[1].coeff = 1039388071,
|
||||
.ADC_current[1].offset = (-16979504762992),
|
||||
|
||||
.ADC_current[2].coeff = 31256968000,
|
||||
.ADC_current[2].offset = (-510275213115000),
|
||||
.ADC_current[2].coeff = 31179461820,
|
||||
.ADC_current[2].offset = (-509371534177551),
|
||||
|
||||
.DAC2RealV.coeff = (-18937347),
|
||||
.DAC2RealV.offset = 568558163265,
|
||||
.DAC2RealV.coeff = (-10590976),
|
||||
.DAC2RealV.offset = 566177716585,
|
||||
|
||||
.Usercode2DAC.coeff = (-10561141),
|
||||
.Usercode2DAC.offset = 564249134291,
|
||||
.Usercode2DAC.coeff = (-10590976),
|
||||
.Usercode2DAC.offset = 566177716585,
|
||||
|
||||
.Gain0Boundary[0] = 0x5D96,
|
||||
.Gain0Boundary[1] = 0x5DD9,
|
||||
@@ -565,23 +565,23 @@ struct _correction{
|
||||
|
||||
#ifdef BOARD_MERCURY
|
||||
{
|
||||
.ADC_volt.coeff = (-6259808),
|
||||
.ADC_volt.offset = 102009860128,
|
||||
.ADC_volt.coeff = (-6255920),
|
||||
.ADC_volt.offset = 101949226537,
|
||||
|
||||
.ADC_current[0].coeff = 31335917,
|
||||
.ADC_current[0].offset = (-511426612252),
|
||||
.ADC_current[0].coeff = 31378548,
|
||||
.ADC_current[0].offset = (-511864787787),
|
||||
|
||||
.ADC_current[1].coeff = 658172815,
|
||||
.ADC_current[1].offset = (-10738251896209),
|
||||
.ADC_current[1].coeff = 1047190278,
|
||||
.ADC_current[1].offset = (-17081663871224),
|
||||
|
||||
.ADC_current[2].coeff = 31482687000,
|
||||
.ADC_current[2].offset = (-513650531545000),
|
||||
.ADC_current[2].coeff = 31316396439,
|
||||
.ADC_current[2].offset = (-510882488242182),
|
||||
|
||||
.DAC2RealV.coeff = (-19009388),
|
||||
.DAC2RealV.offset = 567032653061,
|
||||
.DAC2RealV.coeff = (-10548376),
|
||||
.DAC2RealV.offset = 562573448438,
|
||||
|
||||
.Usercode2DAC.coeff = (-10548297),
|
||||
.Usercode2DAC.offset = 562611756757,
|
||||
.Usercode2DAC.coeff = (-10548376),
|
||||
.Usercode2DAC.offset = 562573448438,
|
||||
|
||||
.Gain0Boundary[0] = 0x5D96,
|
||||
.Gain0Boundary[1] = 0x5DD9,
|
||||
@@ -677,23 +677,23 @@ struct _correction{
|
||||
|
||||
#ifdef BOARD_URANUS
|
||||
{
|
||||
.ADC_volt.coeff = (-6288406),
|
||||
.ADC_volt.offset = 102590185538,
|
||||
.ADC_volt.coeff = (-6289343),
|
||||
.ADC_volt.offset = 102596604679,
|
||||
|
||||
.ADC_current[0].coeff = 31126241,
|
||||
.ADC_current[0].offset = -507996638504,
|
||||
.ADC_current[0].coeff = 31130010,
|
||||
.ADC_current[0].offset = -508144060832,
|
||||
|
||||
.ADC_current[1].coeff = 657161839,
|
||||
.ADC_current[1].offset = -10726524110539,
|
||||
.ADC_current[1].coeff = 1040649807,
|
||||
.ADC_current[1].offset = -16987421587720,
|
||||
|
||||
.ADC_current[2].coeff = 31389113015,
|
||||
.ADC_current[2].offset = -512374954780066,
|
||||
.ADC_current[2].coeff = 31108379089,
|
||||
.ADC_current[2].offset = -507825890387403,
|
||||
|
||||
.DAC2RealV.coeff = (-19007867),
|
||||
.DAC2RealV.offset = 646316924837,
|
||||
.DAC2RealV.coeff = (-10522575),
|
||||
.DAC2RealV.offset = 562025477515,
|
||||
|
||||
.Usercode2DAC.coeff = (-10522699),
|
||||
.Usercode2DAC.offset = 562027015384,
|
||||
.Usercode2DAC.coeff = (-10522575),
|
||||
.Usercode2DAC.offset = 562025477515,
|
||||
|
||||
.Gain0Boundary[0] = 0x5ECD,
|
||||
.Gain0Boundary[1] = 0x5F0D,
|
||||
@@ -705,23 +705,23 @@ struct _correction{
|
||||
|
||||
#ifdef BOARD_NEPTUNE
|
||||
{
|
||||
.ADC_volt.coeff = (-6238267),
|
||||
.ADC_volt.offset = 101851442363,
|
||||
.ADC_volt.coeff = (-6236893),
|
||||
.ADC_volt.offset = 101832494983,
|
||||
|
||||
.ADC_current[0].coeff = 31273546,
|
||||
.ADC_current[0].offset = -510209128923,
|
||||
.ADC_current[0].coeff = 31281543,
|
||||
.ADC_current[0].offset = -510387810425,
|
||||
|
||||
.ADC_current[1].coeff = 655098575,
|
||||
.ADC_current[1].offset = -10688260793525,
|
||||
.ADC_current[1].coeff = 1039415160,
|
||||
.ADC_current[1].offset = -16957590218341,
|
||||
|
||||
.ADC_current[2].coeff = 31427718507,
|
||||
.ADC_current[2].offset = -512764179259867,
|
||||
.ADC_current[2].coeff = 31136851168,
|
||||
.ADC_current[2].offset = -508017507176865,
|
||||
|
||||
.DAC2RealV.coeff = (-19007867),
|
||||
.DAC2RealV.offset = 646316924837,
|
||||
.DAC2RealV.coeff = (-10525897),
|
||||
.DAC2RealV.offset = 561113521803,
|
||||
|
||||
.Usercode2DAC.coeff = (-10523806),
|
||||
.Usercode2DAC.offset = 561060090900,
|
||||
.Usercode2DAC.coeff = (-10525897),
|
||||
.Usercode2DAC.offset = 561113521803,
|
||||
|
||||
.Gain0Boundary[0] = 0x5ECD,
|
||||
.Gain0Boundary[1] = 0x5F0D,
|
||||
@@ -817,23 +817,23 @@ struct _correction{
|
||||
|
||||
#ifdef BOARD_ANGUS
|
||||
{
|
||||
.ADC_volt.coeff = (-6250162),
|
||||
.ADC_volt.offset = 101299494036,
|
||||
.ADC_volt.coeff = (-6244407),
|
||||
.ADC_volt.offset = 101229336232,
|
||||
|
||||
.ADC_current[0].coeff = 31362142,
|
||||
.ADC_current[0].offset = -505892074241,
|
||||
.ADC_current[0].coeff = 31226661,
|
||||
.ADC_current[0].offset = -505608730777,
|
||||
|
||||
.ADC_current[1].coeff = 1038657447,
|
||||
.ADC_current[1].offset = -16825211981930,
|
||||
.ADC_current[1].coeff = 1038337157,
|
||||
.ADC_current[1].offset = -16811599696298,
|
||||
|
||||
.ADC_current[2].coeff = 31547392790,
|
||||
.ADC_current[2].offset = -511020442102912,
|
||||
.ADC_current[2].coeff = 31226971220,
|
||||
.ADC_current[2].offset = -505607032848294,
|
||||
|
||||
.DAC2RealV.coeff = (-10551476),
|
||||
.DAC2RealV.offset = 561072801708,
|
||||
.DAC2RealV.coeff = (-10554658),
|
||||
.DAC2RealV.offset = 561216370475,
|
||||
|
||||
.Usercode2DAC.coeff = (-10551476),
|
||||
.Usercode2DAC.offset = 561072801708,
|
||||
.Usercode2DAC.coeff = (-10554658),
|
||||
.Usercode2DAC.offset = 561216370475,
|
||||
|
||||
.Gain0Boundary[0] = 0x5ECD,
|
||||
.Gain0Boundary[1] = 0x5F0D,
|
||||
@@ -985,51 +985,23 @@ struct _correction{
|
||||
|
||||
#ifdef BOARD_MILKY
|
||||
{
|
||||
.ADC_volt.coeff = (-6247086),
|
||||
.ADC_volt.offset = 101974148017,
|
||||
.ADC_volt.coeff = (-6246129),
|
||||
.ADC_volt.offset = 101941953101,
|
||||
|
||||
.ADC_current[0].coeff = 31224118,
|
||||
.ADC_current[0].offset = -509950466463,
|
||||
.ADC_current[0].coeff = 31162019,
|
||||
.ADC_current[0].offset = -508789643238,
|
||||
|
||||
.ADC_current[1].coeff = 1041909136,
|
||||
.ADC_current[1].offset = -17014035656187,
|
||||
.ADC_current[1].coeff = 1039770869,
|
||||
.ADC_current[1].offset = -16977725336350,
|
||||
|
||||
.ADC_current[2].coeff = 31189459680,
|
||||
.ADC_current[2].offset = -509356907922133,
|
||||
.ADC_current[2].coeff = 31176532909,
|
||||
.ADC_current[2].offset = -509078604450070,
|
||||
|
||||
.DAC2RealV.coeff = (-10540354),
|
||||
.DAC2RealV.offset = 562589481970,
|
||||
.DAC2RealV.coeff = (-10537997),
|
||||
.DAC2RealV.offset = 562509462552,
|
||||
|
||||
.Usercode2DAC.coeff = (-10540354),
|
||||
.Usercode2DAC.offset = 562589481970,
|
||||
|
||||
.Gain0Boundary[0] = 0x5ECD,
|
||||
.Gain0Boundary[1] = 0x5F0D,
|
||||
|
||||
.Gain1Boundary[0] = 0x5900,
|
||||
.Gain1Boundary[1] = 0x64DD
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifdef BOARD_C673
|
||||
{
|
||||
.ADC_volt.coeff = (-6250835),
|
||||
.ADC_volt.offset = 102137137483,
|
||||
|
||||
.ADC_current[0].coeff = 31377840,
|
||||
.ADC_current[0].offset = -513157633310,
|
||||
|
||||
.ADC_current[1].coeff = 656775773,
|
||||
.ADC_current[1].offset = -10735818498628,
|
||||
|
||||
.ADC_current[2].coeff = 31564418269,
|
||||
.ADC_current[2].offset = -515846860363218,
|
||||
|
||||
.DAC2RealV.coeff = (-10589134),
|
||||
.DAC2RealV.offset = 566193811359,
|
||||
|
||||
.Usercode2DAC.coeff = (-10589134),
|
||||
.Usercode2DAC.offset = 566193811359,
|
||||
.Usercode2DAC.coeff = (-10537997),
|
||||
.Usercode2DAC.offset = 562509462552,
|
||||
|
||||
.Gain0Boundary[0] = 0x5ECD,
|
||||
.Gain0Boundary[1] = 0x5F0D,
|
||||
@@ -1069,25 +1041,25 @@ struct _correction{
|
||||
|
||||
#ifdef BOARD_C64C
|
||||
{
|
||||
.ADC_volt.coeff = (-6260844),
|
||||
.ADC_volt.offset = 101746271485,
|
||||
.ADC_volt.coeff = (-6261379),
|
||||
.ADC_volt.offset = 101763410184,
|
||||
|
||||
|
||||
.ADC_current[0].coeff = 31338730,
|
||||
.ADC_current[0].offset = -509379766636,
|
||||
.ADC_current[0].coeff = 31308730,
|
||||
.ADC_current[0].offset = -509090582097,
|
||||
|
||||
.ADC_current[1].coeff = 1046399869,
|
||||
.ADC_current[1].offset = -17015515742489,
|
||||
.ADC_current[1].coeff = 1043267838,
|
||||
.ADC_current[1].offset = -16964010368861,
|
||||
|
||||
.ADC_current[2].coeff = 31354045950,
|
||||
.ADC_current[2].offset = -509822012815049,
|
||||
.ADC_current[2].coeff = 31266964604,
|
||||
.ADC_current[2].offset = -508414660684828,
|
||||
|
||||
|
||||
.DAC2RealV.coeff = (-10552953),
|
||||
.DAC2RealV.offset = 562237325905,
|
||||
.DAC2RealV.coeff = (-10554340),
|
||||
.DAC2RealV.offset = 562509692664,
|
||||
|
||||
.Usercode2DAC.coeff = (-10552953),
|
||||
.Usercode2DAC.offset = 562237325905,
|
||||
.Usercode2DAC.coeff = (-10554340),
|
||||
.Usercode2DAC.offset = 562509692664,
|
||||
|
||||
.Gain0Boundary[0] = 0x5ECD,
|
||||
.Gain0Boundary[1] = 0x5F0D,
|
||||
@@ -1126,23 +1098,23 @@ struct _correction{
|
||||
#endif
|
||||
#ifdef BOARD_C5A7
|
||||
{
|
||||
.ADC_volt.coeff = (-6261077),
|
||||
.ADC_volt.offset = 101626420148,
|
||||
.ADC_volt.coeff = (-6262780),
|
||||
.ADC_volt.offset = 101664836252,
|
||||
|
||||
.ADC_current[0].coeff = 31238670,
|
||||
.ADC_current[0].offset = -508954779962,
|
||||
.ADC_current[0].coeff = 31135960,
|
||||
.ADC_current[0].offset = -505044850047,
|
||||
|
||||
.ADC_current[1].coeff = 655018286,
|
||||
.ADC_current[1].offset = -10624775781189,
|
||||
.ADC_current[1].coeff = 1037815841,
|
||||
.ADC_current[1].offset = -16834366292470,
|
||||
|
||||
.ADC_current[2].coeff = 31254713545,
|
||||
.ADC_current[2].offset = -506913323208609,
|
||||
.ADC_current[2].coeff = 31018531336,
|
||||
.ADC_current[2].offset = -503165512120747,
|
||||
|
||||
.DAC2RealV.coeff = (-10486554),
|
||||
.DAC2RealV.offset = 558961930417,
|
||||
.DAC2RealV.coeff = (-10488676),
|
||||
.DAC2RealV.offset = 559117334946,
|
||||
|
||||
.Usercode2DAC.coeff = (-10486554),
|
||||
.Usercode2DAC.offset = 558961930417,
|
||||
.Usercode2DAC.coeff = (-10488676),
|
||||
.Usercode2DAC.offset = 559117334946,
|
||||
|
||||
.Gain0Boundary[0] = 0x5ECD,
|
||||
.Gain0Boundary[1] = 0x5F0D,
|
||||
@@ -1240,23 +1212,23 @@ struct _correction{
|
||||
|
||||
#ifdef BOARD_C635
|
||||
{
|
||||
.ADC_volt.coeff = (-6253221),
|
||||
.ADC_volt.offset = 101809981406,
|
||||
.ADC_volt.coeff = (-6253536),
|
||||
.ADC_volt.offset = 101821525832,
|
||||
|
||||
.ADC_current[0].coeff = 31362142,
|
||||
.ADC_current[0].offset = -510532561003,
|
||||
.ADC_current[0].coeff = 31347155,
|
||||
.ADC_current[0].offset = -510166323983,
|
||||
|
||||
.ADC_current[1].coeff = 1039291418,
|
||||
.ADC_current[1].offset = -16922089304313,
|
||||
.ADC_current[1].coeff = 1041552098,
|
||||
.ADC_current[1].offset = -16949591768212,
|
||||
|
||||
.ADC_current[2].coeff = 31442371890,
|
||||
.ADC_current[2].offset = -511958749629672,
|
||||
.ADC_current[2].coeff = 31128394341,
|
||||
.ADC_current[2].offset = -506594381684742,
|
||||
|
||||
.DAC2RealV.coeff = (-10518407),
|
||||
.DAC2RealV.offset = 561815157695,
|
||||
.DAC2RealV.coeff = (-10518836),
|
||||
.DAC2RealV.offset = 561803744273,
|
||||
|
||||
.Usercode2DAC.coeff = (-10518407),
|
||||
.Usercode2DAC.offset = 561815157695,
|
||||
.Usercode2DAC.coeff = (-10518836),
|
||||
.Usercode2DAC.offset = 561803744273,
|
||||
|
||||
.Gain0Boundary[0] = 0x5ECD,
|
||||
.Gain0Boundary[1] = 0x5F0D,
|
||||
@@ -1380,23 +1352,23 @@ struct _correction{
|
||||
|
||||
#ifdef BOARD_C6D5
|
||||
{
|
||||
.ADC_volt.coeff = (-6237534),
|
||||
.ADC_volt.offset = 101605935716,
|
||||
.ADC_volt.coeff = (-6241008),
|
||||
.ADC_volt.offset = 101669754539,
|
||||
|
||||
.ADC_current[0].coeff = 31115458,
|
||||
.ADC_current[0].offset = -507263643623,
|
||||
.ADC_current[0].coeff = 31309434,
|
||||
.ADC_current[0].offset = (-510358135128),
|
||||
|
||||
.ADC_current[1].coeff = 658403575,
|
||||
.ADC_current[1].offset = -10732526947976,
|
||||
.ADC_current[1].coeff = 1043496604,
|
||||
.ADC_current[1].offset = (-17010637182413),
|
||||
|
||||
.ADC_current[2].coeff = 31390460797,
|
||||
.ADC_current[2].offset = -511690836380334,
|
||||
.ADC_current[2].coeff = 31175657230,
|
||||
.ADC_current[2].offset = (-508206835843288),
|
||||
|
||||
.DAC2RealV.coeff = (-10584982),
|
||||
.DAC2RealV.offset = 563383734482,
|
||||
.DAC2RealV.coeff = (-10577705),
|
||||
.DAC2RealV.offset = 565950206955,
|
||||
|
||||
.Usercode2DAC.coeff = (-10584982),
|
||||
.Usercode2DAC.offset = 563383734482,
|
||||
.Usercode2DAC.coeff = (-10577705),
|
||||
.Usercode2DAC.offset = 565950206955,
|
||||
|
||||
.Gain0Boundary[0] = 0x5ECD,
|
||||
.Gain0Boundary[1] = 0x5F0D,
|
||||
@@ -1436,23 +1408,23 @@ struct _correction{
|
||||
|
||||
#ifdef BOARD_7C8C
|
||||
{
|
||||
.ADC_volt.coeff = (-6245955),
|
||||
.ADC_volt.offset = 101740069163,
|
||||
.ADC_volt.coeff = (-6267773),
|
||||
.ADC_volt.offset = 101930228335,
|
||||
|
||||
.ADC_current[0].coeff = 31298398,
|
||||
.ADC_current[0].offset = -509220185047,
|
||||
.ADC_current[0].coeff = 31287287,
|
||||
.ADC_current[0].offset = -509013689600,
|
||||
|
||||
.ADC_current[1].coeff = 1044400136,
|
||||
.ADC_current[1].offset = -16991352944592,
|
||||
.ADC_current[1].coeff = 1041149194,
|
||||
.ADC_current[1].offset = -16936434461883,
|
||||
|
||||
.ADC_current[2].coeff = 31316551586,
|
||||
.ADC_current[2].offset = -509520294310165,
|
||||
.ADC_current[2].coeff = 30954580653,
|
||||
.ADC_current[2].offset = -503576545812688,
|
||||
|
||||
.DAC2RealV.coeff = (-10518181),
|
||||
.DAC2RealV.offset = 560774907466,
|
||||
.DAC2RealV.coeff = (-10522507),
|
||||
.DAC2RealV.offset = 560850417450,
|
||||
|
||||
.Usercode2DAC.coeff = (-10518181),
|
||||
.Usercode2DAC.offset = 560774907466,
|
||||
.Usercode2DAC.coeff = (-10522507),
|
||||
.Usercode2DAC.offset = 560850417450,
|
||||
|
||||
.Gain0Boundary[0] = 0x5ECD,
|
||||
.Gain0Boundary[1] = 0x5F0D,
|
||||
@@ -1520,23 +1492,23 @@ struct _correction{
|
||||
|
||||
#ifdef BOARD_7ACD
|
||||
{
|
||||
.ADC_volt.coeff = (-6245881),
|
||||
.ADC_volt.offset = 101739364445,
|
||||
.ADC_volt.coeff = (-6249338),
|
||||
.ADC_volt.offset = 101812379935,
|
||||
|
||||
.ADC_current[0].coeff = 31492900,
|
||||
.ADC_current[0].offset = -513555962368,
|
||||
.ADC_current[0].coeff = 31493494,
|
||||
.ADC_current[0].offset = -513248754052,
|
||||
|
||||
.ADC_current[1].coeff = 1050878114,
|
||||
.ADC_current[1].offset = -17126686056439,
|
||||
.ADC_current[1].coeff = 1048385561,
|
||||
.ADC_current[1].offset = -17085714517279,
|
||||
|
||||
.ADC_current[2].coeff = 31361515219,
|
||||
.ADC_current[2].offset = -511124748127692,
|
||||
.ADC_current[2].coeff = 31366339791,
|
||||
.ADC_current[2].offset = -511201662998428,
|
||||
|
||||
.DAC2RealV.coeff = (-10501725),
|
||||
.DAC2RealV.offset = 561303490285,
|
||||
.DAC2RealV.coeff = (-10501601),
|
||||
.DAC2RealV.offset = 561312475106,
|
||||
|
||||
.Usercode2DAC.coeff = (-10501725),
|
||||
.Usercode2DAC.offset = 561303490285,
|
||||
.Usercode2DAC.coeff = (-10501601),
|
||||
.Usercode2DAC.offset = 561312475106,
|
||||
|
||||
.Gain0Boundary[0] = 0x5ECD,
|
||||
.Gain0Boundary[1] = 0x5F0D,
|
||||
@@ -1576,23 +1548,23 @@ struct _correction{
|
||||
|
||||
#ifdef BOARD_7C45
|
||||
{
|
||||
.ADC_volt.coeff = (-6249790),
|
||||
.ADC_volt.offset = 101902081116,
|
||||
.ADC_volt.coeff = (-6253002),
|
||||
.ADC_volt.offset = 101936728616,
|
||||
|
||||
.ADC_current[0].coeff = 31186464,
|
||||
.ADC_current[0].offset = -508333834841,
|
||||
.ADC_current[0].coeff = 31165834,
|
||||
.ADC_current[0].offset = -507980827269,
|
||||
|
||||
.ADC_current[1].coeff = 1041818448,
|
||||
.ADC_current[1].offset = -16980491490498,
|
||||
.ADC_current[1].coeff = 1039356740,
|
||||
.ADC_current[1].offset = -16940989462554,
|
||||
|
||||
.ADC_current[2].coeff = 31185193538,
|
||||
.ADC_current[2].offset = -508308778105315,
|
||||
.ADC_current[2].coeff = 31094415430,
|
||||
.ADC_current[2].offset = -506845976323451,
|
||||
|
||||
.DAC2RealV.coeff = (-10518181),
|
||||
.DAC2RealV.offset = 563194089164,
|
||||
.DAC2RealV.coeff = (-10517572),
|
||||
.DAC2RealV.offset = 563388223493,
|
||||
|
||||
.Usercode2DAC.coeff = (-10518181),
|
||||
.Usercode2DAC.offset = 563194089164,
|
||||
.Usercode2DAC.coeff = (-10517572),
|
||||
.Usercode2DAC.offset = 563388223493,
|
||||
|
||||
.Gain0Boundary[0] = 0x5ECD,
|
||||
.Gain0Boundary[1] = 0x5F0D,
|
||||
@@ -1632,23 +1604,23 @@ struct _correction{
|
||||
|
||||
#ifdef BOARD_C666
|
||||
{
|
||||
.ADC_volt.coeff = (-6232156),
|
||||
.ADC_volt.offset = 101053382552,
|
||||
.ADC_volt.coeff = (-6234349),
|
||||
.ADC_volt.offset = 101074457000,
|
||||
|
||||
.ADC_current[0].coeff = 31365407,
|
||||
.ADC_current[0].offset = -509042257572,
|
||||
.ADC_current[0].coeff = 31151353,
|
||||
.ADC_current[0].offset = -505549254482,
|
||||
|
||||
.ADC_current[1].coeff = 1046698071,
|
||||
.ADC_current[1].offset = -16990184267678,
|
||||
.ADC_current[1].coeff = 1038834169,
|
||||
.ADC_current[1].offset = -16859580350641,
|
||||
|
||||
.ADC_current[2].coeff = 31149084249,
|
||||
.ADC_current[2].offset = -505532546789474,
|
||||
.ADC_current[2].coeff = 31135749343,
|
||||
.ADC_current[2].offset = -505336910128356,
|
||||
|
||||
.DAC2RealV.coeff = (-10554430),
|
||||
.DAC2RealV.offset = 563085541490,
|
||||
.DAC2RealV.coeff = (-10556602),
|
||||
.DAC2RealV.offset = 563463327813,
|
||||
|
||||
.Usercode2DAC.coeff = (-10554430),
|
||||
.Usercode2DAC.offset = 563085541490,
|
||||
.Usercode2DAC.coeff = (-10556602),
|
||||
.Usercode2DAC.offset = 563463327813,
|
||||
|
||||
.Gain0Boundary[0] = 0x5ECD,
|
||||
.Gain0Boundary[1] = 0x5F0D,
|
||||
@@ -1660,23 +1632,23 @@ struct _correction{
|
||||
|
||||
#ifdef BOARD_C77F
|
||||
{
|
||||
.ADC_volt.coeff = (-6234878),
|
||||
.ADC_volt.offset = 101601831505,
|
||||
.ADC_volt.coeff = (-6233926),
|
||||
.ADC_volt.offset = 101595916239,
|
||||
|
||||
.ADC_current[0].coeff = 31310636,
|
||||
.ADC_current[0].offset = -509874148022,
|
||||
.ADC_current[0].coeff = 31306366,
|
||||
.ADC_current[0].offset = -509839021648,
|
||||
|
||||
.ADC_current[1].coeff = 1046034494,
|
||||
.ADC_current[1].offset = -17033195277741,
|
||||
.ADC_current[1].coeff = 1044604777,
|
||||
.ADC_current[1].offset = -17010939352270,
|
||||
|
||||
.ADC_current[2].coeff = 31241067097,
|
||||
.ADC_current[2].offset = -508760777680586,
|
||||
.ADC_current[2].coeff = 31183517779,
|
||||
.ADC_current[2].offset = -507880924324657,
|
||||
|
||||
.DAC2RealV.coeff = (-10548921),
|
||||
.DAC2RealV.offset = 563690238433,
|
||||
.DAC2RealV.coeff = (-10548796),
|
||||
.DAC2RealV.offset = 563715049037,
|
||||
|
||||
.Usercode2DAC.coeff = (-10548921),
|
||||
.Usercode2DAC.offset = 563690238433,
|
||||
.Usercode2DAC.coeff = (-10548796),
|
||||
.Usercode2DAC.offset = 563715049037,
|
||||
|
||||
.Gain0Boundary[0] = 0x5ECD,
|
||||
.Gain0Boundary[1] = 0x5F0D,
|
||||
@@ -1688,23 +1660,23 @@ struct _correction{
|
||||
|
||||
#ifdef BOARD_7AA3
|
||||
{
|
||||
.ADC_volt.coeff = (-6243111),
|
||||
.ADC_volt.offset = 101612874087,
|
||||
.ADC_volt.coeff = (-6244624),
|
||||
.ADC_volt.offset = 101627595362,
|
||||
|
||||
.ADC_current[0].coeff = 31168032,
|
||||
.ADC_current[0].offset = -507029003863,
|
||||
.ADC_current[0].coeff = 31158192,
|
||||
.ADC_current[0].offset = -506948914522,
|
||||
|
||||
.ADC_current[1].coeff = 1037884665,
|
||||
.ADC_current[1].offset = -16887822291406,
|
||||
.ADC_current[1].coeff = 1041154827,
|
||||
.ADC_current[1].offset = -16939823568931,
|
||||
|
||||
.ADC_current[2].coeff = 31158020373,
|
||||
.ADC_current[2].offset = -506977174798124,
|
||||
.ADC_current[2].coeff = 31164913636,
|
||||
.ADC_current[2].offset = -507071438365827,
|
||||
|
||||
.DAC2RealV.coeff = (-10558411),
|
||||
.DAC2RealV.offset = 562539941761,
|
||||
.DAC2RealV.coeff = (-10561745),
|
||||
.DAC2RealV.offset = 562827023401,
|
||||
|
||||
.Usercode2DAC.coeff = (-10558411),
|
||||
.Usercode2DAC.offset = 562539941761,
|
||||
.Usercode2DAC.coeff = (-10561745),
|
||||
.Usercode2DAC.offset = 562827023401,
|
||||
|
||||
.Gain0Boundary[0] = 0x5ECD,
|
||||
.Gain0Boundary[1] = 0x5F0D,
|
||||
@@ -1744,23 +1716,23 @@ struct _correction{
|
||||
|
||||
#ifdef BOARD_7C1C
|
||||
{
|
||||
.ADC_volt.coeff = (-6233821),
|
||||
.ADC_volt.offset = 101672109162,
|
||||
.ADC_volt.coeff = (-6241145),
|
||||
.ADC_volt.offset = 101783499013,
|
||||
|
||||
.ADC_current[0].coeff = 31402797,
|
||||
.ADC_current[0].offset = -512233817277,
|
||||
.ADC_current[0].coeff = 31398224,
|
||||
.ADC_current[0].offset = -512097205750,
|
||||
|
||||
.ADC_current[1].coeff = 1045213563,
|
||||
.ADC_current[1].offset = -17046627622597,
|
||||
.ADC_current[1].coeff = 1041847607,
|
||||
.ADC_current[1].offset = -16992181078741,
|
||||
|
||||
.ADC_current[2].coeff = 31138764963,
|
||||
.ADC_current[2].offset = -507909585098225,
|
||||
.ADC_current[2].coeff = 31140669735,
|
||||
.ADC_current[2].offset = -507891095908841,
|
||||
|
||||
.DAC2RealV.coeff = (-10508989),
|
||||
.DAC2RealV.offset = 561259309086,
|
||||
.DAC2RealV.coeff = (-10509428),
|
||||
.DAC2RealV.offset = 561160584032,
|
||||
|
||||
.Usercode2DAC.coeff = (-10508989),
|
||||
.Usercode2DAC.offset = 561259309086,
|
||||
.Usercode2DAC.coeff = (-10509428),
|
||||
.Usercode2DAC.offset = 561160584032,
|
||||
|
||||
.Gain0Boundary[0] = 0x5ECD,
|
||||
.Gain0Boundary[1] = 0x5F0D,
|
||||
@@ -1772,23 +1744,23 @@ struct _correction{
|
||||
|
||||
#ifdef BOARD_8041
|
||||
{
|
||||
.ADC_volt.coeff = (-6245064),
|
||||
.ADC_volt.offset = 101474178128,
|
||||
.ADC_volt.coeff = (-6242905),
|
||||
.ADC_volt.offset = 101409839979,
|
||||
|
||||
.ADC_current[0].coeff = 31127115,
|
||||
.ADC_current[0].offset = (-505426119060),
|
||||
.ADC_current[0].coeff = 31096802,
|
||||
.ADC_current[0].offset = (-504960656148),
|
||||
|
||||
.ADC_current[1].coeff = 1036193750,
|
||||
.ADC_current[1].offset = (-16830549683858),
|
||||
.ADC_current[1].coeff = 1036099288,
|
||||
.ADC_current[1].offset = (-16824059670565),
|
||||
|
||||
.ADC_current[2].coeff = 31293229709,
|
||||
.ADC_current[2].offset = (-508295930159100),
|
||||
.ADC_current[2].coeff = 31006958001,
|
||||
.ADC_current[2].offset = (-503538117282663),
|
||||
|
||||
.DAC2RealV.coeff = (-10547274),
|
||||
.DAC2RealV.offset = 563265024743,
|
||||
.DAC2RealV.coeff = (-10548296),
|
||||
.DAC2RealV.offset = 563213032212,
|
||||
|
||||
.Usercode2DAC.coeff = (-10547274),
|
||||
.Usercode2DAC.offset = 563265024743,
|
||||
.Usercode2DAC.coeff = (-10548296),
|
||||
.Usercode2DAC.offset = 563213032212,
|
||||
|
||||
.Gain0Boundary[0] = 0x5ECD,
|
||||
.Gain0Boundary[1] = 0x5F0D,
|
||||
@@ -1800,23 +1772,23 @@ struct _correction{
|
||||
|
||||
#ifdef BOARD_81DD
|
||||
{
|
||||
.ADC_volt.coeff = (-6267294),
|
||||
.ADC_volt.offset = 102076843367,
|
||||
.ADC_volt.coeff = (-6266886),
|
||||
.ADC_volt.offset = 102052941404,
|
||||
|
||||
.ADC_current[0].coeff = 31338626,
|
||||
.ADC_current[0].offset = (-509870828927),
|
||||
.ADC_current[0].coeff = 31315523,
|
||||
.ADC_current[0].offset = (-509424484200),
|
||||
|
||||
.ADC_current[1].coeff = 1042196198,
|
||||
.ADC_current[1].offset = (-16956879533330),
|
||||
.ADC_current[1].coeff = 1040178958,
|
||||
.ADC_current[1].offset = (-16920123747824),
|
||||
|
||||
.ADC_current[2].coeff = 31513534005,
|
||||
.ADC_current[2].offset = (-512756711802731),
|
||||
.ADC_current[2].coeff = 31161731262,
|
||||
.ADC_current[2].offset = (-506926013103594),
|
||||
|
||||
.DAC2RealV.coeff = (-10599177),
|
||||
.DAC2RealV.offset = 564518912894,
|
||||
.DAC2RealV.coeff = (-10601930),
|
||||
.DAC2RealV.offset = 564554827120,
|
||||
|
||||
.Usercode2DAC.coeff = (-10599177),
|
||||
.Usercode2DAC.offset = 564518912894,
|
||||
.Usercode2DAC.coeff = (-10601930),
|
||||
.Usercode2DAC.offset = 564554827120,
|
||||
|
||||
.Gain0Boundary[0] = 0x5ECD,
|
||||
.Gain0Boundary[1] = 0x5F0D,
|
||||
@@ -2080,23 +2052,23 @@ struct _correction{
|
||||
|
||||
#ifdef BOARD_7C13
|
||||
{
|
||||
.ADC_volt.coeff = (-6245031),
|
||||
.ADC_volt.offset = 101664896458,
|
||||
.ADC_volt.coeff = (-6245341),
|
||||
.ADC_volt.offset = 101674066570,
|
||||
|
||||
.ADC_current[0].coeff = 31037865,
|
||||
.ADC_current[0].offset = (-504943377203),
|
||||
.ADC_current[0].coeff = 31037236,
|
||||
.ADC_current[0].offset = (-504974922790),
|
||||
|
||||
.ADC_current[1].coeff = 1042483218,
|
||||
.ADC_current[1].offset = (-16959178666094),
|
||||
.ADC_current[1].coeff = 1041558860,
|
||||
.ADC_current[1].offset = (-16945181978168),
|
||||
|
||||
.ADC_current[2].coeff = 31210947750,
|
||||
.ADC_current[2].offset = (-507797633947551),
|
||||
.ADC_current[2].coeff = 31199527456,
|
||||
.ADC_current[2].offset = (-507644532260422),
|
||||
|
||||
.DAC2RealV.coeff = (-10537804),
|
||||
.DAC2RealV.offset = 563122577198,
|
||||
.DAC2RealV.coeff = (-10537340),
|
||||
.DAC2RealV.offset = 562274279947,
|
||||
|
||||
.Usercode2DAC.coeff = (-10537804),
|
||||
.Usercode2DAC.offset = 563122577198,
|
||||
.Usercode2DAC.coeff = (-10537340),
|
||||
.Usercode2DAC.offset = 562274279947,
|
||||
|
||||
.Gain0Boundary[0] = 0x5ECD,
|
||||
.Gain0Boundary[1] = 0x5F0D,
|
||||
@@ -2108,23 +2080,23 @@ struct _correction{
|
||||
|
||||
#ifdef BOARD_C754
|
||||
{
|
||||
.ADC_volt.coeff = (-6250656),
|
||||
.ADC_volt.offset = 101613285758,
|
||||
.ADC_volt.coeff = (-6250738),
|
||||
.ADC_volt.offset = 101602372194,
|
||||
|
||||
.ADC_current[0].coeff = 31096930,
|
||||
.ADC_current[0].offset = (-505488359419),
|
||||
.ADC_current[0].coeff = 31134164,
|
||||
.ADC_current[0].offset = (-505933593207),
|
||||
|
||||
.ADC_current[1].coeff = 1035756414,
|
||||
.ADC_current[1].offset = (-16833636859743),
|
||||
.ADC_current[1].coeff = 1034220209,
|
||||
.ADC_current[1].offset = (-16806418259018),
|
||||
|
||||
.ADC_current[2].coeff = 31121362903,
|
||||
.ADC_current[2].offset = (-505825885055901),
|
||||
.ADC_current[2].coeff = 31065323266,
|
||||
.ADC_current[2].offset = (-504846080925402),
|
||||
|
||||
.DAC2RealV.coeff = (-10594938),
|
||||
.DAC2RealV.offset = 565766120973,
|
||||
.DAC2RealV.coeff = (-10594194),
|
||||
.DAC2RealV.offset = 565668596314,
|
||||
|
||||
.Usercode2DAC.coeff = (-10594938),
|
||||
.Usercode2DAC.offset = 565766120973,
|
||||
.Usercode2DAC.coeff = (-10594194),
|
||||
.Usercode2DAC.offset = 565668596314,
|
||||
|
||||
.Gain0Boundary[0] = 0x5ECD,
|
||||
.Gain0Boundary[1] = 0x5F0D,
|
||||
@@ -2220,23 +2192,23 @@ struct _correction{
|
||||
|
||||
#ifdef BOARD_7A27
|
||||
{
|
||||
.ADC_volt.coeff = (-6238897),
|
||||
.ADC_volt.offset = 101825376629,
|
||||
.ADC_volt.coeff = (-6241007),
|
||||
.ADC_volt.offset = 101863592493,
|
||||
|
||||
.ADC_current[0].coeff = 31144406,
|
||||
.ADC_current[0].offset = (-508027083279),
|
||||
.ADC_current[0].coeff = 31145392,
|
||||
.ADC_current[0].offset = (-508092100922),
|
||||
|
||||
.ADC_current[1].coeff = 1043613002,
|
||||
.ADC_current[1].offset = (-17021914484200),
|
||||
.ADC_current[1].coeff = 1043457306,
|
||||
.ADC_current[1].offset = (-17022534810000),
|
||||
|
||||
.ADC_current[2].coeff = 31258186542,
|
||||
.ADC_current[2].offset = (-509910337307241),
|
||||
.ADC_current[2].coeff = 31246024052,
|
||||
.ADC_current[2].offset = (-509755886881895),
|
||||
|
||||
.DAC2RealV.coeff = (-10510950),
|
||||
.DAC2RealV.offset = 562477892123,
|
||||
.DAC2RealV.coeff = (-10510826),
|
||||
.DAC2RealV.offset = 561850956485,
|
||||
|
||||
.Usercode2DAC.coeff = (-10510950),
|
||||
.Usercode2DAC.offset = 562477892123,
|
||||
.Usercode2DAC.coeff = (-10510826),
|
||||
.Usercode2DAC.offset = 561850956485,
|
||||
|
||||
.Gain0Boundary[0] = 0x5ECD,
|
||||
.Gain0Boundary[1] = 0x5F0D,
|
||||
@@ -2304,23 +2276,135 @@ struct _correction{
|
||||
|
||||
#ifdef BOARD_7C4F
|
||||
{
|
||||
.ADC_volt.coeff = (-6251051),
|
||||
.ADC_volt.offset = 102081366120,
|
||||
.ADC_volt.coeff = (-6251380),
|
||||
.ADC_volt.offset = 102077443338,
|
||||
|
||||
.ADC_current[0].coeff = 31259689,
|
||||
.ADC_current[0].offset = (-510257068974),
|
||||
.ADC_current[0].coeff = 31259302,
|
||||
.ADC_current[0].offset = (-510222577425),
|
||||
|
||||
.ADC_current[1].coeff = 1040932429,
|
||||
.ADC_current[1].offset = (-16990159283624),
|
||||
.ADC_current[1].coeff = 1040754816,
|
||||
.ADC_current[1].offset = (-16986559859611),
|
||||
|
||||
.ADC_current[2].coeff = 31129670123,
|
||||
.ADC_current[2].offset = (-508178138938958),
|
||||
.ADC_current[2].coeff = 31123637510,
|
||||
.ADC_current[2].offset = (-508024270725857),
|
||||
|
||||
.DAC2RealV.coeff = (-10511469),
|
||||
.DAC2RealV.offset = 563770560100,
|
||||
.DAC2RealV.coeff = (-10511762),
|
||||
.DAC2RealV.offset = 563771373352,
|
||||
|
||||
.Usercode2DAC.coeff = (-10511469),
|
||||
.Usercode2DAC.offset = 563770560100,
|
||||
.Usercode2DAC.coeff = (-10511762),
|
||||
.Usercode2DAC.offset = 563771373352,
|
||||
|
||||
.Gain0Boundary[0] = 0x5ECD,
|
||||
.Gain0Boundary[1] = 0x5F0D,
|
||||
|
||||
.Gain1Boundary[0] = 0x5900,
|
||||
.Gain1Boundary[1] = 0x64DD
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifdef BOARD_C5A5
|
||||
{
|
||||
.ADC_volt.coeff = (-6243455),
|
||||
.ADC_volt.offset = 101514367772,
|
||||
|
||||
.ADC_current[0].coeff = 31279770,
|
||||
.ADC_current[0].offset = (-508197928309),
|
||||
|
||||
.ADC_current[1].coeff = 1040866204,
|
||||
.ADC_current[1].offset = (-16911204486981),
|
||||
|
||||
.ADC_current[2].coeff = 31228932598,
|
||||
.ADC_current[2].offset = (-507386242364716),
|
||||
|
||||
.DAC2RealV.coeff = (-10575045),
|
||||
.DAC2RealV.offset = 564109591899,
|
||||
|
||||
.Usercode2DAC.coeff = (-10575045),
|
||||
.Usercode2DAC.offset = 564109591899,
|
||||
|
||||
.Gain0Boundary[0] = 0x5ECD,
|
||||
.Gain0Boundary[1] = 0x5F0D,
|
||||
|
||||
.Gain1Boundary[0] = 0x5900,
|
||||
.Gain1Boundary[1] = 0x64DD
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifdef BOARD_C679
|
||||
{
|
||||
.ADC_volt.coeff = (-6264283),
|
||||
.ADC_volt.offset = 101906484164,
|
||||
|
||||
.ADC_current[0].coeff = 31237841,
|
||||
.ADC_current[0].offset = (-508071963928),
|
||||
|
||||
.ADC_current[1].coeff = 1045997000,
|
||||
.ADC_current[1].offset = (-17013251632848),
|
||||
|
||||
.ADC_current[2].coeff = 31243455008,
|
||||
.ADC_current[2].offset = (-508188454899490),
|
||||
|
||||
.DAC2RealV.coeff = (-10562086),
|
||||
.DAC2RealV.offset = 562693471740,
|
||||
|
||||
.Usercode2DAC.coeff = (-10562086),
|
||||
.Usercode2DAC.offset = 562693471740,
|
||||
|
||||
.Gain0Boundary[0] = 0x5ECD,
|
||||
.Gain0Boundary[1] = 0x5F0D,
|
||||
|
||||
.Gain1Boundary[0] = 0x5900,
|
||||
.Gain1Boundary[1] = 0x64DD
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifdef BOARD_C5B4
|
||||
{
|
||||
.ADC_volt.coeff = (-6232534),
|
||||
.ADC_volt.offset = 101125591772,
|
||||
|
||||
.ADC_current[0].coeff = 31134322,
|
||||
.ADC_current[0].offset = (-505175074656),
|
||||
|
||||
.ADC_current[1].coeff = 1037582334,
|
||||
.ADC_current[1].offset = (-16835610388741),
|
||||
|
||||
.ADC_current[2].coeff = 31151803118,
|
||||
.ADC_current[2].offset = (-505477577323571),
|
||||
|
||||
.DAC2RealV.coeff = (-10531338),
|
||||
.DAC2RealV.offset = 560637511199,
|
||||
|
||||
.Usercode2DAC.coeff = (-10531338),
|
||||
.Usercode2DAC.offset = 560637511199,
|
||||
|
||||
.Gain0Boundary[0] = 0x5ECD,
|
||||
.Gain0Boundary[1] = 0x5F0D,
|
||||
|
||||
.Gain1Boundary[0] = 0x5900,
|
||||
.Gain1Boundary[1] = 0x64DD
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifdef BOARD_7A6B
|
||||
{
|
||||
.ADC_volt.coeff = (-6264283),
|
||||
.ADC_volt.offset = 101906484164,
|
||||
|
||||
.ADC_current[0].coeff = 31235326,
|
||||
.ADC_current[0].offset = (-508031051137),
|
||||
|
||||
.ADC_current[1].coeff = 1045996101,
|
||||
.ADC_current[1].offset = (-17013237011211),
|
||||
|
||||
.ADC_current[2].coeff = 31243455008,
|
||||
.ADC_current[2].offset = (-508188454899490),
|
||||
|
||||
.DAC2RealV.coeff = (-10562086),
|
||||
.DAC2RealV.offset = 562693471740,
|
||||
|
||||
.Usercode2DAC.coeff = (-10562086),
|
||||
.Usercode2DAC.offset = 562693471740,
|
||||
|
||||
.Gain0Boundary[0] = 0x5ECD,
|
||||
.Gain0Boundary[1] = 0x5F0D,
|
||||
|
||||
+22
-1
@@ -61,6 +61,27 @@ static void Elite_led_color(uint16_t color){
|
||||
LED_color(0x00, 0x00, 0x00, 0x00);
|
||||
break;
|
||||
}
|
||||
//dark LED
|
||||
case COLOR_YELLOW_DARK: {
|
||||
LED_color(DARKLED, 0xFF, 0x80, 0x00);
|
||||
break;
|
||||
}
|
||||
case COLOR_GREEN_DARK: {
|
||||
LED_color(DARKLED, 0x00, 0x33, 0x00);
|
||||
break;
|
||||
}
|
||||
case COLOR_BLUE_DARK: {
|
||||
LED_color(DARKLED, 0x00, 0x00, 0x33);
|
||||
break;
|
||||
}
|
||||
case COLOR_CYAN_DARK: {
|
||||
LED_color(DARKLED, 0x00, 0x10, 0x10);
|
||||
break;
|
||||
}
|
||||
case COLOR_PURPLE_DARK: {
|
||||
LED_color(DARKLED, 0x55, 0x00, 0x55);
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
break;
|
||||
}
|
||||
@@ -102,7 +123,7 @@ static void WorkModeLED() {
|
||||
break;
|
||||
}
|
||||
case CONSTANT_CURRENT:{
|
||||
Elite_led_color(COLOR_BLUE);
|
||||
Elite_led_color(COLOR_BLUE_DARK);
|
||||
break;
|
||||
}
|
||||
case VIS_RST: {
|
||||
|
||||
+16
-8
@@ -10,10 +10,11 @@
|
||||
#include "headstage.h"
|
||||
|
||||
/*notify's input type*/
|
||||
#define NOTIFY_CURRENT 0
|
||||
#define NOTIFY_VOLT 1
|
||||
#define NOTIFY_IMPEDANCE 2
|
||||
#define NOTIFY_VOLT_BAT 3
|
||||
#define NOTIFY_CURRENT 0
|
||||
#define NOTIFY_VOLT 1
|
||||
#define NOTIFY_IMPEDANCE 2
|
||||
#define NOTIFY_VOLT_BAT 3
|
||||
#define NOTIFY_TEMPERATURE 4
|
||||
|
||||
#define NOT_BUF_OFFSET_INIT 8
|
||||
|
||||
@@ -24,10 +25,11 @@
|
||||
static size_t not_buf_offset = NOT_BUF_OFFSET_INIT;
|
||||
static uint32_t not_time_stamp;
|
||||
|
||||
static uint8_t NotifyCurrent[4] = {0};
|
||||
static uint8_t NotifyVolt[4] = {0};
|
||||
static uint8_t NotifyImpedance[4] = {0};
|
||||
static uint8_t NotifyVoltBat[4] = {0};
|
||||
static uint8_t NotifyCurrent[4] = {0};
|
||||
static uint8_t NotifyVolt[4] = {0};
|
||||
static uint8_t NotifyImpedance[4] = {0};
|
||||
static uint8_t NotifyVoltBat[4] = {0};
|
||||
static uint8_t NotifyTemperature[4] = {0};
|
||||
static uint16_t NotifyCycleNumber = 0;
|
||||
|
||||
// ****************** New Notify Format ******************************** //
|
||||
@@ -183,6 +185,12 @@ static void InputNotify(int NotifyType, int32_t Data){
|
||||
NotifyVoltBat[2] = (uint8_t)((Data & 0x0000FF00) >> 8);
|
||||
NotifyVoltBat[3] = (uint8_t)(Data & 0x000000FF);
|
||||
break;
|
||||
case NOTIFY_TEMPERATURE :
|
||||
NotifyTemperature[0] = (uint8_t)((Data & 0xFF000000) >> 24);
|
||||
NotifyTemperature[1] = (uint8_t)((Data & 0x00FF0000) >> 16);
|
||||
NotifyTemperature[2] = (uint8_t)((Data & 0x0000FF00) >> 8);
|
||||
NotifyTemperature[3] = (uint8_t)(Data & 0x000000FF);
|
||||
break;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
+10
@@ -58,4 +58,14 @@ static void EliteADCBattery(){
|
||||
}
|
||||
}
|
||||
|
||||
static int32_t headstage_temperature() {
|
||||
int32_t curTemp;
|
||||
curTemp = AONBatMonTemperatureGetDegC();
|
||||
InputNotify(NOTIFY_TEMPERATURE,curTemp);
|
||||
if(INSTRUCTION.eliteFxn == IT_CURVE){
|
||||
InputNotify(NOTIFY_IMPEDANCE,curTemp);
|
||||
}
|
||||
return curTemp;
|
||||
}
|
||||
|
||||
#endif // HEADSTAGE_BATT_H
|
||||
|
||||
+9
-3
@@ -42,6 +42,7 @@
|
||||
#define CIS_VERSION 0x40
|
||||
#define CIS_VOLT 0x10
|
||||
#define CIS_LED_TEST 0x70
|
||||
#define CIS_TEMPERATURE 0x80
|
||||
|
||||
// mode parameter
|
||||
#define STEP_TO_VSETRATE(step) step2VsetRate(step)
|
||||
@@ -65,9 +66,14 @@
|
||||
#define COLOR_MAGENTA 7
|
||||
#define COLOR_PURPLE 8
|
||||
#define COLOR_WHITE 9
|
||||
#define LEDPowerON() Elite_led_color(COLOR_GREEN)
|
||||
#define WORKLED() Elite_led_color(COLOR_CYAN)
|
||||
#define KEYLED() Elite_led_color(COLOR_YELLOW)
|
||||
#define COLOR_YELLOW_DARK 0x0A
|
||||
#define COLOR_GREEN_DARK 0x0B
|
||||
#define COLOR_BLUE_DARK 0x0C
|
||||
#define COLOR_CYAN_DARK 0x0D
|
||||
#define COLOR_PURPLE_DARK 0x0E
|
||||
#define LEDPowerON() Elite_led_color(COLOR_GREEN_DARK)
|
||||
#define WORKLED() Elite_led_color(COLOR_CYAN_DARK)
|
||||
#define KEYLED() Elite_led_color(COLOR_YELLOW_DARK)
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
+30
-3
@@ -155,7 +155,16 @@ static void CC_Plot(WorkMode *WorkModeData){
|
||||
if(BatSwitch == 0){
|
||||
if(ADCSwitch == 0){ /**read Iin(buffer),read bat**/
|
||||
readIin(WorkModeData);
|
||||
InputNotify(NOTIFY_CURRENT, CURRENT_MODE->_measureCurrent);
|
||||
if(record_flag == false){
|
||||
static int count = 0;
|
||||
count++;
|
||||
if(count == 2){
|
||||
record_flag = true;
|
||||
count = 0;
|
||||
}
|
||||
}else{
|
||||
InputNotify(NOTIFY_CURRENT, CURRENT_MODE->_measureCurrent);
|
||||
}
|
||||
DACenable(WorkModeData, VoltData, AFTER_READ_I);
|
||||
|
||||
ReadBatVolt(spi_ADC_rxbuf);
|
||||
@@ -191,7 +200,16 @@ static void CC_Plot(WorkMode *WorkModeData){
|
||||
BatSwitch = 0;
|
||||
if(ADCSwitch == 0){ /**read Iin(buffer),read V**/
|
||||
readIin(WorkModeData);
|
||||
InputNotify(NOTIFY_CURRENT, CURRENT_MODE->_measureCurrent);
|
||||
if(record_flag == false){
|
||||
static int count = 0;
|
||||
count++;
|
||||
if(count == 2){
|
||||
record_flag = true;
|
||||
count = 0;
|
||||
}
|
||||
}else{
|
||||
InputNotify(NOTIFY_CURRENT, CURRENT_MODE->_measureCurrent);
|
||||
}
|
||||
DACenable(WorkModeData, VoltData, AFTER_READ_I);
|
||||
|
||||
ReadADCVolt(CURRENT_MODE->_VoViSwitch);
|
||||
@@ -277,7 +295,16 @@ static void IT_Plot(WorkMode *WorkModeData) {
|
||||
}else{
|
||||
if(ADCSwitch == 0){ /**read Iin(buffer)**/
|
||||
readIin(WorkModeData);
|
||||
InputNotify(NOTIFY_CURRENT, CURRENT_MODE->_measureCurrent);
|
||||
if(record_flag == false){
|
||||
static int count = 0;
|
||||
count++;
|
||||
if(count == 2){
|
||||
record_flag = true;
|
||||
count = 0;
|
||||
}
|
||||
}else{
|
||||
InputNotify(NOTIFY_CURRENT, CURRENT_MODE->_measureCurrent);
|
||||
}
|
||||
ADCSwitch++;
|
||||
}
|
||||
else if(ADCSwitch == 1){ /**read Iin**/
|
||||
|
||||
+3
-3
@@ -3,10 +3,10 @@
|
||||
#define VERSION_DATE
|
||||
|
||||
#define VERSION_DATE_YEAR 20
|
||||
#define VERSION_DATE_MONTH 7
|
||||
#define VERSION_DATE_DAY 29
|
||||
#define VERSION_DATE_MONTH 11
|
||||
#define VERSION_DATE_DAY 3
|
||||
#define VERSION_DATE_HOUR 15
|
||||
#define VERSION_DATE_MINUTE 21
|
||||
#define VERSION_DATE_MINUTE 38
|
||||
|
||||
// this is NOT the version hash !!
|
||||
// it's the last version hash
|
||||
|
||||
+14
-1
@@ -528,10 +528,12 @@ static uint32_t SampleRateTable[6] = {100, 1000, 10000, 50000, 100000, 1000000};
|
||||
static uint32_t VsetRateTable[5] = {2, 10, 100, 1000, 10000};
|
||||
static bool batteryCheck_flag;
|
||||
static bool batteryADC_flag;
|
||||
static bool tempCheck_flag;
|
||||
static bool ADC_flag;
|
||||
static bool vscan_flag;
|
||||
static bool notify_flag;
|
||||
static bool notifyFirst_flag;
|
||||
static bool record_flag;
|
||||
static bool vscanReset;
|
||||
static bool EliteWorkReset;
|
||||
static bool leadTimeReset;
|
||||
@@ -1026,7 +1028,7 @@ static void update_ZM_instruction(uint8 *ins) {
|
||||
}
|
||||
|
||||
case VIS_DEVICE_SHINY:{
|
||||
Elite_led_color(COLOR_PURPLE);
|
||||
Elite_led_color(COLOR_PURPLE_DARK);
|
||||
// uint8_t deviceShinySwitch = (ins[2] & 0b11110000) >> 4;//1:open 0:close
|
||||
// if(deviceShinySwitch == 1){
|
||||
// Elite_led_color(COLOR_PURPLE);
|
||||
@@ -1105,6 +1107,17 @@ static void update_ZM_instruction(uint8 *ins) {
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case CIS_TEMPERATURE: { //0x7080
|
||||
initCISBuf();
|
||||
cis_buf[0] = CIS_TEMPERATURE;
|
||||
cis_buf[1] = NotifyTemperature[0];
|
||||
cis_buf[2] = NotifyTemperature[1];
|
||||
cis_buf[3] = NotifyTemperature[2];
|
||||
cis_buf[4] = NotifyTemperature[3];
|
||||
SimpleProfile_SetParameter(BLE_CIS_BUFF_CHAR, BLE_CIS_BUFF_SIZE, cis_buf);
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
+6
-1
@@ -113,8 +113,9 @@ static void SimpleBLEPeripheral_performPeriodicTask(WorkMode *WorkModeData) {
|
||||
|
||||
if(EliteWorkReset){
|
||||
InitEliteGPtimer();
|
||||
EliteWorkReset = false;
|
||||
EliteWorkReset = false;
|
||||
batteryADC_flag = false;
|
||||
record_flag = true;
|
||||
if( Ve1MatchVe2Mode() ){
|
||||
if (INSTRUCTION.Ve1 == INSTRUCTION.Ve2) {
|
||||
DAC_outputV(Usercode_Correction_to_DAC(INSTRUCTION.Ve1));
|
||||
@@ -153,6 +154,7 @@ static void SimpleBLEPeripheral_performPeriodicTask(WorkMode *WorkModeData) {
|
||||
if(GPT.BatteryCheckCounter >= 50000){
|
||||
GPT.BatteryCheckCounter -= 50000; //To get right time
|
||||
batteryCheck_flag = true;
|
||||
tempCheck_flag = true;
|
||||
}
|
||||
|
||||
uint16_t bat = ((uint16_t)(NotifyVoltBat[2]) << 8 & 0xFF00 ) | ((uint16_t)(NotifyVoltBat[3]) & 0x00FF);
|
||||
@@ -169,6 +171,9 @@ static void SimpleBLEPeripheral_performPeriodicTask(WorkMode *WorkModeData) {
|
||||
EliteADCControl(WorkModeData);
|
||||
ADC_flag = false;
|
||||
}
|
||||
}else if(GPT.SampleRateCounter == 12 && tempCheck_flag){
|
||||
headstage_temperature();
|
||||
tempCheck_flag = false;
|
||||
}
|
||||
|
||||
//Notify counter(Notify control, check if we need to send notify)
|
||||
|
||||
Reference in New Issue
Block a user