diff options
| author | Daniel Friesel <derf@finalrewind.org> | 2013-10-06 19:37:45 +0200 |
|---|---|---|
| committer | Daniel Friesel <derf@finalrewind.org> | 2013-10-06 19:37:45 +0200 |
| commit | aec0c5fd369fdf9cdbf3609b7559abf146f5ac42 (patch) | |
| tree | 737991b4f524150cb9c6cb7a90fa12528e77dd49 /read-rom/Makefile | |
| parent | 0189b7cfe970b88aeb1a4fb2aa328eeee42079a8 (diff) | |
increased timing precision, more robust code
Diffstat (limited to 'read-rom/Makefile')
| -rw-r--r-- | read-rom/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/read-rom/Makefile b/read-rom/Makefile index 0b9e15c..c31d4ec 100644 --- a/read-rom/Makefile +++ b/read-rom/Makefile @@ -9,8 +9,10 @@ AVROBJDUMP ?= avr-objdump CFLAGS += -mmcu=attiny2313 -DF_CPU=20000000UL #CFLAGS += -gdwarf-2 -fverbose-asm -save-temps -CFLAGS += -I. -std=gnu99 -O2 -Wall -Wextra -pedantic +CFLAGS += -I. -std=gnu99 -Os -Wall -Wextra -pedantic CFLAGS += -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums +# r28 .. r31 hold the microsecond counters +CFLAGS += -ffixed-28 -ffixed-29 -ffixed-30 -ffixed-31 CFLAGS += -fwhole-program -flto -mstrict-X AVRFLAGS += -U lfuse:w:0xe4:m -U hfuse:w:0xdf:m -U efuse:w:0xff:m |
