22 lines
658 B
CMake
22 lines
658 B
CMake
idf_component_register(
|
|
SRCS
|
|
src/hal_spi.cpp
|
|
INCLUDE_DIRS
|
|
inc/
|
|
REQUIRES
|
|
driver
|
|
app_utils
|
|
app_constant
|
|
)
|
|
|
|
option(APP_SPI_DISABLE_INVALID_STATUS_CHECK "make driver ignore `SPI_CMD_INVALID` error" OFF)
|
|
if (APP_SPI_DISABLE_INVALID_STATUS_CHECK)
|
|
target_compile_definitions(${COMPONENT_LIB} PUBLIC APP_SPI_DISABLE_INVALID_STATUS_CHECK)
|
|
endif()
|
|
|
|
option(APP_RADIO_DISABLE_CALIBRATION "Disable radio calibration" ON)
|
|
if (APP_RADIO_DISABLE_CALIBRATION)
|
|
target_compile_definitions(${COMPONENT_LIB} PUBLIC APP_RADIO_DISABLE_CALIBRATION)
|
|
endif()
|
|
|