Files
esp_llcc68_driver/CMakeLists.txt

21 lines
598 B
CMake

idf_component_register(
SRCS
src/hal_spi.cpp
INCLUDE_DIRS
inc/
REQUIRES
driver
app_utils
app_constant
)
# Map ESP-IDF Kconfig options to existing compile-time macros used in the codebase.
if (CONFIG_LLCC68_SPI_IGNORE_INVALID_STATUS_CHECK)
target_compile_definitions(${COMPONENT_LIB} PUBLIC APP_SPI_DISABLE_INVALID_STATUS_CHECK)
endif()
if (CONFIG_LLCC68_RADIO_DISABLE_CALIBRATION)
target_compile_definitions(${COMPONENT_LIB} PUBLIC APP_RADIO_DISABLE_CALIBRATION)
endif()