mirror of
https://github.com/BotChain-Robots/firmware.git
synced 2026-07-08 09:37:21 +02:00
26 lines
827 B
C++
26 lines
827 B
C++
#include <cstdio>
|
|
#include <memory>
|
|
|
|
#include "freertos/FreeRTOS.h"
|
|
#include "sdkconfig.h"
|
|
|
|
#include "ConfigManager.h"
|
|
#include "LoopManager.h"
|
|
#include "TCPServer.h"
|
|
#include "WifiManager.h"
|
|
#include "esp_log.h"
|
|
#include "mDNSDiscoveryService.h"
|
|
|
|
extern "C" [[noreturn]] void app_main(void) {
|
|
ESP_LOGI("MEM", "Free internal RAM: %d",
|
|
heap_caps_get_free_size(MALLOC_CAP_8BIT));
|
|
ESP_LOGI("MEM", "Free PSRAM: %d", heap_caps_get_free_size(MALLOC_CAP_SPIRAM));
|
|
|
|
auto& config_manager = ConfigManager::get_instance(); // NOLINT - here for easily adding temporary config
|
|
|
|
const auto loop_manager = std::make_unique<LoopManager>();
|
|
xTaskCreate(reinterpret_cast<TaskFunction_t>(LoopManager::metadata_tx_loop),
|
|
"metadata_tx", 3096, loop_manager.get(), 3, nullptr);
|
|
loop_manager->control_loop();
|
|
}
|