refactor(architecture): unify facade headers and remove unused lcd dependency
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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()) {
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "raster_tools.h"
|
||||
#include "domain.h"
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "raster_tools.h"
|
||||
#include "domain.h"
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
|
||||
#include "esp_crt_bundle.h"
|
||||
#include "esp_log.h"
|
||||
#include "voice_audio.h"
|
||||
|
||||
static const char *TAG = "voice_interaction";
|
||||
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
|
||||
#include "esp_audio_enc.h"
|
||||
#include "esp_log.h"
|
||||
#include "voice_audio.h"
|
||||
|
||||
static const char *TAG = "voice_interaction";
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
#include "esp_audio_dec.h"
|
||||
#include "esp_log.h"
|
||||
#include "voice_audio.h"
|
||||
|
||||
static const char *TAG = "voice_interaction";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user