feat(idf): socle projet ESP-IDF qui boote
Création du squelette ESP-IDF minimal coexistant avec le code Arduino existant (src/, platformio.ini). Le build IDF ignore les sources Arduino. app_main() log une bannière de boot et un heartbeat toutes les 5 s. Validé sur carte ESP32 classique (A1S AudioKit) : build OK (rtc_bl_phone.bin 158 KB), flash et boot observés en série.
This commit is contained in:
@@ -435,3 +435,10 @@ docs/specs/tone_plan_wav_assets/assets
|
||||
docs/wav_clean_8k/
|
||||
docs/wav_ptt_vintage_8k/
|
||||
|
||||
# ESP-IDF
|
||||
/build/
|
||||
/sdkconfig
|
||||
/sdkconfig.old
|
||||
/dependencies.lock
|
||||
/managed_components/
|
||||
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
cmake_minimum_required(VERSION 3.16)
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
project(rtc_bl_phone)
|
||||
@@ -0,0 +1,5 @@
|
||||
idf_component_register(
|
||||
SRCS "app_main.c"
|
||||
INCLUDE_DIRS "."
|
||||
REQUIRES nvs_flash
|
||||
)
|
||||
@@ -0,0 +1,15 @@
|
||||
#include "esp_log.h"
|
||||
#include "freertos/FreeRTOS.h"
|
||||
#include "freertos/task.h"
|
||||
|
||||
static const char *TAG = "rtc_phone";
|
||||
|
||||
void app_main(void)
|
||||
{
|
||||
ESP_LOGI(TAG, "RTC BL PHONE — socle ESP-IDF v5.4 (esp32 classique)");
|
||||
ESP_LOGI(TAG, "boot OK — aucun driver chargé (Phase 1)");
|
||||
while (true) {
|
||||
ESP_LOGI(TAG, "heartbeat");
|
||||
vTaskDelay(pdMS_TO_TICKS(5000));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user