ESP32 Code zur Laser-Steuerung
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. # NOTE: This file is only used for configuring CLion, use regular `make` for building.
  2. set (IDF_PATH "/home/spanz/esp/esp-idf/")
  3. cmake_minimum_required(VERSION 3.9)
  4. project(laserpong C)
  5. set(CMAKE_SYSTEM_NAME xtensa-esp32-elf)
  6. set(CMAKE_C_COMPILER xtensa-esp32-elf-gcc)
  7. set(CMAKE_FIND_ROOT_PATH /home/spanz/esp/xtensa-esp32-elf/)
  8. set(CMAKE_CXX_STANDARD 11)
  9. set(CMAKE_C_STANDARD 11)
  10. file(GLOB_RECURSE SOURCES "${IDF_PATH}/*.c")
  11. set(COMPONENTS
  12. app_trace
  13. app_update
  14. aws_iot
  15. bootloader
  16. bootloader_support
  17. bt
  18. coap
  19. console
  20. cxx
  21. driver
  22. esp32
  23. esp_adc_cal
  24. espcoredump
  25. esptool_py
  26. ethernet
  27. expat
  28. fatfs
  29. freertos
  30. heap
  31. idf_test
  32. jsmn
  33. json
  34. libsodium
  35. log
  36. lwip
  37. mbedtls
  38. mdns
  39. micro-ecc
  40. newlib
  41. nghttp
  42. nvs_flash
  43. openssl
  44. partition_table
  45. pthread
  46. sdmmc
  47. soc
  48. spiffs
  49. spi_flash
  50. tcpip_adapter
  51. ulp
  52. vfs
  53. wear_levelling
  54. wpa_supplicant
  55. xtensa-debug-module)
  56. set (INCLUDE_DIRS "")
  57. foreach (component ${COMPONENTS})
  58. list (APPEND INCLUDE_DIRS ${IDF_PATH}/components/${component}/include)
  59. endforeach()
  60. list(REMOVE_DUPLICATES INCLUDE_DIRS)
  61. include_directories(${INCLUDE_DIRS})
  62. include_directories(${IDF_PATH}/components/soc/esp32/include)
  63. include_directories("build/include")
  64. #include_directories("components/arduino-esp32/cores/esp32/")
  65. #include_directories("components/OneWire/")
  66. #include_directories("components/Arduino-Temperature-Control-Library/")
  67. set(SOURCE_FILES
  68. main/laserpong_main.c
  69. # components/OneWire/OneWire.cpp
  70. )
  71. list(APPEND SOURCE_FILES ${SOURCES})
  72. add_executable(laserpong ${SOURCE_FILES})