⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 Light dimmer application firmware code.
💻
字号:
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

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -