Initial commit

This commit is contained in:
2025-07-07 18:41:05 +03:00
parent d7433e9370
commit 3f19e91389
11 changed files with 24 additions and 0 deletions

8
CMakeLists.txt Normal file
View File

@@ -0,0 +1,8 @@
idf_build_get_property(target IDF_TARGET)
set(srcs "src/component.c")
set(public_include "include")
idf_component_register(SRCS ${srcs}
INCLUDE_DIRS ${public_include}
)

0
Kconfig Normal file
View File

0
include/component.h Normal file
View File

0
src/component.c Normal file
View File

View File

@@ -0,0 +1,8 @@
# This is the project CMakeLists.txt file for the test subproject
cmake_minimum_required(VERSION 3.16)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
set(COMPONENTS main)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(component_test)

View File

View File

@@ -0,0 +1,8 @@
set(srcs "test_app_main.c"
"test_component.c")
# In order for the cases defined by `TEST_CASE` to be linked into the final elf,
# the component can be registered as WHOLE_ARCHIVE
idf_component_register(SRCS ${srcs}
PRIV_REQUIRES unity esp_driver_gpio spi_flash esp_psram
WHOLE_ARCHIVE)

View File

View File

View File