Enable on Pinecilv1 / TS10x

This commit is contained in:
Ben V. Brown
2024-09-10 07:13:43 +10:00
parent b27fd634e6
commit 3b6df3f765
3 changed files with 21 additions and 18 deletions

View File

@@ -181,6 +181,7 @@
#define I2C_SOFT_BUS_1 1 #define I2C_SOFT_BUS_1 1
#define OLED_I2CBB1 1 #define OLED_I2CBB1 1
#define ACCEL_I2CBB1 1 #define ACCEL_I2CBB1 1
#define TIPTYPE_T12 1 // Can manually pick a T12 tip
#define TEMP_TMP36 #define TEMP_TMP36
#endif /* TS100 */ #endif /* TS100 */
@@ -213,6 +214,8 @@
#define TEMP_NTC 1 #define TEMP_NTC 1
#define ACCEL_I2CBB1 1 #define ACCEL_I2CBB1 1
#define POW_EPR 1 #define POW_EPR 1
#define AUTO_TIP_SELECTION 1 // Can auto-select the tip
#define TIPTYPE_T12 1 // Can manually pick a T12 tip
#define HAS_POWER_DEBUG_MENU #define HAS_POWER_DEBUG_MENU
#define DEBUG_POWER_MENU_BUTTON_B #define DEBUG_POWER_MENU_BUTTON_B

View File

@@ -155,6 +155,7 @@
#define POW_QC_20V 1 #define POW_QC_20V 1
#define ENABLE_QC2 1 #define ENABLE_QC2 1
#define MAG_SLEEP_SUPPORT 1 #define MAG_SLEEP_SUPPORT 1
#define TIPTYPE_T12 1 // Can manually pick a T12 tip
#define TEMP_TMP36 #define TEMP_TMP36
#define ACCEL_BMA #define ACCEL_BMA
#define ACCEL_SC7 #define ACCEL_SC7

View File

@@ -9,9 +9,9 @@
#ifndef CORE_SETTINGS_H_ #ifndef CORE_SETTINGS_H_
#define CORE_SETTINGS_H_ #define CORE_SETTINGS_H_
#include "configuration.h"
#include <stdbool.h> #include <stdbool.h>
#include <stdint.h> #include <stdint.h>
#include "configuration.h"
#ifdef MODEL_Pinecilv2 #ifdef MODEL_Pinecilv2
// Required settings reset for PR #1916 // Required settings reset for PR #1916
#define SETTINGSVERSION (0x55AB) // This number is frozen, do not edit #define SETTINGSVERSION (0x55AB) // This number is frozen, do not edit
@@ -121,28 +121,27 @@ typedef enum {
/* Selection of the soldering tip /* Selection of the soldering tip
* Some devices allow multiple types of tips to be fitted, this allows selecting them or overriding the logic * Some devices allow multiple types of tips to be fitted, this allows selecting them or overriding the logic
* The first type will be the default (gets value of 0) * The first type will be the default (gets value of 0)
*/ */
typedef enum { typedef enum {
#ifdef AUTO_TIP_SELECTION #ifdef AUTO_TIP_SELECTION
TIP_TYPE_AUTO, // If the hardware supports automatic detection TIP_TYPE_AUTO, // If the hardware supports automatic detection
#endif #endif
#ifdef TIPTYPE_T12 #ifdef TIPTYPE_T12
T12_8_OHM, // TS100 style tips or Hakko T12 tips with adaptors T12_8_OHM, // TS100 style tips or Hakko T12 tips with adaptors
T12_6_2_OHM, // Short Tips manufactured by Pine64 T12_6_2_OHM, // Short Tips manufactured by Pine64
T12_4_OHM, // Longer tip but low resistance for PTS200 T12_4_OHM, // Longer tip but low resistance for PTS200
#endif #endif
#ifdef TIPTYE_TS80 #ifdef TIPTYE_TS80
TS80_4_5_OHM, // TS80(P) default tips TS80_4_5_OHM, // TS80(P) default tips
// We do not know of other tuning tips (?yet?) // We do not know of other tuning tips (?yet?)
#endif #endif
#ifdef TIPTYPE_JBC #ifdef TIPTYPE_JBC
JBC_210_2_5_OHM, // Small JBC tips as used in the S60/S60P JBC_210_2_5_OHM, // Small JBC tips as used in the S60/S60P
#endif #endif
TIP_TYPE_MAX, // Max value marker TIP_TYPE_MAX, // Max value marker
} tipType_t; } tipType_t;
uint8_t getUserSelectedTipResistance(); // returns the resistance matching the selected tip type or 0 for auto
uint8_t getUserSelectedTipResistance();
// Settings wide operations // Settings wide operations
void saveSettings(); void saveSettings();
@@ -160,7 +159,7 @@ bool isLastSettingValue(const enum SettingsOptions option);
void setSettingValue(const enum SettingsOptions option, const uint16_t newValue); void setSettingValue(const enum SettingsOptions option, const uint16_t newValue);
// Special access helpers, to reduce logic duplication // Special access helpers, to reduce logic duplication
uint8_t lookupVoltageLevel(); uint8_t lookupVoltageLevel();
uint16_t lookupHallEffectThreshold(); uint16_t lookupHallEffectThreshold();
const char* lookupTipName(); // Get the name string for the current soldering tip const char *lookupTipName(); // Get the name string for the current soldering tip
#endif /* SETTINGS_H_ */ #endif /* SETTINGS_H_ */