Phase 1: ESP-IDF v5 project scaffold, custom partitions, managed deps, AGENTS.md hardware context

This commit is contained in:
2026-09-09 16:30:25 +02:00
commit 1771525c06
9 changed files with 2495 additions and 0 deletions

4
main/CMakeLists.txt Normal file
View File

@@ -0,0 +1,4 @@
idf_component_register(SRCS
"main.c"
INCLUDE_DIRS "."
)

6
main/idf_component.yml Normal file
View File

@@ -0,0 +1,6 @@
## IDF Component Manager dependencies for MTG RFID Companion
## NOTE: espressif/esp_lcd is a built-in IDF component - do NOT declare it here.
dependencies:
idf: ">=5.0"
abobija/rc522: "*"
joltwallet/littlefs: "*"

20
main/main.c Normal file
View File

@@ -0,0 +1,20 @@
/*
* 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"
static const char *TAG = "MAIN";
void app_main(void)
{
ESP_LOGI(TAG, "MTG RFID Companion booting...");
while (1) {
vTaskDelay(pdMS_TO_TICKS(1000));
}
}