refactor(architecture): unify facade headers and remove unused lcd dependency
This commit is contained in:
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
|
||||
@@ -1,12 +1,17 @@
|
||||
#include "controller_lifecycle.h"
|
||||
#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 = controller_lifecycle_start();
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user