diff options
author | Daniel Friesel <derf@finalrewind.org> | 2013-10-08 20:53:04 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2013-10-08 20:53:04 +0200 |
commit | 8a1bf760fc11a2d589825e9330dc0bc6cb9a05b1 (patch) | |
tree | 004fa2571bbc0ed16c76ab367d42ee53a759b0ce /Makefile | |
parent | da5fa098349a6682087b6bfade8a5575ec28dc49 (diff) |
read ROM: improve post-byte code efficiency
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -1,4 +1,3 @@ -MCU ?= attiny2313 AVRDUDE_PROGRAMMER ?= usbasp AVRCC ?= avr-gcc @@ -7,8 +6,8 @@ AVRNM ?= avr-nm AVROBJCOPY ?= avr-objcopy AVROBJDUMP ?= avr-objdump -CFLAGS += -mmcu=attiny2313 -DF_CPU=20000000UL -#CFLAGS += -gdwarf-2 -fverbose-asm -save-temps +CFLAGS += -mmcu=attiny2313a -DF_CPU=20000000UL +#CFLAGS += -gdwarf-2 -fverbose-asm CFLAGS += -I. -std=gnu99 -Os -Wall -Wextra -pedantic CFLAGS += -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums # r28 .. r31 hold the microsecond counters @@ -31,7 +30,7 @@ main.elf: main.c avr-size -d $@ program: main.hex main.eep - ${AVRFLASH} -p ${MCU} -c ${AVRDUDE_PROGRAMMER} ${AVRFLAGS} + ${AVRFLASH} -p attiny2313 -c ${AVRDUDE_PROGRAMMER} ${AVRFLAGS} secsize: main.elf ${AVROBJDUMP} -hw -j.text -j.bss -j.data main.elf |