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:
10
components/app_composition/CMakeLists.txt
Normal file
10
components/app_composition/CMakeLists.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
idf_component_register(
|
||||
SRCS
|
||||
"src/app_main.c"
|
||||
INCLUDE_DIRS
|
||||
"include"
|
||||
PRIV_INCLUDE_DIRS
|
||||
"internal"
|
||||
REQUIRES
|
||||
control_plane
|
||||
)
|
||||
8
components/app_composition/README.md
Normal file
8
components/app_composition/README.md
Normal 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.
|
||||
0
components/app_composition/include/.gitkeep
Normal file
0
components/app_composition/include/.gitkeep
Normal file
13
components/app_composition/include/app_composition.h
Normal file
13
components/app_composition/include/app_composition.h
Normal 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
|
||||
0
components/app_composition/internal/.gitkeep
Normal file
0
components/app_composition/internal/.gitkeep
Normal file
0
components/app_composition/src/.gitkeep
Normal file
0
components/app_composition/src/.gitkeep
Normal file
21
components/app_composition/src/app_main.c
Normal file
21
components/app_composition/src/app_main.c
Normal 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");
|
||||
}
|
||||
Reference in New Issue
Block a user