feat: add Kconfig options for SPI status check and radio calibration
This commit is contained in:
@ -9,13 +9,12 @@ idf_component_register(
|
||||
app_constant
|
||||
)
|
||||
|
||||
option(APP_SPI_DISABLE_INVALID_STATUS_CHECK "make driver ignore `SPI_CMD_INVALID` error" OFF)
|
||||
if (APP_SPI_DISABLE_INVALID_STATUS_CHECK)
|
||||
# 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()
|
||||
|
||||
option(APP_RADIO_DISABLE_CALIBRATION "Disable radio calibration" ON)
|
||||
if (APP_RADIO_DISABLE_CALIBRATION)
|
||||
if (CONFIG_LLCC68_RADIO_DISABLE_CALIBRATION)
|
||||
target_compile_definitions(${COMPONENT_LIB} PUBLIC APP_RADIO_DISABLE_CALIBRATION)
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user