mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
Add support for Sequre S99, copied S60P settings
This commit is contained in:
2
Makefile
2
Makefile
@@ -52,7 +52,7 @@ DOCKER_CMD=$(DOCKER_BIN) -f $(DOCKER_YML) run --rm builder
|
|||||||
MKDOCS_YML=$(CURDIR)/scripts/IronOS-mkdocs.yml
|
MKDOCS_YML=$(CURDIR)/scripts/IronOS-mkdocs.yml
|
||||||
|
|
||||||
# supported models
|
# supported models
|
||||||
MODELS=TS100 TS80 TS80P Pinecil MHP30 Pinecilv2 S60 TS101 S60P # target names & dir names
|
MODELS=TS100 TS80 TS80P Pinecil MHP30 Pinecilv2 S60 TS101 S60P S99 # target names & dir names
|
||||||
MODELS_ML=Pinecil Pinecilv2 # target names
|
MODELS_ML=Pinecil Pinecilv2 # target names
|
||||||
MODELS_MULTILANG=Pinecil_multi-lang Pinecilv2_multi-lang # dir names
|
MODELS_MULTILANG=Pinecil_multi-lang Pinecilv2_multi-lang # dir names
|
||||||
|
|
||||||
|
|||||||
@@ -69,5 +69,36 @@
|
|||||||
#define MOVEMENT_Pin GPIO_PIN_3
|
#define MOVEMENT_Pin GPIO_PIN_3
|
||||||
#define MOVEMENT_GPIO_Port GPIOA
|
#define MOVEMENT_GPIO_Port GPIOA
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef MODEL_S99
|
||||||
|
|
||||||
|
#define KEY_B_Pin GPIO_PIN_1
|
||||||
|
#define KEY_B_GPIO_Port GPIOB
|
||||||
|
#define TMP36_INPUT_Pin GPIO_PIN_5
|
||||||
|
#define TMP36_INPUT_GPIO_Port GPIOA
|
||||||
|
#define TMP36_ADC1_CHANNEL ADC_CHANNEL_5
|
||||||
|
#define TMP36_ADC2_CHANNEL ADC_CHANNEL_5
|
||||||
|
#define TIP_TEMP_Pin GPIO_PIN_0
|
||||||
|
#define TIP_TEMP_GPIO_Port GPIOA
|
||||||
|
#define TIP_TEMP_ADC1_CHANNEL ADC_CHANNEL_0
|
||||||
|
#define TIP_TEMP_ADC2_CHANNEL ADC_CHANNEL_0
|
||||||
|
#define VIN_Pin GPIO_PIN_4
|
||||||
|
#define VIN_GPIO_Port GPIOA
|
||||||
|
#define VIN_ADC1_CHANNEL ADC_CHANNEL_4
|
||||||
|
#define VIN_ADC2_CHANNEL ADC_CHANNEL_4
|
||||||
|
#define KEY_A_Pin GPIO_PIN_0
|
||||||
|
#define KEY_A_GPIO_Port GPIOB
|
||||||
|
#define PWM_Out_Pin GPIO_PIN_8
|
||||||
|
#define PWM_Out_GPIO_Port GPIOB
|
||||||
|
#define PWM_Out_CHANNEL TIM_CHANNEL_3 // Timer 4; channel 3
|
||||||
|
#define SCL2_Pin GPIO_PIN_6
|
||||||
|
#define SCL2_GPIO_Port GPIOB
|
||||||
|
#define SDA2_Pin GPIO_PIN_7
|
||||||
|
#define SDA2_GPIO_Port GPIOB
|
||||||
|
// Pin gets pulled high on movement
|
||||||
|
#define MOVEMENT_Pin GPIO_PIN_3
|
||||||
|
#define MOVEMENT_GPIO_Port GPIOA
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
#endif /* BSP_MINIWARE_PINS_H_ */
|
#endif /* BSP_MINIWARE_PINS_H_ */
|
||||||
|
|||||||
@@ -119,7 +119,7 @@
|
|||||||
// Vin_max = (3.3*(r1+r2))/(r2)
|
// Vin_max = (3.3*(r1+r2))/(r2)
|
||||||
// vdiv = (32768*4)/(vin_max*10)
|
// vdiv = (32768*4)/(vin_max*10)
|
||||||
|
|
||||||
#if defined(MODEL_S60) + defined(MODEL_S60P) == 0
|
#if defined(MODEL_S60) + defined(MODEL_S60P)+defined(MODEL_S99) == 0
|
||||||
#error "No model defined!"
|
#error "No model defined!"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -197,6 +197,37 @@
|
|||||||
#define MODEL_HAS_DCDC // We dont have DC/DC but have reallly fast PWM that gets us roughly the same place
|
#define MODEL_HAS_DCDC // We dont have DC/DC but have reallly fast PWM that gets us roughly the same place
|
||||||
#endif /* S60P */
|
#endif /* S60P */
|
||||||
|
|
||||||
|
#ifdef MODEL_S99
|
||||||
|
#define VOLTAGE_DIV 460 // Default divider scaler
|
||||||
|
#define CALIBRATION_OFFSET 200 // Default adc offset in uV
|
||||||
|
#define PID_POWER_LIMIT 70 // Sets the max pwm power limit
|
||||||
|
#define POWER_LIMIT 0 // 0 watts default limit
|
||||||
|
#define MAX_POWER_LIMIT 70
|
||||||
|
#define POWER_LIMIT_STEPS 5
|
||||||
|
#define OP_AMP_GAIN_STAGE 536
|
||||||
|
#define TEMP_uV_LOOKUP_S60
|
||||||
|
#define USB_PD_VMAX 20 // Maximum voltage for PD to negotiate
|
||||||
|
|
||||||
|
#define HARDWARE_MAX_WATTAGE_X10 600
|
||||||
|
|
||||||
|
#define TIP_THERMAL_MASS 8 // X10 watts to raise 1 deg C in 1 second
|
||||||
|
#define TIP_THERMAL_INERTIA 128 // We use a large inertia value to smooth out the drive to the tip since its stupidly sensitive
|
||||||
|
|
||||||
|
#define TIP_RESISTANCE 20 //(actually 2.5 ish but we need to be more conservative on pwm'ing watt limit) x10 ohms
|
||||||
|
|
||||||
|
#define OLED_128x32
|
||||||
|
#define GPIO_VIBRATION
|
||||||
|
#define POW_PD_EXT 2
|
||||||
|
#define USB_PD_EPR_WATTAGE 0 /*No EPR*/
|
||||||
|
#define DEBUG_POWER_MENU_BUTTON_B 1
|
||||||
|
#define HAS_POWER_DEBUG_MENU
|
||||||
|
#define TEMP_NTC
|
||||||
|
#define I2C_SOFT_BUS_2 // For now we are doing software I2C to get around hardware chip issues
|
||||||
|
#define OLED_I2CBB2
|
||||||
|
|
||||||
|
#define MODEL_HAS_DCDC // We dont have DC/DC but have reallly fast PWM that gets us roughly the same place
|
||||||
|
#endif /* S99 */
|
||||||
|
|
||||||
#define FLASH_LOGOADDR (0x08000000 + (62 * 1024))
|
#define FLASH_LOGOADDR (0x08000000 + (62 * 1024))
|
||||||
#define SETTINGS_START_PAGE (0x08000000 + (63 * 1024))
|
#define SETTINGS_START_PAGE (0x08000000 + (63 * 1024))
|
||||||
|
|
||||||
|
|||||||
@@ -141,7 +141,7 @@ const uint8_t disconnectedTip[] = {
|
|||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x37, 0x37, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x04, 0x04, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x37, 0x37, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x04, 0x04, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(MODEL_S60)+defined(MODEL_S60P) > 0
|
#if defined(MODEL_S60)+defined(MODEL_S60P)+defined(MODEL_S99) > 0
|
||||||
const uint8_t buttonA[] = {
|
const uint8_t buttonA[] = {
|
||||||
// width = 42
|
// width = 42
|
||||||
// height = 16
|
// height = 16
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ TRANSLATION_DIR="../Translations"
|
|||||||
# AVAILABLE_LANGUAGES will be calculating according to json files in $TRANSLATION_DIR
|
# AVAILABLE_LANGUAGES will be calculating according to json files in $TRANSLATION_DIR
|
||||||
AVAILABLE_LANGUAGES=()
|
AVAILABLE_LANGUAGES=()
|
||||||
BUILD_LANGUAGES=()
|
BUILD_LANGUAGES=()
|
||||||
AVAILABLE_MODELS=("TS100" "TS80" "TS80P" "Pinecil" "MHP30" "Pinecilv2" "S60" "S60P" "TS101")
|
AVAILABLE_MODELS=("TS100" "TS80" "TS80P" "Pinecil" "MHP30" "Pinecilv2" "S60" "S60P" "S99" "TS101")
|
||||||
BUILD_MODELS=()
|
BUILD_MODELS=()
|
||||||
|
|
||||||
builder_info() {
|
builder_info() {
|
||||||
|
|||||||
Reference in New Issue
Block a user