document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. #Project: blinkled
  2. #Author: Eleonora Piccinelli, Santa Chiara Lab Siena
  3.  
  4. PROJECT= blinkled_eleonora
  5. SOURCES=$(PROJECT).c
  6. MMCU=attiny44
  7. F_CPU = 20000000
  8.  
  9. CFLAGS=-mmcu=$(MMCU) -Wall -Os -DF_CPU=$(F_CPU)
  10.  
  11. $(PROJECT).hex: $(PROJECT).out
  12. avr-objcopy -O ihex $(PROJECT).out $(PROJECT).c.hex;\\
  13. avr-size --mcu=$(MMCU) --format=avr $(PROJECT).out
  14.  
  15. $(PROJECT).out: $(SOURCES)
  16. avr-gcc $(CFLAGS) -I./ -o $(PROJECT).out $(SOURCES)
  17.  
  18. program-usbtiny: $(PROJECT).hex
  19. avrdude -p t44 -P usb -c usbtiny -U flash:w:$(PROJECT).c.hex
  20.  
  21. program-usbtiny-fuses: $(PROJECT).hex
  22. avrdude -p t44 -P usb -c usbtiny -U lfuse:w:0xDE:m
');