Phase 2: LittleFS storage manager on /spiffs + shared SPI2_HOST bus
This commit is contained in:
14
main/main.c
14
main/main.c
@@ -1,19 +1,21 @@
|
||||
/*
|
||||
* MTG RFID Companion - Entry point
|
||||
*
|
||||
* Phase 1: Boot scaffold. Subsequent phases attach managers here.
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include "freertos/FreeRTOS.h"
|
||||
#include "freertos/task.h"
|
||||
#include "esp_log.h"
|
||||
#include "spi_bus_manager.h"
|
||||
#include "storage_manager.h"
|
||||
|
||||
static const char *TAG = "MAIN";
|
||||
|
||||
void app_main(void)
|
||||
{
|
||||
ESP_LOGI(TAG, "MTG RFID Companion booting...");
|
||||
|
||||
ESP_ERROR_CHECK(spi_bus_manager_init());
|
||||
ESP_ERROR_CHECK(storage_manager_init());
|
||||
|
||||
ESP_LOGI(TAG, "Boot sequence complete. Ready for Phase 3+.");
|
||||
|
||||
while (1) {
|
||||
vTaskDelay(pdMS_TO_TICKS(1000));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user