1-Wire tester, shows ROM code and temperature on an LCD screen

CMakeLists.txt 551B

1234567891011121314151617181920212223242526272829303132
  1. cmake_minimum_required(VERSION 3.7)
  2. project(firmware)
  3. # Fake CMake config for CLion
  4. set(CMAKE_CXX_STANDARD GNU99)
  5. set(SOURCE_FILES
  6. main.c
  7. lib/calc.h
  8. lib/iopins.c
  9. lib/iopins.h
  10. lib/nsdelay.h
  11. lib/spi.c
  12. lib/spi.h
  13. lib/adc.c
  14. lib/adc.h
  15. lib/usart.c
  16. lib/usart.h
  17. lcd.c
  18. lcd.h
  19. onewire.c
  20. onewire.h
  21. )
  22. include_directories(lib
  23. /usr/avr/include/)
  24. add_definitions(-D__AVR_ATmega328P__)
  25. add_executable(firmware ${SOURCE_FILES})