remove hardcoded MODEL_TS80 (#393)
* remove hardcoded MODEL_TS80 * #define MODEL_TS100 in sw4stm32/atollic config * whitespace fix * use sum of 'defined' instead of logic * only print handle temp, not PCBVersion * whitespace fix
This commit is contained in:
committed by
Ben V. Brown
parent
ffeacca74d
commit
81e87c86d0
@@ -36,6 +36,7 @@
|
|||||||
</option>
|
</option>
|
||||||
<option id="gnu.c.compiler.option.preprocessor.def.symbols.2127531885" name="Defined symbols (-D)" superClass="gnu.c.compiler.option.preprocessor.def.symbols" useByScannerDiscovery="false" valueType="definedSymbols">
|
<option id="gnu.c.compiler.option.preprocessor.def.symbols.2127531885" name="Defined symbols (-D)" superClass="gnu.c.compiler.option.preprocessor.def.symbols" useByScannerDiscovery="false" valueType="definedSymbols">
|
||||||
<listOptionValue builtIn="false" value="STM32F103T8Ux"/>
|
<listOptionValue builtIn="false" value="STM32F103T8Ux"/>
|
||||||
|
<listOptionValue builtIn="false" value="MODEL_TS100"/>
|
||||||
<listOptionValue builtIn="false" value="STM32F1"/>
|
<listOptionValue builtIn="false" value="STM32F1"/>
|
||||||
<listOptionValue builtIn="false" value="STM32"/>
|
<listOptionValue builtIn="false" value="STM32"/>
|
||||||
<listOptionValue builtIn="false" value="DEBUG"/>
|
<listOptionValue builtIn="false" value="DEBUG"/>
|
||||||
@@ -44,7 +45,7 @@
|
|||||||
<listOptionValue builtIn="false" value="USE_RTOS_SYSTICK"/>
|
<listOptionValue builtIn="false" value="USE_RTOS_SYSTICK"/>
|
||||||
</option>
|
</option>
|
||||||
<option id="gnu.c.compiler.option.dialect.std.565083189" name="Language standard" superClass="gnu.c.compiler.option.dialect.std" useByScannerDiscovery="true" value="gnu.c.compiler.dialect.default" valueType="enumerated"/>
|
<option id="gnu.c.compiler.option.dialect.std.565083189" name="Language standard" superClass="gnu.c.compiler.option.dialect.std" useByScannerDiscovery="true" value="gnu.c.compiler.dialect.default" valueType="enumerated"/>
|
||||||
<option id="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.fdata.338139343" superClass="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.fdata" useByScannerDiscovery="false" value="true" valueType="boolean"/>
|
<option id="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.fdata.338139343" name="Place the data in their own section (-fdata-sections)" superClass="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.fdata" useByScannerDiscovery="false" value="true" valueType="boolean"/>
|
||||||
<inputType id="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.input.c.176392389" superClass="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.input.c"/>
|
<inputType id="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.input.c.176392389" superClass="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.input.c"/>
|
||||||
<inputType id="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.input.s.893418158" superClass="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.input.s"/>
|
<inputType id="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.input.s.893418158" superClass="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.input.s"/>
|
||||||
</tool>
|
</tool>
|
||||||
@@ -63,6 +64,7 @@
|
|||||||
</option>
|
</option>
|
||||||
<option id="gnu.cpp.compiler.option.preprocessor.def.766879664" name="Defined symbols (-D)" superClass="gnu.cpp.compiler.option.preprocessor.def" useByScannerDiscovery="false" valueType="definedSymbols">
|
<option id="gnu.cpp.compiler.option.preprocessor.def.766879664" name="Defined symbols (-D)" superClass="gnu.cpp.compiler.option.preprocessor.def" useByScannerDiscovery="false" valueType="definedSymbols">
|
||||||
<listOptionValue builtIn="false" value="STM32F103T8Ux"/>
|
<listOptionValue builtIn="false" value="STM32F103T8Ux"/>
|
||||||
|
<listOptionValue builtIn="false" value="MODEL_TS100"/>
|
||||||
<listOptionValue builtIn="false" value="STM32F1"/>
|
<listOptionValue builtIn="false" value="STM32F1"/>
|
||||||
<listOptionValue builtIn="false" value="STM32"/>
|
<listOptionValue builtIn="false" value="STM32"/>
|
||||||
<listOptionValue builtIn="false" value="DEBUG"/>
|
<listOptionValue builtIn="false" value="DEBUG"/>
|
||||||
@@ -71,7 +73,7 @@
|
|||||||
<listOptionValue builtIn="false" value="USE_RTOS_SYSTICK"/>
|
<listOptionValue builtIn="false" value="USE_RTOS_SYSTICK"/>
|
||||||
</option>
|
</option>
|
||||||
<option id="gnu.cpp.compiler.option.dialect.std.1681974405" name="Language standard" superClass="gnu.cpp.compiler.option.dialect.std" useByScannerDiscovery="true" value="gnu.cpp.compiler.dialect.default" valueType="enumerated"/>
|
<option id="gnu.cpp.compiler.option.dialect.std.1681974405" name="Language standard" superClass="gnu.cpp.compiler.option.dialect.std" useByScannerDiscovery="true" value="gnu.cpp.compiler.dialect.default" valueType="enumerated"/>
|
||||||
<option id="fr.ac6.managedbuild.tool.gnu.cross.cpp.compiler.fdata.1463726438" superClass="fr.ac6.managedbuild.tool.gnu.cross.cpp.compiler.fdata" useByScannerDiscovery="false" value="true" valueType="boolean"/>
|
<option id="fr.ac6.managedbuild.tool.gnu.cross.cpp.compiler.fdata.1463726438" name="Place the data in their own section (-fdata-sections)" superClass="fr.ac6.managedbuild.tool.gnu.cross.cpp.compiler.fdata" useByScannerDiscovery="false" value="true" valueType="boolean"/>
|
||||||
<inputType id="fr.ac6.managedbuild.tool.gnu.cross.cpp.compiler.input.cpp.149685854" superClass="fr.ac6.managedbuild.tool.gnu.cross.cpp.compiler.input.cpp"/>
|
<inputType id="fr.ac6.managedbuild.tool.gnu.cross.cpp.compiler.input.cpp.149685854" superClass="fr.ac6.managedbuild.tool.gnu.cross.cpp.compiler.input.cpp"/>
|
||||||
<inputType id="fr.ac6.managedbuild.tool.gnu.cross.cpp.compiler.input.s.1092052043" superClass="fr.ac6.managedbuild.tool.gnu.cross.cpp.compiler.input.s"/>
|
<inputType id="fr.ac6.managedbuild.tool.gnu.cross.cpp.compiler.input.s.1092052043" superClass="fr.ac6.managedbuild.tool.gnu.cross.cpp.compiler.input.s"/>
|
||||||
</tool>
|
</tool>
|
||||||
@@ -99,6 +101,7 @@
|
|||||||
</tool>
|
</tool>
|
||||||
</toolChain>
|
</toolChain>
|
||||||
</folderInfo>
|
</folderInfo>
|
||||||
|
<fileInfo id="fr.ac6.managedbuild.config.gnu.cross.exe.debug.1352500998.1352310611" name="LIS2DH12.hpp" rcbsApplicability="disable" resourcePath="inc/LIS2DH12.hpp" toolsToInvoke=""/>
|
||||||
<sourceEntries>
|
<sourceEntries>
|
||||||
<entry excluding="Src/stm32f1xx_hal_timebase_tim_template.c|Src/stm32f1xx_hal_timebase_rtc_wakeup_template.c|Src/stm32f1xx_hal_timebase_rtc_alarm_template.c" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="HAL_Driver"/>
|
<entry excluding="Src/stm32f1xx_hal_timebase_tim_template.c|Src/stm32f1xx_hal_timebase_rtc_wakeup_template.c|Src/stm32f1xx_hal_timebase_rtc_alarm_template.c" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="HAL_Driver"/>
|
||||||
<entry excluding="Third_Party/FreeRTOS/Source/portable/MemMang/heap_1.c|Third_Party/FreeRTOS/Source/portable/MemMang/heap_2.c|Third_Party/FreeRTOS/Source/portable/MemMang/heap_3.c|Third_Party/FreeRTOS/Source/portable/MemMang/heap_5.c" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="Middlewares"/>
|
<entry excluding="Third_Party/FreeRTOS/Source/portable/MemMang/heap_1.c|Third_Party/FreeRTOS/Source/portable/MemMang/heap_2.c|Third_Party/FreeRTOS/Source/portable/MemMang/heap_3.c|Third_Party/FreeRTOS/Source/portable/MemMang/heap_5.c" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="Middlewares"/>
|
||||||
|
|||||||
@@ -18,11 +18,11 @@ enum Orientation {
|
|||||||
ORIENTATION_RIGHT_HAND = 1,
|
ORIENTATION_RIGHT_HAND = 1,
|
||||||
ORIENTATION_FLAT = 3
|
ORIENTATION_FLAT = 3
|
||||||
};
|
};
|
||||||
#define MODEL_TS80
|
|
||||||
#ifndef MODEL_TS100
|
#if defined(MODEL_TS100) + defined(MODEL_TS80) > 1
|
||||||
#ifndef MODEL_TS80
|
#error "Multiple models defined!"
|
||||||
#error "Please Define the model you are building for! MODEL=TS100 or MODEL=TS80"
|
#elif defined(MODEL_TS100) + defined(MODEL_TS80) == 0
|
||||||
#endif
|
#error "No model defined!"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef MODEL_TS100
|
#ifdef MODEL_TS100
|
||||||
|
|||||||
@@ -654,7 +654,7 @@ void showVersion(void) {
|
|||||||
OLED::setCursor(0, 0); // Position the cursor at the 0,0 (top left)
|
OLED::setCursor(0, 0); // Position the cursor at the 0,0 (top left)
|
||||||
OLED::setFont(1); // small font
|
OLED::setFont(1); // small font
|
||||||
#ifdef MODEL_TS100
|
#ifdef MODEL_TS100
|
||||||
OLED::print((char *)"V2.06 TS100"); // Print version number
|
OLED::print((char *)"V2.06 TS100"); // Print version number
|
||||||
#else
|
#else
|
||||||
OLED::print((char *) "V2.06 TS80"); // Print version number
|
OLED::print((char *) "V2.06 TS80"); // Print version number
|
||||||
#endif
|
#endif
|
||||||
@@ -690,6 +690,7 @@ void showVersion(void) {
|
|||||||
break;
|
break;
|
||||||
case 10:
|
case 10:
|
||||||
OLED::printNumber(getHandleTemperature(), 3);
|
OLED::printNumber(getHandleTemperature(), 3);
|
||||||
|
break;
|
||||||
case 11:
|
case 11:
|
||||||
OLED::printNumber(PCBVersion, 1); // Print PCB ID number
|
OLED::printNumber(PCBVersion, 1); // Print PCB ID number
|
||||||
break;
|
break;
|
||||||
@@ -698,7 +699,7 @@ void showVersion(void) {
|
|||||||
OLED::printNumber(idealQCVoltage,3);
|
OLED::printNumber(idealQCVoltage,3);
|
||||||
#else
|
#else
|
||||||
OLED::print("Tek.com");
|
OLED::print("Tek.com");
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user