chore(repo): keep only current main snapshot

History squashed to one root commit to permanently drop old branch history and objects.
This commit is contained in:
admin
2026-02-28 16:41:12 +08:00
commit 8df2095acf
89 changed files with 21634 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
idf_component_register(
SRCS
"src/app_main.c"
INCLUDE_DIRS
"include"
PRIV_INCLUDE_DIRS
"internal"
REQUIRES
control_plane
)

View File

@@ -0,0 +1,8 @@
# App Composition Layer
Purpose: top-level assembly only.
Rules:
- `app_main` wires components, startup order, and shutdown hooks.
- No feature/business logic in composition code.
- No direct hardware operations outside platform abstractions.

View File

@@ -0,0 +1,13 @@
#pragma once
#include "esp_err.h"
#ifdef __cplusplus
extern "C" {
#endif
esp_err_t app_composition_start(void);
#ifdef __cplusplus
}
#endif

View File

View File

@@ -0,0 +1,21 @@
#include "app_composition.h"
#include "control_plane.h"
#include "esp_err.h"
#include "esp_log.h"
static const char *TAG = "app_main";
esp_err_t app_composition_start(void) {
return controller_lifecycle_start();
}
void app_main(void) {
esp_err_t rc = app_composition_start();
if (rc != ESP_OK) {
ESP_LOGE(TAG, "Controller lifecycle start failed: %s", esp_err_to_name(rc));
return;
}
ESP_LOGI(TAG, "TQ controller started");
}