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

📄 makefile

📁 C Sourcr cdoe 採用AD7714 電能表数据和计量脉冲输出
💻
字号:
# adapted from avr-libc examplePRG            = voltmeterOBJ            = main.o lcd_spi.o ad7714.o serial.o rotary_switch.oMCU_TARGET     = atmega168OPTIMIZE       = -OsDEFS           =LIBS           =# You should not have to change anything below here.CC             = avr-gcc# Override is only needed by avr-lib build system.override CFLAGS        = -g -Wall $(OPTIMIZE) -mmcu=$(MCU_TARGET) $(DEFS)override LDFLAGS       = -Wl,-Map,$(PRG).mapOBJCOPY        = avr-objcopyOBJDUMP        = avr-objdumpall: $(PRG).elf lst text $(PRG).elf: $(OBJ)	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)clean:	rm -rf *.o $(PRG).elf	rm -rf *.lst *.map *.hex *.bin *.srec *.epslst:  $(PRG).lst%.lst: %.elf	$(OBJDUMP) -h -S $< > $@# Rules for building the .text rom imagestext: hex bin srechex:  $(PRG).hexbin:  $(PRG).binsrec: $(PRG).srec%.hex: %.elf	$(OBJCOPY) -j .text -j .data -O ihex $< $@%.srec: %.elf	$(OBJCOPY) -j .text -j .data -O srec $< $@%.bin: %.elf	$(OBJCOPY) -j .text -j .data -O binary $< $@# Rules for building the .eeprom rom imageseeprom: ehex ebin esrecehex:  $(PRG)_eeprom.hexebin:  $(PRG)_eeprom.binesrec: $(PRG)_eeprom.srec%_eeprom.hex: %.elf	$(OBJCOPY) -j .eeprom --change-section-lma .eeprom=0 -O ihex $< $@%_eeprom.srec: %.elf	$(OBJCOPY) -j .eeprom --change-section-lma .eeprom=0 -O srec $< $@%_eeprom.bin: %.elf	$(OBJCOPY) -j .eeprom --change-section-lma .eeprom=0 -O binary $< $@upload: all	sudo avrdude -q -q -c usbtiny -p m168 -U flash:w:voltmeter.hex 

⌨️ 快捷键说明

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