?? makefile
字號:
OBJS = main.o dmx.o
.PHONY: all
all: console.hex
CC = avr-gcc
LD = avr-ld
OBJCOPY = avr-objcopy
CFLAGS = -mmcu=atmega8535 -O3
console.hex: console.out
$(OBJCOPY) -R .eeprom -O ihex console.out console.hex
console.out: $(OBJS)
$(CC) $(CFLAGS) -o console.out $(OBJS)
.PHONY: prog
prog: console.hex
@echo If you are on WinXP and this fails, try loading GIVEIO.sys first
uisp -dlpt=0x378 -dprog=dapa --erase
uisp -dlpt=0x378 -dprog=dapa --upload if=console.hex
.PHONY: prog_fuses
prog_fuses:
uisp -dlpt=0x378 -dprog=dapa --wr_fuse_l=0xe0
uisp -dlpt=0x378 -dprog=dapa --wr_fuse_h=0xc9
.PHONY: clean
clean:
rm -f console.hex console.out *.o
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -