CMakeLists.txt 777 B

1234567891011121314151617181920212223242526
  1. idf_build_get_property(target IDF_TARGET)
  2. if(${target} STREQUAL "linux")
  3. return() # This component is not supported by the POSIX/Linux simulator
  4. endif()
  5. set(srcs "spi_bus_lock.c")
  6. set(public_include "include")
  7. if(CONFIG_SOC_GPSPI_SUPPORTED)
  8. list(APPEND srcs "src/gpspi/spi_common.c"
  9. "src/gpspi/spi_master.c"
  10. "src/gpspi/spi_slave.c")
  11. endif()
  12. if(CONFIG_SOC_SPI_SUPPORT_SLAVE_HD_VER2)
  13. list(APPEND srcs "src/gpspi/spi_slave_hd.c")
  14. endif()
  15. idf_component_register(SRCS ${srcs}
  16. INCLUDE_DIRS ${public_include}
  17. REQUIRES esp_pm
  18. PRIV_REQUIRES esp_timer esp_mm esp_driver_gpio esp_ringbuf
  19. LDFRAGMENTS "linker.lf"
  20. )