diff Makefile @ 7:52cb08a01171

serial prints something
author Matt Johnston <matt@ucc.asn.au>
date Fri, 18 May 2012 19:15:40 +0800
parents 9d538f674ff0
children 7da9a3f23592
line wrap: on
line diff
--- a/Makefile	Mon May 14 00:22:57 2012 +0800
+++ b/Makefile	Fri May 18 19:15:40 2012 +0800
@@ -17,10 +17,12 @@
 #                   default_serial = "avrdoper"
 # FUSES ........ Parameters for avrdude to flash the fuses appropriately.
 
-DEVICE     = atmega168
+DEVICE     = atmega328
+PROGDEVICE     = atmega328p
 CLOCK      = 1000000
 PROGRAMMER = #-c stk500v2 -P avrdoper
-OBJECTS    = main.o ff.o mmc.o onewire.o
+PROGRAMMER = -c stk500 -P ~/dev/stk500 -p $(PROGDEVICE) 
+OBJECTS    = main.o #ff.o mmc.o onewire.o
 LIBS       = -lm
 FUSES      = -U hfuse:w:0xd9:m -U lfuse:w:0x24:m
 
@@ -49,7 +51,7 @@
 
 # Tune the lines below only if you know what you are doing:
 
-AVRDUDE = avrdude $(PROGRAMMER) -p $(DEVICE)
+AVRDUDE = avrdude $(PROGRAMMER) 
 COMPILE = avr-gcc -Wall -Os -DF_CPU=$(CLOCK) -mmcu=$(DEVICE) -g -std=c99 -mcall-prologues
 
 # symbolic targets: