Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 279 → Rev 295

/rules/mkEnv-avr.mk
60,6 → 60,8
MK_avrdude_CMD = $(Q)$(MK_avrdude) -P $(MK_avrdude_PORT) -c $(MK_avrdude_PROG) -p $(MK_AVR_MCU_LONG) -U flash:w:$<:a
MK_avrdude_CMD_FUSE = $(Q)$(MK_avrdude) -P $(MK_avrdude_PORT) -c $(MK_avrdude_PROG) -p $(MK_AVR_MCU_LONG) -U efuse:w:0x$(word 1,$(MK_AVR_FUSES)):m -U hfuse:w:0x$(word 2,$(MK_AVR_FUSES)):m -U lfuse:w:0x$(word 3,$(MK_AVR_FUSES)):m
MK_avrdude_RD_FUSE = $(Q)$(MK_avrdude) -P $(MK_avrdude_PORT) -c $(MK_avrdude_PROG) -p $(MK_AVR_MCU_LONG) -v
MK_avrdude_RD_PGM = $(Q)$(MK_avrdude) -P $(MK_avrdude_PORT) -c $(MK_avrdude_PROG) -p $(MK_AVR_MCU_LONG) -U flash:r:flash.hex:i
MK_avrdude_RD_EEPROM= $(Q)$(MK_avrdude) -P $(MK_avrdude_PORT) -c $(MK_avrdude_PROG) -p $(MK_AVR_MCU_LONG) -U eeprom:r:eeprom.hex:i
 
MK_BootHost = boothost
MK_BootHost_BAUD ?= 38400
/rules/mkRules-avr.mk
13,9 → 13,9
 
ifneq ($(MK_HEX_TARGET),)
 
download d : mkdir_bin mkdir_obj d_target
download d : mkdir_bin mkdir_obj pgm
 
d_target: $(call MK_HEX_NAME, $(MK_HEX_TARGET))
pgm: $(call MK_HEX_NAME, $(MK_HEX_TARGET))
$(ECHO) "Downloading $< ..."
$(MK_$(MK_AVR_PROGRAMMER)_CMD)
 
39,6 → 39,20
endif
$(MK_$(MK_AVR_PROGRAMMER)_RD_FUSE)
 
read-flash:
$(ECHO) "Reading flash ..."
ifeq ($(MK_$(MK_AVR_PROGRAMMER)_RD_PGM),)
$(error Programmer $(MK_AVR_PROGRAMMER) doesn't support reading program)
endif
$(MK_$(MK_AVR_PROGRAMMER)_RD_PGM)
 
read-eeprom:
$(ECHO) "Reading eeprom ..."
ifeq ($(MK_$(MK_AVR_PROGRAMMER)_RD_EEPROM),)
$(error Programmer $(MK_AVR_PROGRAMMER) doesn't support reading eeprom)
endif
$(MK_$(MK_AVR_PROGRAMMER)_RD_EEPROM)
 
.PHONY: download d d_target fuses
 
endif