mirror of
https://github.com/Laxilef/OTGateway.git
synced 2026-11-30 18:23:03 +05:00
refactor: rename the Core task manager to App
This commit is contained in:
1 parent
7f57af0129
commit
de1e43c707
10 files changed
+45
-45
No files matched your search
+7
-7
@@ -19,7 +19,7 @@
|
||||
// Vars
|
||||
Sensors::Result sensorsResults[SENSORS_AMOUNT];
|
||||
|
||||
TaskManager coreTaskManager("Core");
|
||||
TaskManager appTaskManager("App");
|
||||
TaskManager systemTaskManager("System");
|
||||
TaskManager openthermTaskManager("OpenTherm");
|
||||
TaskManager sensorsTaskManager("Sensors");
|
||||
@@ -74,13 +74,13 @@ extern "C" void app_main() {
|
||||
}
|
||||
ESP_LOGI(L_MAIN, "Started %s task manager", openthermTaskManager.name());
|
||||
|
||||
// Core runs control and MQTT tasks; poll their intervals every 100 ms.
|
||||
if (!coreTaskManager.asyncStart(4608, 4, tskNO_AFFINITY, 100, false)) {
|
||||
esp_system_abort("Failed to start Core task manager");
|
||||
// App runs control and MQTT tasks; poll their intervals every 100 ms.
|
||||
if (!appTaskManager.asyncStart(4608, 4, tskNO_AFFINITY, 100, false)) {
|
||||
esp_system_abort("Failed to start App task manager");
|
||||
}
|
||||
ESP_LOGI(L_MAIN, "Started %s task manager", coreTaskManager.name());
|
||||
ESP_LOGI(L_MAIN, "Started %s task manager", appTaskManager.name());
|
||||
|
||||
// System keeps maintenance, networking and restart handling active during Core pauses.
|
||||
// System keeps maintenance, networking and restart handling active during App pauses.
|
||||
if (!systemTaskManager.asyncStart(5120, 3, tskNO_AFFINITY, 100, false)) {
|
||||
esp_system_abort("Failed to start System task manager");
|
||||
}
|
||||
@@ -91,7 +91,7 @@ extern "C" void app_main() {
|
||||
sensorsCore = CONFIG_BT_NIMBLE_PINNED_TO_CORE;
|
||||
#endif
|
||||
|
||||
// Keep physical sensor I/O and result processing outside the Core worker.
|
||||
// Keep physical sensor I/O and result processing outside the App worker.
|
||||
if (!sensorsTaskManager.asyncStart(4096, 4, sensorsCore, 1000, false)) {
|
||||
esp_system_abort("Failed to start Sensors task manager");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user