CMakeLists.txt 800 B

123456789101112131415161718192021222324252627282930313233
  1. set(srcs
  2. "can.c"
  3. "gpio.c"
  4. "i2c.c"
  5. "i2s.c"
  6. "ledc.c"
  7. "mcpwm.c"
  8. "pcnt.c"
  9. "periph_ctrl.c"
  10. "rmt.c"
  11. "rtc_module.c"
  12. "sdio_slave.c"
  13. "sdmmc_host.c"
  14. "sdmmc_transaction.c"
  15. "sdspi_crc.c"
  16. "sdspi_host.c"
  17. "sdspi_transaction.c"
  18. "sigmadelta.c"
  19. "spi_common.c"
  20. "spi_master.c"
  21. "spi_slave.c"
  22. "timer.c"
  23. "uart.c")
  24. idf_component_register(SRCS "${srcs}"
  25. INCLUDE_DIRS "include"
  26. PRIV_INCLUDE_DIRS "include/driver"
  27. REQUIRES esp_ringbuf soc) #cannot totally hide soc headers, since there are a lot arguments in the driver are chip-dependent
  28. if(GCC_NOT_5_2_0)
  29. # uses C11 atomic feature
  30. set_source_files_properties(spi_master.c PROPERTIES COMPILE_FLAGS -std=gnu11)
  31. endif()