refactor(architecture): unify facade headers and remove unused lcd dependency

This commit is contained in:
admin
2026-02-26 11:11:45 +08:00
parent 4526dad056
commit e6a6b69ced
52 changed files with 441 additions and 612 deletions

View File

@@ -1,4 +1,4 @@
#include "image_generation.h"
#include "domain.h"
#include <stdio.h>
#include <stdlib.h>
@@ -11,8 +11,6 @@
#include "esp_http_client.h"
#include "esp_log.h"
#include "esp_timer.h"
#include "runtime_diagnostics.h"
#include "runtime_policy.h"
#include "freertos/FreeRTOS.h"
#include "freertos/semphr.h"
#include "freertos/task.h"

View File

@@ -1,16 +1,13 @@
#include "printer_protocol.h"
#include "domain.h"
#include "printer_protocol_internal.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "ble_printer_client.h"
#include "esp_heap_caps.h"
#include "esp_log.h"
#include "esp_timer.h"
#include "runtime_diagnostics.h"
#include "runtime_policy.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"

View File

@@ -1,11 +1,9 @@
#include "printer_protocol.h"
#include "domain.h"
#include "printer_protocol_internal.h"
#include <stdio.h>
#include <string.h>
#include "ble_printer_client.h"
#include "runtime_policy.h"
esp_err_t printer_protocol_gap_move(uint32_t timeout_ms, char *err, size_t err_len) {
if (!ble_printer_client_is_connected()) {

View File

@@ -1,4 +1,4 @@
#include "printer_protocol.h"
#include "domain.h"
#include "printer_protocol_internal.h"
#include <stdio.h>
@@ -7,8 +7,6 @@
#include "esp_log.h"
#include "esp_timer.h"
#include "runtime_diagnostics.h"
#include "runtime_policy.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"

View File

@@ -1,15 +1,12 @@
#include "printer_protocol.h"
#include "domain.h"
#include "printer_protocol_internal.h"
#include <math.h>
#include <stdio.h>
#include <string.h>
#include "ble_printer_client.h"
#include "esp_log.h"
#include "esp_timer.h"
#include "runtime_diagnostics.h"
#include "runtime_policy.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"

View File

@@ -1,4 +1,4 @@
#include "raster_tools.h"
#include "domain.h"
#include <stdbool.h>
#include <stdio.h>

View File

@@ -1,4 +1,4 @@
#include "raster_tools.h"
#include "domain.h"
#include <stdbool.h>
#include <stdio.h>

View File

@@ -1,15 +1,6 @@
#include "system_runtime.h"
#include "platform_bootstrap.h"
#include "wifi_manager.h"
static bool s_runtime_started;
#include "domain.h"
esp_err_t system_runtime_start(void) {
if (s_runtime_started) {
return ESP_OK;
}
esp_err_t err = platform_bootstrap_init();
if (err != ESP_OK) {
return err;
@@ -17,21 +8,16 @@ esp_err_t system_runtime_start(void) {
err = wifi_manager_start();
if (err != ESP_OK) {
// Reset platform state so lifecycle retry runs from a clean baseline.
(void)wifi_manager_stop();
return err;
}
s_runtime_started = true;
return ESP_OK;
}
esp_err_t system_runtime_shutdown(void) {
if (!s_runtime_started) {
return ESP_OK;
}
esp_err_t err = wifi_manager_stop();
s_runtime_started = false;
return err;
return wifi_manager_stop();
}
esp_err_t system_runtime_bootstrap(void) {

View File

@@ -6,7 +6,6 @@
#include "esp_crt_bundle.h"
#include "esp_log.h"
#include "voice_audio.h"
static const char *TAG = "voice_interaction";

View File

@@ -14,7 +14,6 @@
#include "esp_system.h"
#include "esp_timer.h"
#include "freertos/idf_additions.h"
#include "voice_audio.h"
static const char *TAG = "voice_interaction";

View File

@@ -6,9 +6,7 @@
#include <string.h>
#include "esp_log.h"
#include "image_generation.h"
#include "printer_protocol.h"
#include "raster_tools.h"
#include "domain.h"
static const char *TAG = "voice_interaction";

View File

@@ -4,7 +4,6 @@
#include "esp_audio_enc.h"
#include "esp_log.h"
#include "voice_audio.h"
static const char *TAG = "voice_interaction";

View File

@@ -2,7 +2,6 @@
#include "esp_audio_dec.h"
#include "esp_log.h"
#include "voice_audio.h"
static const char *TAG = "voice_interaction";