Makefile 740 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Project name
  2. NAME := dht-i2c
  3. # Project source files
  4. SRCS := dht.c \
  5. main.c \
  6. i2c_slave.c \
  7. util.c
  8. # Project fuse bits
  9. # 16 Mhz PLL, WDTon, BOD 2.7
  10. LFUSE := 0xF1
  11. HFUSE := 0xCD
  12. EFUSE := 0xFF
  13. # CPU speed, in Hz
  14. F_CPU := 16000000UL
  15. # Architecture configuration
  16. GCC_ARCH := attiny85
  17. AVRDUDE_ARCH := t85
  18. FUNC_STACK_LIMIT :=
  19. # Programmer selection.
  20. # Values can be: avrisp2, mysmartusb
  21. PROGRAMMER := avrisp2
  22. # Additional compiler flags
  23. I2CS_EXPECTED_KHZ := 40
  24. CFLAGS := -DI2CS_MAX_NR_SLAVES=1 \
  25. -DI2CS_CLKSTRETCH_WORKAROUND \
  26. -DI2CS_EXPECTED_KHZ=$(I2CS_EXPECTED_KHZ)
  27. LDFLAGS :=
  28. # Additional "clean" and "distclean" target files
  29. CLEAN_FILES :=
  30. DISTCLEAN_FILES :=
  31. include avrmakelib.mk