]> git.zerfleddert.de Git - rsbs2/commitdiff
decrease CPU frequency from 8 to 1MHz
authorMichael Gernoth <michael@gernoth.net>
Mon, 23 Aug 2010 18:17:34 +0000 (20:17 +0200)
committerMichael Gernoth <michael@gernoth.net>
Mon, 23 Aug 2010 18:17:34 +0000 (20:17 +0200)
bmc/Makefile

index 5c1c4a49312b2a2ee6d7912ed504c540507d9835..6f27e42936c7c4398b6468be61d8ce465e1d88da 100644 (file)
@@ -2,10 +2,12 @@ PROG=dragon_jtag
 PORT=usb
 PMCU=m16
 GCCMCU=atmega16
 PORT=usb
 PMCU=m16
 GCCMCU=atmega16
+#Fuses for 1MHz:
+#avrdude -v -p m16 -U lfuse:w:0xa1:m -U hfuse:w:0x19:m
 
 CPUFLAG=-mmcu=$(GCCMCU)
 CC=avr-gcc
 
 CPUFLAG=-mmcu=$(GCCMCU)
 CC=avr-gcc
-CFLAGS=$(CPUFLAG) -DF_CPU=8000000UL -Wall -g
+CFLAGS=$(CPUFLAG) -DF_CPU=1000000UL -Wall -g
 LDFLAGS=$(CPUFLAG)
 OBJCOPY=avr-objcopy
 
 LDFLAGS=$(CPUFLAG)
 OBJCOPY=avr-objcopy
 
Impressum, Datenschutz