From: Drew Fisher Date: Tue, 20 Apr 2010 03:30:49 +0000 (-0400) Subject: Modify Makefile to work (fuses, clock rate, etc) X-Git-Url: https://git.zarvox.org/shortlog/month?a=commitdiff_plain;h=de5c69931e04d853a6d724ee2b96226129ab7c70;p=usbsnes.git Modify Makefile to work (fuses, clock rate, etc) --- diff --git a/Makefile b/Makefile index 6bdbb5b..fa79efa 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,10 @@ 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 @@ -113,6 +113,9 @@ fuse: 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