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,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) {