add prg target to makefile and change F_CPU to 20MHz
This commit is contained in:
parent
862e092f56
commit
7f7ee20c24
8
Makefile
8
Makefile
@ -8,7 +8,7 @@ LIBS =
|
|||||||
|
|
||||||
CC = avr-gcc
|
CC = avr-gcc
|
||||||
|
|
||||||
override CFLAGS = -g -Wall $(OPTIMIZE) -DF_CPU=16000000UL -std=gnu99 -mmcu=$(MCU_TARGET) $(DEFS)
|
override CFLAGS = -g -Wall $(OPTIMIZE) -DF_CPU=20000000UL -std=gnu99 -mmcu=$(MCU_TARGET) $(DEFS)
|
||||||
override LDFLAGS = -Wl,-Map,$(PRG).map
|
override LDFLAGS = -Wl,-Map,$(PRG).map
|
||||||
|
|
||||||
OBJCOPY = avr-objcopy
|
OBJCOPY = avr-objcopy
|
||||||
@ -44,3 +44,9 @@ hex: $(PRG).hex
|
|||||||
%.hex: %.elf
|
%.hex: %.elf
|
||||||
$(OBJCOPY) -j .text -j .data -O ihex $< $@
|
$(OBJCOPY) -j .text -j .data -O ihex $< $@
|
||||||
|
|
||||||
|
%.bin: %.elf
|
||||||
|
$(OBJCOPY) -j .text -j .data -O binary $< $@
|
||||||
|
|
||||||
|
prg: $(PRG).hex
|
||||||
|
python2 ../megaHidProg -C -c 1000 -t 4 -b $(PRG).bin
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user