DEVICE = atmega328p
F_CPU = 18000000 # in Hz
-FUSE_L = # see below for fuse values for particular devices
-FUSE_H =
+FUSE_L = 0xd7# see below for fuse values for particular devices
+FUSE_H = 0xd9
-AVRDUDE = avrdude -c stk500v2 -p $(DEVICE) # edit this line for your programmer
+AVRDUDE = avrdude -c stk500 -B 2 -p $(DEVICE) -P /dev/ttyACM0 # edit this line for your programmer
CFLAGS = -Iusbdrv -I. -DDEBUG_LEVEL=0
OBJECTS = usbdrv/usbdrv.o usbdrv/usbdrvasm.o usbdrv/oddebug.o main.o snes.o
flash: main.hex
$(AVRDUDE) -U flash:w:main.hex:i
+terminal:
+ $(AVRDUDE) -t
+
# rule for deleting dependent files (those which can be built by Make):
clean:
rm -f main.hex main.lst main.obj main.cof main.list main.map main.eep.hex main.elf *.o usbdrv/*.o main.s usbdrv/oddebug.s usbdrv/usbdrv.s