Commit 1a6a0d63593948460181cdaae4ac3573d852b1fb
receivedTue, 13. Aug 2024, 07:42:32 (by user sx)
Tue, 13 Aug 2024 05:42:32 +0000 (07:42 +0200)
authorManfred Steiner <sx@htl-kaindorf.at>
Tue, 13 Aug 2024 05:42:28 +0000 (07:42 +0200)
committerManfred Steiner <sx@htl-kaindorf.at>
Tue, 13 Aug 2024 05:42:28 +0000 (07:42 +0200)
software/arduino-nano-5v/test_2024-07-23/Makefile

index e4da4c1669bd5b81844c047e44f3639f6285c9cb..2045d5953fe43898ce6541eafc9bb1e7352152d9 100644 (file)
@@ -15,11 +15,11 @@ OBJ_SIM = $(OBJ_SIM_CPP:src/%.c=sim/build/%.o)
 DEVICE=atmega328p
 
 CC= avr-g++
-CFLAGS= -Wall -mmcu=$(DEVICE) -Os -DF_CPU=12000000 -c
-LFLAGS= -Wall -mmcu=$(DEVICE) -Os -DF_CPU=12000000 -Wl,-u,vfprintf -lprintf_flt -lm
+CFLAGS= -Wall -mmcu=$(DEVICE) -Os -DF_CPU=16000000 -c
+LFLAGS= -Wall -mmcu=$(DEVICE) -Os -DF_CPU=16000000 -Wl,-u,vfprintf -lprintf_flt -lm
 
-CFLAGS_SIM= -Wall -mmcu=$(DEVICE) -Og -DF_CPU=12000000 -g -c -c
-LFLAGS_SIM= -Wall -mmcu=$(DEVICE) -Og -DF_CPU=12000000 -g -Wl,-u,vfprintf -lprintf_flt -lm
+CFLAGS_SIM= -Wall -mmcu=$(DEVICE) -Og -DF_CPU=16000000 -g -c -c
+LFLAGS_SIM= -Wall -mmcu=$(DEVICE) -Og -DF_CPU=16000000 -g -Wl,-u,vfprintf -lprintf_flt -lm
 
 
 all: dist/$(NAME).elf dist/$(NAME).s dist/$(NAME).hex sim/$(NAME).elf sim/$(NAME).s info
@@ -113,18 +113,18 @@ picocom2:
        picocom -b 115200 --omap crlf --raise-dtr /dev/ttyUSB2
 
 
-isp-644p:
-       avrdude -c usbasp -p m644p
+isp-328p:
+       avrdude -c usbasp -p m328p
 
-isp-flash-644p: dist/$(NAME).elf all
-       avrdude -c usbasp -p m644p -e -U flash:w:$<
+isp-flash-328p: dist/$(NAME).elf all
+       avrdude -c usbasp -p m328p -e -U flash:w:$<
 
-flash-644p: dist/$(NAME).elf all
-       avrdude -c arduino -p m644p -P /dev/ttyUSB0 -b 115200 -e -U flash:w:$<
+flash-328pp: dist/$(NAME).elf all
+       avrdude -c arduino -p m328p -P /dev/ttyUSB0 -b 115200 -e -U flash:w:$<
 
 
-isp-fuse-644p:
-       avrdude -c usbasp -p m644p -U lfuse:w:0xFF:m -U hfuse:w:0xD9:m -U efuse:w:0xFF:m -U lock:w:0xFF:m
+isp-fuse-328p:
+       avrdude -c usbasp -p m328p -U lfuse:w:0xFF:m -U hfuse:w:0xD9:m -U efuse:w:0xFF:m -U lock:w:0xFF:m
 
 clean:
        @rm -r dist