starting convert for ESP32

Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
2025-06-15 01:43:56 +02:00
parent 2191174681
commit 5464bacc52
7 changed files with 27 additions and 14 deletions

View File

@@ -20,7 +20,7 @@ jobs:
strategy: strategy:
matrix: matrix:
idf_ver: [release-v5.4, latest] idf_ver: [release-v5.4, latest]
idf_target: [esp32s3] idf_target: [esp32c3, esp32s3, esp32p4]
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 30 timeout-minutes: 30
@@ -31,8 +31,12 @@ jobs:
with: with:
submodules: "recursive" submodules: "recursive"
- name: Delete CMakeLists.txt in components (only used for simulator build)
run: rm components/CMakeLists.txt
- name: ESP-IDF build - name: ESP-IDF build
uses: espressif/esp-idf-ci-action@v1 uses: espressif/esp-idf-ci-action@v1
with: with:
esp_idf_version: ${{ matrix.idf_ver }} esp_idf_version: ${{ matrix.idf_ver }}
target: ${{ matrix.idf_target }} target: ${{ matrix.idf_target }}
command: idf.py -DSDKCONFIG_DEFAULTS="sdkconfig.defaults;sdkconfig.release" build

View File

@@ -1,11 +1,9 @@
if (DEFINED ENV{IDF_PATH}) if (NOT DEFINED ENV{IDF_PATH})
return() add_library(components INTERFACE)
endif ()
add_library(components INTERFACE) add_subdirectory(imgui)
add_subdirectory(insa)
add_subdirectory(ruth)
add_subdirectory(imgui) target_link_libraries(components INTERFACE ImGui)
add_subdirectory(insa) endif ()
add_subdirectory(ruth)
target_link_libraries(components INTERFACE ImGui)

View File

@@ -1,4 +1,9 @@
idf_component_register( idf_component_register(SRCS
SRCS "main.c"
"main.c" "setup.c" "button_handling.c" "setup.c"
INCLUDE_DIRS ".") "button_handling.c"
INCLUDE_DIRS "."
REQUIRES
insa
ruth
)

View File

@@ -0,0 +1,2 @@
# default ESP target
CONFIG_IDF_TARGET="esp32c3"

View File

@@ -0,0 +1,2 @@
# default ESP target
CONFIG_IDF_TARGET="esp32h2"

View File

@@ -0,0 +1,2 @@
# default ESP target
CONFIG_IDF_TARGET="esp32p4"

0
sdkconfig.release Normal file
View File