diff --git a/.gitignore b/.gitignore index 4010182..5e1d720 100644 --- a/.gitignore +++ b/.gitignore @@ -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/ + diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..073e01e --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,3 @@ +cmake_minimum_required(VERSION 3.16) +include($ENV{IDF_PATH}/tools/cmake/project.cmake) +project(rtc_bl_phone) diff --git a/main/CMakeLists.txt b/main/CMakeLists.txt new file mode 100644 index 0000000..2de178d --- /dev/null +++ b/main/CMakeLists.txt @@ -0,0 +1,5 @@ +idf_component_register( + SRCS "app_main.c" + INCLUDE_DIRS "." + REQUIRES nvs_flash +) diff --git a/main/app_main.c b/main/app_main.c new file mode 100644 index 0000000..645fc74 --- /dev/null +++ b/main/app_main.c @@ -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)); + } +}