refactor(printer): remove controller legacy and unify printer naming
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
menu "TQ Controller Config"
|
||||
menu "TQ Printer Config"
|
||||
|
||||
config TQ_WIFI_PROV_SOFTAP_SSID
|
||||
string "Wi-Fi provisioning SoftAP SSID"
|
||||
@@ -37,21 +37,11 @@ config TQ_LIFECYCLE_RETRY_BACKOFF_MS
|
||||
range 100 10000
|
||||
default 800
|
||||
|
||||
config TQ_REST_PRINTER_CONNECT_TIMEOUT_MS
|
||||
int "REST printer connect timeout default (ms)"
|
||||
config TQ_PRINTER_CONNECT_TIMEOUT_MS
|
||||
int "Printer connect timeout (ms)"
|
||||
range 1000 60000
|
||||
default 15000
|
||||
|
||||
config TQ_REST_LABEL_TIMEOUT_MS
|
||||
int "REST label/offset timeout default (ms)"
|
||||
range 500 30000
|
||||
default 5000
|
||||
|
||||
config TQ_REST_OTA_STEP_TIMEOUT_MS
|
||||
int "REST OTA step timeout default (ms)"
|
||||
range 500 60000
|
||||
default 5000
|
||||
|
||||
config TQ_PRINTER_CONTROL_LOCK_TIMEOUT_MS
|
||||
int "Printer control lane lock timeout (ms)"
|
||||
range 100 5000
|
||||
@@ -78,106 +68,106 @@ config TQ_PRINTER_STOP_TIMEOUT_MS
|
||||
default 8000
|
||||
|
||||
config TQ_DIRECT_PRINTER_ENABLE
|
||||
bool "Enable direct thermal printer backend"
|
||||
bool "Enable thermal printer driver"
|
||||
default y
|
||||
|
||||
config TQ_DIRECT_PRINTER_OPERATION_TIMEOUT_MS
|
||||
int "Direct printer max operation timeout (ms)"
|
||||
int "Printer max operation timeout (ms)"
|
||||
range 1000 300000
|
||||
default 90000
|
||||
depends on TQ_DIRECT_PRINTER_ENABLE
|
||||
|
||||
config TQ_DIRECT_PRINTER_STROBE_ON_US
|
||||
int "Direct printer strobe on-time (us)"
|
||||
int "Printer strobe on-time (us)"
|
||||
range 100 10000
|
||||
default 1000
|
||||
depends on TQ_DIRECT_PRINTER_ENABLE
|
||||
|
||||
config TQ_DIRECT_PRINTER_STROBE_INTERVAL_US
|
||||
int "Direct printer strobe interval (us)"
|
||||
int "Printer strobe interval (us)"
|
||||
range 0 10000
|
||||
default 200
|
||||
depends on TQ_DIRECT_PRINTER_ENABLE
|
||||
|
||||
config TQ_DIRECT_PRINTER_MOTOR_STEP_US
|
||||
int "Direct printer motor step delay (us)"
|
||||
int "Printer motor step delay (us)"
|
||||
range 100 20000
|
||||
default 2000
|
||||
depends on TQ_DIRECT_PRINTER_ENABLE
|
||||
|
||||
config TQ_DIRECT_PRINTER_MOTOR_REVERSE
|
||||
bool "Direct printer motor direction reversed"
|
||||
bool "Printer motor direction reversed"
|
||||
default n
|
||||
depends on TQ_DIRECT_PRINTER_ENABLE
|
||||
|
||||
config TQ_DIRECT_PRINTER_STEPS_PER_LINE
|
||||
int "Direct printer motor steps per printed line"
|
||||
int "Printer motor steps per printed line"
|
||||
range 1 8
|
||||
default 2
|
||||
depends on TQ_DIRECT_PRINTER_ENABLE
|
||||
|
||||
config TQ_DIRECT_PRINTER_GAP_STEPS
|
||||
int "Direct printer gap move steps"
|
||||
int "Printer gap move steps"
|
||||
range 1 2000
|
||||
default 96
|
||||
depends on TQ_DIRECT_PRINTER_ENABLE
|
||||
|
||||
config TQ_DIRECT_PRINTER_TEMP_MIN_C
|
||||
int "Direct printer allowed minimum temperature (C)"
|
||||
int "Printer allowed minimum temperature (C)"
|
||||
range 0 120
|
||||
default 15
|
||||
depends on TQ_DIRECT_PRINTER_ENABLE
|
||||
|
||||
config TQ_DIRECT_PRINTER_TEMP_MAX_C
|
||||
int "Direct printer allowed maximum temperature (C)"
|
||||
int "Printer allowed maximum temperature (C)"
|
||||
range 1 150
|
||||
default 55
|
||||
depends on TQ_DIRECT_PRINTER_ENABLE
|
||||
|
||||
config TQ_DIRECT_PRINTER_BATTERY_MIN_PERCENT
|
||||
int "Direct printer minimum battery percent"
|
||||
int "Printer minimum battery percent"
|
||||
range 0 100
|
||||
default 5
|
||||
depends on TQ_DIRECT_PRINTER_ENABLE
|
||||
|
||||
config TQ_DIRECT_PRINTER_PAPER_PRESENT_LEVEL
|
||||
int "Direct printer paper-present GPIO level (0/1)"
|
||||
int "Printer paper-present GPIO level (0/1)"
|
||||
range 0 1
|
||||
default 0
|
||||
depends on TQ_DIRECT_PRINTER_ENABLE
|
||||
|
||||
config TQ_DIRECT_PRINTER_BATTERY_EMPTY_MV
|
||||
int "Direct printer battery empty voltage (mV)"
|
||||
int "Printer battery empty voltage (mV)"
|
||||
range 2500 5000
|
||||
default 3300
|
||||
depends on TQ_DIRECT_PRINTER_ENABLE
|
||||
|
||||
config TQ_DIRECT_PRINTER_BATTERY_FULL_MV
|
||||
int "Direct printer battery full voltage (mV)"
|
||||
int "Printer battery full voltage (mV)"
|
||||
range 2600 6000
|
||||
default 4200
|
||||
depends on TQ_DIRECT_PRINTER_ENABLE
|
||||
|
||||
config TQ_DIRECT_PRINTER_BATTERY_DIVIDER_RATIO_X1000
|
||||
int "Direct printer battery divider ratio x1000"
|
||||
int "Printer battery divider ratio x1000"
|
||||
range 1000 10000
|
||||
default 2000
|
||||
depends on TQ_DIRECT_PRINTER_ENABLE
|
||||
|
||||
config TQ_DIRECT_PRINTER_NTC_PULLUP_OHMS
|
||||
int "Direct printer NTC pull-up resistor (ohms)"
|
||||
int "Printer NTC pull-up resistor (ohms)"
|
||||
range 1000 200000
|
||||
default 10000
|
||||
depends on TQ_DIRECT_PRINTER_ENABLE
|
||||
|
||||
config TQ_DIRECT_PRINTER_NTC_R25_OHMS
|
||||
int "Direct printer NTC R25 resistance (ohms)"
|
||||
int "Printer NTC R25 resistance (ohms)"
|
||||
range 1000 200000
|
||||
default 10000
|
||||
depends on TQ_DIRECT_PRINTER_ENABLE
|
||||
|
||||
config TQ_DIRECT_PRINTER_NTC_BETA
|
||||
int "Direct printer NTC beta constant"
|
||||
int "Printer NTC beta constant"
|
||||
range 1000 10000
|
||||
default 3950
|
||||
depends on TQ_DIRECT_PRINTER_ENABLE
|
||||
|
||||
Reference in New Issue
Block a user