forked from mfulz_github/qmk_firmware
Change project makefiles so that the current target settings and not just the board selection is printed during the build process.
Fix warning in AudioOutput demos when AUDIO_OUT_STEREO output mode is selected.
This commit is contained in:
parent
e426463355
commit
3472af91a5
|
@ -458,7 +458,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# Default target.
|
# Default target.
|
||||||
all: begin gccversion sizebefore build checkhooks checklibmode checkboard sizeafter end
|
all: begin gccversion sizebefore build showeventhooks showliboptions showtarget sizeafter end
|
||||||
|
|
||||||
# Change the build target to build a HEX file or a library.
|
# Change the build target to build a HEX file or a library.
|
||||||
build: elf hex eep lss sym
|
build: elf hex eep lss sym
|
||||||
|
@ -501,27 +501,29 @@ sizeafter:
|
||||||
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
||||||
2>/dev/null; echo; fi
|
2>/dev/null; echo; fi
|
||||||
|
|
||||||
checkhooks: build
|
showeventhooks: build
|
||||||
@echo
|
@echo
|
||||||
@echo ------- Unhooked LUFA Events -------
|
@echo -------- Unhooked LUFA Events --------
|
||||||
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
||||||
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
||||||
echo "(None)"
|
echo "(None)"
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checklibmode:
|
showliboptions:
|
||||||
@echo
|
@echo
|
||||||
@echo ----------- Library Mode -----------
|
@echo ---- Compile Time Library Options ----
|
||||||
@$(shell) ($(CC) $(ALL_CFLAGS) -E -dM - < /dev/null \
|
@for i in $(LUFA_OPTS:-D%=%); do \
|
||||||
| grep 'USB_\(DEVICE\|HOST\)_ONLY' | cut -d' ' -f2 | grep ".*") \
|
echo $$i; \
|
||||||
|| echo "No specific mode (both device and host mode allowable)."
|
done
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checkboard:
|
showtarget:
|
||||||
@echo
|
@echo
|
||||||
@echo ---------- Selected Board ----------
|
@echo --------- Target Information ---------
|
||||||
@echo Selected board model is $(BOARD).
|
@echo AVR Model: $(MCU)
|
||||||
@echo ------------------------------------
|
@echo Board: $(BOARD)
|
||||||
|
@echo Clock: $(F_CPU)Hz CPU, $(F_CLOCK)Hz Master
|
||||||
|
@echo --------------------------------------
|
||||||
|
|
||||||
# Display compiler version information.
|
# Display compiler version information.
|
||||||
gccversion :
|
gccversion :
|
||||||
|
@ -707,8 +709,7 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
|
||||||
|
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all checkhooks checklibmode checkboard \
|
.PHONY : all showeventhooks showliboptions showtarget \
|
||||||
begin finish end sizebefore sizeafter gccversion \
|
begin finish end sizebefore sizeafter gccversion build \
|
||||||
build elf hex eep lss sym coff extcoff clean \
|
elf hex eep lss sym coff extcoff program clean debug \
|
||||||
clean_list clean_binary program debug gdb-config \
|
clean_list clean_binary gdb-config doxygen
|
||||||
doxygen
|
|
|
@ -460,7 +460,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# Default target.
|
# Default target.
|
||||||
all: begin gccversion sizebefore build checkhooks checklibmode checkboard sizeafter end
|
all: begin gccversion sizebefore build showeventhooks showliboptions showtarget sizeafter end
|
||||||
|
|
||||||
# Change the build target to build a HEX file or a library.
|
# Change the build target to build a HEX file or a library.
|
||||||
build: elf hex eep lss sym
|
build: elf hex eep lss sym
|
||||||
|
@ -503,27 +503,29 @@ sizeafter:
|
||||||
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
||||||
2>/dev/null; echo; fi
|
2>/dev/null; echo; fi
|
||||||
|
|
||||||
checkhooks: build
|
showeventhooks: build
|
||||||
@echo
|
@echo
|
||||||
@echo ------- Unhooked LUFA Events -------
|
@echo -------- Unhooked LUFA Events --------
|
||||||
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
||||||
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
||||||
echo "(None)"
|
echo "(None)"
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checklibmode:
|
showliboptions:
|
||||||
@echo
|
@echo
|
||||||
@echo ----------- Library Mode -----------
|
@echo ---- Compile Time Library Options ----
|
||||||
@$(shell) ($(CC) $(ALL_CFLAGS) -E -dM - < /dev/null \
|
@for i in $(LUFA_OPTS:-D%=%); do \
|
||||||
| grep 'USB_\(DEVICE\|HOST\)_ONLY' | cut -d' ' -f2 | grep ".*") \
|
echo $$i; \
|
||||||
|| echo "No specific mode (both device and host mode allowable)."
|
done
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checkboard:
|
showtarget:
|
||||||
@echo
|
@echo
|
||||||
@echo ---------- Selected Board ----------
|
@echo --------- Target Information ---------
|
||||||
@echo Selected board model is $(BOARD).
|
@echo AVR Model: $(MCU)
|
||||||
@echo ------------------------------------
|
@echo Board: $(BOARD)
|
||||||
|
@echo Clock: $(F_CPU)Hz CPU, $(F_CLOCK)Hz Master
|
||||||
|
@echo --------------------------------------
|
||||||
|
|
||||||
# Display compiler version information.
|
# Display compiler version information.
|
||||||
gccversion :
|
gccversion :
|
||||||
|
@ -709,8 +711,7 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
|
||||||
|
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all checkhooks checklibmode checkboard \
|
.PHONY : all showeventhooks showliboptions showtarget \
|
||||||
begin finish end sizebefore sizeafter gccversion \
|
begin finish end sizebefore sizeafter gccversion build \
|
||||||
build elf hex eep lss sym coff extcoff clean \
|
elf hex eep lss sym coff extcoff program clean debug \
|
||||||
clean_list clean_binary program debug gdb-config \
|
clean_list clean_binary gdb-config doxygen
|
||||||
doxygen
|
|
|
@ -459,7 +459,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# Default target.
|
# Default target.
|
||||||
all: begin gccversion sizebefore build checkhooks checklibmode checkboard sizeafter end
|
all: begin gccversion sizebefore build showeventhooks showliboptions showtarget sizeafter end
|
||||||
|
|
||||||
# Change the build target to build a HEX file or a library.
|
# Change the build target to build a HEX file or a library.
|
||||||
build: elf hex eep lss sym
|
build: elf hex eep lss sym
|
||||||
|
@ -502,27 +502,29 @@ sizeafter:
|
||||||
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
||||||
2>/dev/null; echo; fi
|
2>/dev/null; echo; fi
|
||||||
|
|
||||||
checkhooks: build
|
showeventhooks: build
|
||||||
@echo
|
@echo
|
||||||
@echo ------- Unhooked LUFA Events -------
|
@echo -------- Unhooked LUFA Events --------
|
||||||
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
||||||
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
||||||
echo "(None)"
|
echo "(None)"
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checklibmode:
|
showliboptions:
|
||||||
@echo
|
@echo
|
||||||
@echo ----------- Library Mode -----------
|
@echo ---- Compile Time Library Options ----
|
||||||
@$(shell) ($(CC) $(ALL_CFLAGS) -E -dM - < /dev/null \
|
@for i in $(LUFA_OPTS:-D%=%); do \
|
||||||
| grep 'USB_\(DEVICE\|HOST\)_ONLY' | cut -d' ' -f2 | grep ".*") \
|
echo $$i; \
|
||||||
|| echo "No specific mode (both device and host mode allowable)."
|
done
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checkboard:
|
showtarget:
|
||||||
@echo
|
@echo
|
||||||
@echo ---------- Selected Board ----------
|
@echo --------- Target Information ---------
|
||||||
@echo Selected board model is $(BOARD).
|
@echo AVR Model: $(MCU)
|
||||||
@echo ------------------------------------
|
@echo Board: $(BOARD)
|
||||||
|
@echo Clock: $(F_CPU)Hz CPU, $(F_CLOCK)Hz Master
|
||||||
|
@echo --------------------------------------
|
||||||
|
|
||||||
# Display compiler version information.
|
# Display compiler version information.
|
||||||
gccversion :
|
gccversion :
|
||||||
|
@ -708,8 +710,7 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
|
||||||
|
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all checkhooks checklibmode checkboard \
|
.PHONY : all showeventhooks showliboptions showtarget \
|
||||||
begin finish end sizebefore sizeafter gccversion \
|
begin finish end sizebefore sizeafter gccversion build \
|
||||||
build elf hex eep lss sym coff extcoff clean \
|
elf hex eep lss sym coff extcoff program clean debug \
|
||||||
clean_list clean_binary program debug gdb-config \
|
clean_list clean_binary gdb-config doxygen
|
||||||
doxygen
|
|
|
@ -465,7 +465,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# Default target.
|
# Default target.
|
||||||
all: begin gccversion sizebefore build checkhooks checklibmode checkboard sizeafter end
|
all: begin gccversion sizebefore build showeventhooks showliboptions showtarget sizeafter end
|
||||||
|
|
||||||
# Change the build target to build a HEX file or a library.
|
# Change the build target to build a HEX file or a library.
|
||||||
build: elf hex eep lss sym
|
build: elf hex eep lss sym
|
||||||
|
@ -508,27 +508,29 @@ sizeafter:
|
||||||
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
||||||
2>/dev/null; echo; fi
|
2>/dev/null; echo; fi
|
||||||
|
|
||||||
checkhooks: build
|
showeventhooks: build
|
||||||
@echo
|
@echo
|
||||||
@echo ------- Unhooked LUFA Events -------
|
@echo -------- Unhooked LUFA Events --------
|
||||||
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
||||||
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
||||||
echo "(None)"
|
echo "(None)"
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checklibmode:
|
showliboptions:
|
||||||
@echo
|
@echo
|
||||||
@echo ----------- Library Mode -----------
|
@echo ---- Compile Time Library Options ----
|
||||||
@$(shell) ($(CC) $(ALL_CFLAGS) -E -dM - < /dev/null \
|
@for i in $(LUFA_OPTS:-D%=%); do \
|
||||||
| grep 'USB_\(DEVICE\|HOST\)_ONLY' | cut -d' ' -f2 | grep ".*") \
|
echo $$i; \
|
||||||
|| echo "No specific mode (both device and host mode allowable)."
|
done
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checkboard:
|
showtarget:
|
||||||
@echo
|
@echo
|
||||||
@echo ---------- Selected Board ----------
|
@echo --------- Target Information ---------
|
||||||
@echo Selected board model is $(BOARD).
|
@echo AVR Model: $(MCU)
|
||||||
@echo ------------------------------------
|
@echo Board: $(BOARD)
|
||||||
|
@echo Clock: $(F_CPU)Hz CPU, $(F_CLOCK)Hz Master
|
||||||
|
@echo --------------------------------------
|
||||||
|
|
||||||
# Display compiler version information.
|
# Display compiler version information.
|
||||||
gccversion :
|
gccversion :
|
||||||
|
@ -540,26 +542,6 @@ gccversion :
|
||||||
program: $(TARGET).hex $(TARGET).eep
|
program: $(TARGET).hex $(TARGET).eep
|
||||||
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
||||||
|
|
||||||
flip: $(TARGET).hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation erase f
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation loadbuffer $(TARGET).hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu: $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) erase
|
|
||||||
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
flip-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
copy $(TARGET).eep $(TARGET)eep.hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM erase
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM loadbuffer $(TARGET)eep.hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
|
|
||||||
# Generate avr-gdb config/init file which does the following:
|
# Generate avr-gdb config/init file which does the following:
|
||||||
# define the reset signal, load the target file, connect to target, and set
|
# define the reset signal, load the target file, connect to target, and set
|
||||||
|
@ -734,8 +716,8 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
|
||||||
|
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all checkhooks checklibmode checkboard \
|
.PHONY : all showeventhooks showliboptions showtarget \
|
||||||
begin finish end sizebefore sizeafter gccversion \
|
begin finish end sizebefore sizeafter gccversion build \
|
||||||
build elf hex eep lss sym coff extcoff clean \
|
elf hex eep lss sym coff extcoff program clean debug \
|
||||||
clean_list clean_binary program debug gdb-config \
|
clean_list clean_binary gdb-config doxygen dfu flip \
|
||||||
doxygen dfu flip flip-ee dfu-ee
|
flip-ee dfu-ee
|
|
@ -103,8 +103,10 @@ void ProcessNextSample(void)
|
||||||
int8_t LeftSample_8Bit = (LeftSample_16Bit >> 8);
|
int8_t LeftSample_8Bit = (LeftSample_16Bit >> 8);
|
||||||
int8_t RightSample_8Bit = (RightSample_16Bit >> 8);
|
int8_t RightSample_8Bit = (RightSample_16Bit >> 8);
|
||||||
|
|
||||||
|
#if !defined(AUDIO_OUT_STEREO)
|
||||||
/* Mix the two channels together to produce a mono, 8-bit sample */
|
/* Mix the two channels together to produce a mono, 8-bit sample */
|
||||||
int8_t MixedSample_8Bit = (((int16_t)LeftSample_8Bit + (int16_t)RightSample_8Bit) >> 1);
|
int8_t MixedSample_8Bit = (((int16_t)LeftSample_8Bit + (int16_t)RightSample_8Bit) >> 1);
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(AUDIO_OUT_MONO)
|
#if defined(AUDIO_OUT_MONO)
|
||||||
/* Load the sample into the PWM timer channel */
|
/* Load the sample into the PWM timer channel */
|
||||||
|
|
|
@ -193,7 +193,7 @@ CSTANDARD = -std=gnu99
|
||||||
|
|
||||||
# Place -D or -U options here for C sources
|
# Place -D or -U options here for C sources
|
||||||
CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(LUFA_OPTS)
|
CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(LUFA_OPTS)
|
||||||
CDEFS += -DAUDIO_OUT_MONO
|
CDEFS += -DAUDIO_OUT_STEREO
|
||||||
|
|
||||||
|
|
||||||
# Place -D or -U options here for ASM sources
|
# Place -D or -U options here for ASM sources
|
||||||
|
@ -466,7 +466,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# Default target.
|
# Default target.
|
||||||
all: begin gccversion sizebefore build checkhooks checklibmode checkboard sizeafter end
|
all: begin gccversion sizebefore build showeventhooks showliboptions showtarget sizeafter end
|
||||||
|
|
||||||
# Change the build target to build a HEX file or a library.
|
# Change the build target to build a HEX file or a library.
|
||||||
build: elf hex eep lss sym
|
build: elf hex eep lss sym
|
||||||
|
@ -509,27 +509,29 @@ sizeafter:
|
||||||
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
||||||
2>/dev/null; echo; fi
|
2>/dev/null; echo; fi
|
||||||
|
|
||||||
checkhooks: build
|
showeventhooks: build
|
||||||
@echo
|
@echo
|
||||||
@echo ------- Unhooked LUFA Events -------
|
@echo -------- Unhooked LUFA Events --------
|
||||||
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
||||||
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
||||||
echo "(None)"
|
echo "(None)"
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checklibmode:
|
showliboptions:
|
||||||
@echo
|
@echo
|
||||||
@echo ----------- Library Mode -----------
|
@echo ---- Compile Time Library Options ----
|
||||||
@$(shell) ($(CC) $(ALL_CFLAGS) -E -dM - < /dev/null \
|
@for i in $(LUFA_OPTS:-D%=%); do \
|
||||||
| grep 'USB_\(DEVICE\|HOST\)_ONLY' | cut -d' ' -f2 | grep ".*") \
|
echo $$i; \
|
||||||
|| echo "No specific mode (both device and host mode allowable)."
|
done
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checkboard:
|
showtarget:
|
||||||
@echo
|
@echo
|
||||||
@echo ---------- Selected Board ----------
|
@echo --------- Target Information ---------
|
||||||
@echo Selected board model is $(BOARD).
|
@echo AVR Model: $(MCU)
|
||||||
@echo ------------------------------------
|
@echo Board: $(BOARD)
|
||||||
|
@echo Clock: $(F_CPU)Hz CPU, $(F_CLOCK)Hz Master
|
||||||
|
@echo --------------------------------------
|
||||||
|
|
||||||
# Display compiler version information.
|
# Display compiler version information.
|
||||||
gccversion :
|
gccversion :
|
||||||
|
@ -541,26 +543,6 @@ gccversion :
|
||||||
program: $(TARGET).hex $(TARGET).eep
|
program: $(TARGET).hex $(TARGET).eep
|
||||||
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
||||||
|
|
||||||
flip: $(TARGET).hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation erase f
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation loadbuffer $(TARGET).hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu: $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) erase
|
|
||||||
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
flip-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
copy $(TARGET).eep $(TARGET)eep.hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM erase
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM loadbuffer $(TARGET)eep.hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
|
|
||||||
# Generate avr-gdb config/init file which does the following:
|
# Generate avr-gdb config/init file which does the following:
|
||||||
# define the reset signal, load the target file, connect to target, and set
|
# define the reset signal, load the target file, connect to target, and set
|
||||||
|
@ -735,8 +717,8 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
|
||||||
|
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all checkhooks checklibmode checkboard \
|
.PHONY : all showeventhooks showliboptions showtarget \
|
||||||
begin finish end sizebefore sizeafter gccversion \
|
begin finish end sizebefore sizeafter gccversion build \
|
||||||
build elf hex eep lss sym coff extcoff clean \
|
elf hex eep lss sym coff extcoff program clean debug \
|
||||||
clean_list clean_binary program debug gdb-config \
|
clean_list clean_binary gdb-config doxygen dfu flip \
|
||||||
doxygen dfu flip flip-ee dfu-ee
|
flip-ee dfu-ee
|
|
@ -464,7 +464,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# Default target.
|
# Default target.
|
||||||
all: begin gccversion sizebefore build checkhooks checklibmode checkboard sizeafter end
|
all: begin gccversion sizebefore build showeventhooks showliboptions showtarget sizeafter end
|
||||||
|
|
||||||
# Change the build target to build a HEX file or a library.
|
# Change the build target to build a HEX file or a library.
|
||||||
build: elf hex eep lss sym
|
build: elf hex eep lss sym
|
||||||
|
@ -507,27 +507,29 @@ sizeafter:
|
||||||
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
||||||
2>/dev/null; echo; fi
|
2>/dev/null; echo; fi
|
||||||
|
|
||||||
checkhooks: build
|
showeventhooks: build
|
||||||
@echo
|
@echo
|
||||||
@echo ------- Unhooked LUFA Events -------
|
@echo -------- Unhooked LUFA Events --------
|
||||||
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
||||||
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
||||||
echo "(None)"
|
echo "(None)"
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checklibmode:
|
showliboptions:
|
||||||
@echo
|
@echo
|
||||||
@echo ----------- Library Mode -----------
|
@echo ---- Compile Time Library Options ----
|
||||||
@$(shell) ($(CC) $(ALL_CFLAGS) -E -dM - < /dev/null \
|
@for i in $(LUFA_OPTS:-D%=%); do \
|
||||||
| grep 'USB_\(DEVICE\|HOST\)_ONLY' | cut -d' ' -f2 | grep ".*") \
|
echo $$i; \
|
||||||
|| echo "No specific mode (both device and host mode allowable)."
|
done
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checkboard:
|
showtarget:
|
||||||
@echo
|
@echo
|
||||||
@echo ---------- Selected Board ----------
|
@echo --------- Target Information ---------
|
||||||
@echo Selected board model is $(BOARD).
|
@echo AVR Model: $(MCU)
|
||||||
@echo ------------------------------------
|
@echo Board: $(BOARD)
|
||||||
|
@echo Clock: $(F_CPU)Hz CPU, $(F_CLOCK)Hz Master
|
||||||
|
@echo --------------------------------------
|
||||||
|
|
||||||
# Display compiler version information.
|
# Display compiler version information.
|
||||||
gccversion :
|
gccversion :
|
||||||
|
@ -539,26 +541,6 @@ gccversion :
|
||||||
program: $(TARGET).hex $(TARGET).eep
|
program: $(TARGET).hex $(TARGET).eep
|
||||||
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
||||||
|
|
||||||
flip: $(TARGET).hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation erase f
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation loadbuffer $(TARGET).hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu: $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) erase
|
|
||||||
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
flip-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
copy $(TARGET).eep $(TARGET)eep.hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM erase
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM loadbuffer $(TARGET)eep.hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
|
|
||||||
# Generate avr-gdb config/init file which does the following:
|
# Generate avr-gdb config/init file which does the following:
|
||||||
# define the reset signal, load the target file, connect to target, and set
|
# define the reset signal, load the target file, connect to target, and set
|
||||||
|
@ -733,8 +715,8 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
|
||||||
|
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all checkhooks checklibmode checkboard \
|
.PHONY : all showeventhooks showliboptions showtarget \
|
||||||
begin finish end sizebefore sizeafter gccversion \
|
begin finish end sizebefore sizeafter gccversion build \
|
||||||
build elf hex eep lss sym coff extcoff clean \
|
elf hex eep lss sym coff extcoff program clean debug \
|
||||||
clean_list clean_binary program debug gdb-config \
|
clean_list clean_binary gdb-config doxygen dfu flip \
|
||||||
doxygen dfu flip flip-ee dfu-ee
|
flip-ee dfu-ee
|
|
@ -464,7 +464,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# Default target.
|
# Default target.
|
||||||
all: begin gccversion sizebefore build checkhooks checklibmode checkboard sizeafter end
|
all: begin gccversion sizebefore build showeventhooks showliboptions showtarget sizeafter end
|
||||||
|
|
||||||
# Change the build target to build a HEX file or a library.
|
# Change the build target to build a HEX file or a library.
|
||||||
build: elf hex eep lss sym
|
build: elf hex eep lss sym
|
||||||
|
@ -507,27 +507,29 @@ sizeafter:
|
||||||
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
||||||
2>/dev/null; echo; fi
|
2>/dev/null; echo; fi
|
||||||
|
|
||||||
checkhooks: build
|
showeventhooks: build
|
||||||
@echo
|
@echo
|
||||||
@echo ------- Unhooked LUFA Events -------
|
@echo -------- Unhooked LUFA Events --------
|
||||||
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
||||||
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
||||||
echo "(None)"
|
echo "(None)"
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checklibmode:
|
showliboptions:
|
||||||
@echo
|
@echo
|
||||||
@echo ----------- Library Mode -----------
|
@echo ---- Compile Time Library Options ----
|
||||||
@$(shell) ($(CC) $(ALL_CFLAGS) -E -dM - < /dev/null \
|
@for i in $(LUFA_OPTS:-D%=%); do \
|
||||||
| grep 'USB_\(DEVICE\|HOST\)_ONLY' | cut -d' ' -f2 | grep ".*") \
|
echo $$i; \
|
||||||
|| echo "No specific mode (both device and host mode allowable)."
|
done
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checkboard:
|
showtarget:
|
||||||
@echo
|
@echo
|
||||||
@echo ---------- Selected Board ----------
|
@echo --------- Target Information ---------
|
||||||
@echo Selected board model is $(BOARD).
|
@echo AVR Model: $(MCU)
|
||||||
@echo ------------------------------------
|
@echo Board: $(BOARD)
|
||||||
|
@echo Clock: $(F_CPU)Hz CPU, $(F_CLOCK)Hz Master
|
||||||
|
@echo --------------------------------------
|
||||||
|
|
||||||
# Display compiler version information.
|
# Display compiler version information.
|
||||||
gccversion :
|
gccversion :
|
||||||
|
@ -539,26 +541,6 @@ gccversion :
|
||||||
program: $(TARGET).hex $(TARGET).eep
|
program: $(TARGET).hex $(TARGET).eep
|
||||||
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
||||||
|
|
||||||
flip: $(TARGET).hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation erase f
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation loadbuffer $(TARGET).hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu: $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) erase
|
|
||||||
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
flip-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
copy $(TARGET).eep $(TARGET)eep.hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM erase
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM loadbuffer $(TARGET)eep.hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
|
|
||||||
# Generate avr-gdb config/init file which does the following:
|
# Generate avr-gdb config/init file which does the following:
|
||||||
# define the reset signal, load the target file, connect to target, and set
|
# define the reset signal, load the target file, connect to target, and set
|
||||||
|
@ -733,8 +715,8 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
|
||||||
|
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all checkhooks checklibmode checkboard \
|
.PHONY : all showeventhooks showliboptions showtarget \
|
||||||
begin finish end sizebefore sizeafter gccversion \
|
begin finish end sizebefore sizeafter gccversion build \
|
||||||
build elf hex eep lss sym coff extcoff clean \
|
elf hex eep lss sym coff extcoff program clean debug \
|
||||||
clean_list clean_binary program debug gdb-config \
|
clean_list clean_binary gdb-config doxygen dfu flip \
|
||||||
doxygen dfu flip flip-ee dfu-ee
|
flip-ee dfu-ee
|
|
@ -465,7 +465,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# Default target.
|
# Default target.
|
||||||
all: begin gccversion sizebefore build checkhooks checklibmode checkboard sizeafter end
|
all: begin gccversion sizebefore build showeventhooks showliboptions showtarget sizeafter end
|
||||||
|
|
||||||
# Change the build target to build a HEX file or a library.
|
# Change the build target to build a HEX file or a library.
|
||||||
build: elf hex eep lss sym
|
build: elf hex eep lss sym
|
||||||
|
@ -508,27 +508,29 @@ sizeafter:
|
||||||
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
||||||
2>/dev/null; echo; fi
|
2>/dev/null; echo; fi
|
||||||
|
|
||||||
checkhooks: build
|
showeventhooks: build
|
||||||
@echo
|
@echo
|
||||||
@echo ------- Unhooked LUFA Events -------
|
@echo -------- Unhooked LUFA Events --------
|
||||||
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
||||||
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
||||||
echo "(None)"
|
echo "(None)"
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checklibmode:
|
showliboptions:
|
||||||
@echo
|
@echo
|
||||||
@echo ----------- Library Mode -----------
|
@echo ---- Compile Time Library Options ----
|
||||||
@$(shell) ($(CC) $(ALL_CFLAGS) -E -dM - < /dev/null \
|
@for i in $(LUFA_OPTS:-D%=%); do \
|
||||||
| grep 'USB_\(DEVICE\|HOST\)_ONLY' | cut -d' ' -f2 | grep ".*") \
|
echo $$i; \
|
||||||
|| echo "No specific mode (both device and host mode allowable)."
|
done
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checkboard:
|
showtarget:
|
||||||
@echo
|
@echo
|
||||||
@echo ---------- Selected Board ----------
|
@echo --------- Target Information ---------
|
||||||
@echo Selected board model is $(BOARD).
|
@echo AVR Model: $(MCU)
|
||||||
@echo ------------------------------------
|
@echo Board: $(BOARD)
|
||||||
|
@echo Clock: $(F_CPU)Hz CPU, $(F_CLOCK)Hz Master
|
||||||
|
@echo --------------------------------------
|
||||||
|
|
||||||
# Display compiler version information.
|
# Display compiler version information.
|
||||||
gccversion :
|
gccversion :
|
||||||
|
@ -540,26 +542,6 @@ gccversion :
|
||||||
program: $(TARGET).hex $(TARGET).eep
|
program: $(TARGET).hex $(TARGET).eep
|
||||||
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
||||||
|
|
||||||
flip: $(TARGET).hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation erase f
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation loadbuffer $(TARGET).hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu: $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) erase
|
|
||||||
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
flip-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
copy $(TARGET).eep $(TARGET)eep.hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM erase
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM loadbuffer $(TARGET)eep.hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
|
|
||||||
# Generate avr-gdb config/init file which does the following:
|
# Generate avr-gdb config/init file which does the following:
|
||||||
# define the reset signal, load the target file, connect to target, and set
|
# define the reset signal, load the target file, connect to target, and set
|
||||||
|
@ -734,8 +716,8 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
|
||||||
|
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all checkhooks checklibmode checkboard \
|
.PHONY : all showeventhooks showliboptions showtarget \
|
||||||
begin finish end sizebefore sizeafter gccversion \
|
begin finish end sizebefore sizeafter gccversion build \
|
||||||
build elf hex eep lss sym coff extcoff clean \
|
elf hex eep lss sym coff extcoff program clean debug \
|
||||||
clean_list clean_binary program debug gdb-config \
|
clean_list clean_binary gdb-config doxygen dfu flip \
|
||||||
doxygen dfu flip flip-ee dfu-ee
|
flip-ee dfu-ee
|
|
@ -465,7 +465,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# Default target.
|
# Default target.
|
||||||
all: begin gccversion sizebefore build checkhooks checklibmode checkboard sizeafter end
|
all: begin gccversion sizebefore build showeventhooks showliboptions showtarget sizeafter end
|
||||||
|
|
||||||
# Change the build target to build a HEX file or a library.
|
# Change the build target to build a HEX file or a library.
|
||||||
build: elf hex eep lss sym
|
build: elf hex eep lss sym
|
||||||
|
@ -508,27 +508,29 @@ sizeafter:
|
||||||
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
||||||
2>/dev/null; echo; fi
|
2>/dev/null; echo; fi
|
||||||
|
|
||||||
checkhooks: build
|
showeventhooks: build
|
||||||
@echo
|
@echo
|
||||||
@echo ------- Unhooked LUFA Events -------
|
@echo -------- Unhooked LUFA Events --------
|
||||||
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
||||||
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
||||||
echo "(None)"
|
echo "(None)"
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checklibmode:
|
showliboptions:
|
||||||
@echo
|
@echo
|
||||||
@echo ----------- Library Mode -----------
|
@echo ---- Compile Time Library Options ----
|
||||||
@$(shell) ($(CC) $(ALL_CFLAGS) -E -dM - < /dev/null \
|
@for i in $(LUFA_OPTS:-D%=%); do \
|
||||||
| grep 'USB_\(DEVICE\|HOST\)_ONLY' | cut -d' ' -f2 | grep ".*") \
|
echo $$i; \
|
||||||
|| echo "No specific mode (both device and host mode allowable)."
|
done
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checkboard:
|
showtarget:
|
||||||
@echo
|
@echo
|
||||||
@echo ---------- Selected Board ----------
|
@echo --------- Target Information ---------
|
||||||
@echo Selected board model is $(BOARD).
|
@echo AVR Model: $(MCU)
|
||||||
@echo ------------------------------------
|
@echo Board: $(BOARD)
|
||||||
|
@echo Clock: $(F_CPU)Hz CPU, $(F_CLOCK)Hz Master
|
||||||
|
@echo --------------------------------------
|
||||||
|
|
||||||
# Display compiler version information.
|
# Display compiler version information.
|
||||||
gccversion :
|
gccversion :
|
||||||
|
@ -540,26 +542,6 @@ gccversion :
|
||||||
program: $(TARGET).hex $(TARGET).eep
|
program: $(TARGET).hex $(TARGET).eep
|
||||||
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
||||||
|
|
||||||
flip: $(TARGET).hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation erase f
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation loadbuffer $(TARGET).hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu: $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) erase
|
|
||||||
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
flip-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
copy $(TARGET).eep $(TARGET)eep.hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM erase
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM loadbuffer $(TARGET)eep.hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
|
|
||||||
# Generate avr-gdb config/init file which does the following:
|
# Generate avr-gdb config/init file which does the following:
|
||||||
# define the reset signal, load the target file, connect to target, and set
|
# define the reset signal, load the target file, connect to target, and set
|
||||||
|
@ -734,8 +716,8 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
|
||||||
|
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all checkhooks checklibmode checkboard \
|
.PHONY : all showeventhooks showliboptions showtarget \
|
||||||
begin finish end sizebefore sizeafter gccversion \
|
begin finish end sizebefore sizeafter gccversion build \
|
||||||
build elf hex eep lss sym coff extcoff clean \
|
elf hex eep lss sym coff extcoff program clean debug \
|
||||||
clean_list clean_binary program debug gdb-config \
|
clean_list clean_binary gdb-config doxygen dfu flip \
|
||||||
doxygen dfu flip flip-ee dfu-ee
|
flip-ee dfu-ee
|
|
@ -465,7 +465,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# Default target.
|
# Default target.
|
||||||
all: begin gccversion sizebefore build checkhooks checklibmode checkboard sizeafter end
|
all: begin gccversion sizebefore build showeventhooks showliboptions showtarget sizeafter end
|
||||||
|
|
||||||
# Change the build target to build a HEX file or a library.
|
# Change the build target to build a HEX file or a library.
|
||||||
build: elf hex eep lss sym
|
build: elf hex eep lss sym
|
||||||
|
@ -508,27 +508,29 @@ sizeafter:
|
||||||
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
||||||
2>/dev/null; echo; fi
|
2>/dev/null; echo; fi
|
||||||
|
|
||||||
checkhooks: build
|
showeventhooks: build
|
||||||
@echo
|
@echo
|
||||||
@echo ------- Unhooked LUFA Events -------
|
@echo -------- Unhooked LUFA Events --------
|
||||||
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
||||||
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
||||||
echo "(None)"
|
echo "(None)"
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checklibmode:
|
showliboptions:
|
||||||
@echo
|
@echo
|
||||||
@echo ----------- Library Mode -----------
|
@echo ---- Compile Time Library Options ----
|
||||||
@$(shell) ($(CC) $(ALL_CFLAGS) -E -dM - < /dev/null \
|
@for i in $(LUFA_OPTS:-D%=%); do \
|
||||||
| grep 'USB_\(DEVICE\|HOST\)_ONLY' | cut -d' ' -f2 | grep ".*") \
|
echo $$i; \
|
||||||
|| echo "No specific mode (both device and host mode allowable)."
|
done
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checkboard:
|
showtarget:
|
||||||
@echo
|
@echo
|
||||||
@echo ---------- Selected Board ----------
|
@echo --------- Target Information ---------
|
||||||
@echo Selected board model is $(BOARD).
|
@echo AVR Model: $(MCU)
|
||||||
@echo ------------------------------------
|
@echo Board: $(BOARD)
|
||||||
|
@echo Clock: $(F_CPU)Hz CPU, $(F_CLOCK)Hz Master
|
||||||
|
@echo --------------------------------------
|
||||||
|
|
||||||
# Display compiler version information.
|
# Display compiler version information.
|
||||||
gccversion :
|
gccversion :
|
||||||
|
@ -540,26 +542,6 @@ gccversion :
|
||||||
program: $(TARGET).hex $(TARGET).eep
|
program: $(TARGET).hex $(TARGET).eep
|
||||||
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
||||||
|
|
||||||
flip: $(TARGET).hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation erase f
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation loadbuffer $(TARGET).hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu: $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) erase
|
|
||||||
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
flip-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
copy $(TARGET).eep $(TARGET)eep.hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM erase
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM loadbuffer $(TARGET)eep.hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
|
|
||||||
# Generate avr-gdb config/init file which does the following:
|
# Generate avr-gdb config/init file which does the following:
|
||||||
# define the reset signal, load the target file, connect to target, and set
|
# define the reset signal, load the target file, connect to target, and set
|
||||||
|
@ -734,8 +716,8 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
|
||||||
|
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all checkhooks checklibmode checkboard \
|
.PHONY : all showeventhooks showliboptions showtarget \
|
||||||
begin finish end sizebefore sizeafter gccversion \
|
begin finish end sizebefore sizeafter gccversion build \
|
||||||
build elf hex eep lss sym coff extcoff clean \
|
elf hex eep lss sym coff extcoff program clean debug \
|
||||||
clean_list clean_binary program debug gdb-config \
|
clean_list clean_binary gdb-config doxygen dfu flip \
|
||||||
doxygen dfu flip flip-ee dfu-ee
|
flip-ee dfu-ee
|
|
@ -465,7 +465,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# Default target.
|
# Default target.
|
||||||
all: begin gccversion sizebefore build checkhooks checklibmode checkboard sizeafter end
|
all: begin gccversion sizebefore build showeventhooks showliboptions showtarget sizeafter end
|
||||||
|
|
||||||
# Change the build target to build a HEX file or a library.
|
# Change the build target to build a HEX file or a library.
|
||||||
build: elf hex eep lss sym
|
build: elf hex eep lss sym
|
||||||
|
@ -508,27 +508,29 @@ sizeafter:
|
||||||
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
||||||
2>/dev/null; echo; fi
|
2>/dev/null; echo; fi
|
||||||
|
|
||||||
checkhooks: build
|
showeventhooks: build
|
||||||
@echo
|
@echo
|
||||||
@echo ------- Unhooked LUFA Events -------
|
@echo -------- Unhooked LUFA Events --------
|
||||||
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
||||||
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
||||||
echo "(None)"
|
echo "(None)"
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checklibmode:
|
showliboptions:
|
||||||
@echo
|
@echo
|
||||||
@echo ----------- Library Mode -----------
|
@echo ---- Compile Time Library Options ----
|
||||||
@$(shell) ($(CC) $(ALL_CFLAGS) -E -dM - < /dev/null \
|
@for i in $(LUFA_OPTS:-D%=%); do \
|
||||||
| grep 'USB_\(DEVICE\|HOST\)_ONLY' | cut -d' ' -f2 | grep ".*") \
|
echo $$i; \
|
||||||
|| echo "No specific mode (both device and host mode allowable)."
|
done
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checkboard:
|
showtarget:
|
||||||
@echo
|
@echo
|
||||||
@echo ---------- Selected Board ----------
|
@echo --------- Target Information ---------
|
||||||
@echo Selected board model is $(BOARD).
|
@echo AVR Model: $(MCU)
|
||||||
@echo ------------------------------------
|
@echo Board: $(BOARD)
|
||||||
|
@echo Clock: $(F_CPU)Hz CPU, $(F_CLOCK)Hz Master
|
||||||
|
@echo --------------------------------------
|
||||||
|
|
||||||
# Display compiler version information.
|
# Display compiler version information.
|
||||||
gccversion :
|
gccversion :
|
||||||
|
@ -540,26 +542,6 @@ gccversion :
|
||||||
program: $(TARGET).hex $(TARGET).eep
|
program: $(TARGET).hex $(TARGET).eep
|
||||||
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
||||||
|
|
||||||
flip: $(TARGET).hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation erase f
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation loadbuffer $(TARGET).hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu: $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) erase
|
|
||||||
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
flip-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
copy $(TARGET).eep $(TARGET)eep.hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM erase
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM loadbuffer $(TARGET)eep.hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
|
|
||||||
# Generate avr-gdb config/init file which does the following:
|
# Generate avr-gdb config/init file which does the following:
|
||||||
# define the reset signal, load the target file, connect to target, and set
|
# define the reset signal, load the target file, connect to target, and set
|
||||||
|
@ -734,8 +716,8 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
|
||||||
|
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all checkhooks checklibmode checkboard \
|
.PHONY : all showeventhooks showliboptions showtarget \
|
||||||
begin finish end sizebefore sizeafter gccversion \
|
begin finish end sizebefore sizeafter gccversion build \
|
||||||
build elf hex eep lss sym coff extcoff clean \
|
elf hex eep lss sym coff extcoff program clean debug \
|
||||||
clean_list clean_binary program debug gdb-config \
|
clean_list clean_binary gdb-config doxygen dfu flip \
|
||||||
doxygen dfu flip flip-ee dfu-ee
|
flip-ee dfu-ee
|
|
@ -464,7 +464,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# Default target.
|
# Default target.
|
||||||
all: begin gccversion sizebefore build checkhooks checklibmode checkboard sizeafter end
|
all: begin gccversion sizebefore build showeventhooks showliboptions showtarget sizeafter end
|
||||||
|
|
||||||
# Change the build target to build a HEX file or a library.
|
# Change the build target to build a HEX file or a library.
|
||||||
build: elf hex eep lss sym
|
build: elf hex eep lss sym
|
||||||
|
@ -507,27 +507,29 @@ sizeafter:
|
||||||
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
||||||
2>/dev/null; echo; fi
|
2>/dev/null; echo; fi
|
||||||
|
|
||||||
checkhooks: build
|
showeventhooks: build
|
||||||
@echo
|
@echo
|
||||||
@echo ------- Unhooked LUFA Events -------
|
@echo -------- Unhooked LUFA Events --------
|
||||||
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
||||||
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
||||||
echo "(None)"
|
echo "(None)"
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checklibmode:
|
showliboptions:
|
||||||
@echo
|
@echo
|
||||||
@echo ----------- Library Mode -----------
|
@echo ---- Compile Time Library Options ----
|
||||||
@$(shell) ($(CC) $(ALL_CFLAGS) -E -dM - < /dev/null \
|
@for i in $(LUFA_OPTS:-D%=%); do \
|
||||||
| grep 'USB_\(DEVICE\|HOST\)_ONLY' | cut -d' ' -f2 | grep ".*") \
|
echo $$i; \
|
||||||
|| echo "No specific mode (both device and host mode allowable)."
|
done
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checkboard:
|
showtarget:
|
||||||
@echo
|
@echo
|
||||||
@echo ---------- Selected Board ----------
|
@echo --------- Target Information ---------
|
||||||
@echo Selected board model is $(BOARD).
|
@echo AVR Model: $(MCU)
|
||||||
@echo ------------------------------------
|
@echo Board: $(BOARD)
|
||||||
|
@echo Clock: $(F_CPU)Hz CPU, $(F_CLOCK)Hz Master
|
||||||
|
@echo --------------------------------------
|
||||||
|
|
||||||
# Display compiler version information.
|
# Display compiler version information.
|
||||||
gccversion :
|
gccversion :
|
||||||
|
@ -539,26 +541,6 @@ gccversion :
|
||||||
program: $(TARGET).hex $(TARGET).eep
|
program: $(TARGET).hex $(TARGET).eep
|
||||||
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
||||||
|
|
||||||
flip: $(TARGET).hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation erase f
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation loadbuffer $(TARGET).hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu: $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) erase
|
|
||||||
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
flip-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
copy $(TARGET).eep $(TARGET)eep.hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM erase
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM loadbuffer $(TARGET)eep.hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
|
|
||||||
# Generate avr-gdb config/init file which does the following:
|
# Generate avr-gdb config/init file which does the following:
|
||||||
# define the reset signal, load the target file, connect to target, and set
|
# define the reset signal, load the target file, connect to target, and set
|
||||||
|
@ -733,8 +715,8 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
|
||||||
|
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all checkhooks checklibmode checkboard \
|
.PHONY : all showeventhooks showliboptions showtarget \
|
||||||
begin finish end sizebefore sizeafter gccversion \
|
begin finish end sizebefore sizeafter gccversion build \
|
||||||
build elf hex eep lss sym coff extcoff clean \
|
elf hex eep lss sym coff extcoff program clean debug \
|
||||||
clean_list clean_binary program debug gdb-config \
|
clean_list clean_binary gdb-config doxygen dfu flip \
|
||||||
doxygen dfu flip flip-ee dfu-ee
|
flip-ee dfu-ee
|
|
@ -466,7 +466,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# Default target.
|
# Default target.
|
||||||
all: begin gccversion sizebefore build checkhooks checklibmode checkboard sizeafter end
|
all: begin gccversion sizebefore build showeventhooks showliboptions showtarget sizeafter end
|
||||||
|
|
||||||
# Change the build target to build a HEX file or a library.
|
# Change the build target to build a HEX file or a library.
|
||||||
build: elf hex eep lss sym
|
build: elf hex eep lss sym
|
||||||
|
@ -509,27 +509,29 @@ sizeafter:
|
||||||
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
||||||
2>/dev/null; echo; fi
|
2>/dev/null; echo; fi
|
||||||
|
|
||||||
checkhooks: build
|
showeventhooks: build
|
||||||
@echo
|
@echo
|
||||||
@echo ------- Unhooked LUFA Events -------
|
@echo -------- Unhooked LUFA Events --------
|
||||||
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
||||||
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
||||||
echo "(None)"
|
echo "(None)"
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checklibmode:
|
showliboptions:
|
||||||
@echo
|
@echo
|
||||||
@echo ----------- Library Mode -----------
|
@echo ---- Compile Time Library Options ----
|
||||||
@$(shell) ($(CC) $(ALL_CFLAGS) -E -dM - < /dev/null \
|
@for i in $(LUFA_OPTS:-D%=%); do \
|
||||||
| grep 'USB_\(DEVICE\|HOST\)_ONLY' | cut -d' ' -f2 | grep ".*") \
|
echo $$i; \
|
||||||
|| echo "No specific mode (both device and host mode allowable)."
|
done
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checkboard:
|
showtarget:
|
||||||
@echo
|
@echo
|
||||||
@echo ---------- Selected Board ----------
|
@echo --------- Target Information ---------
|
||||||
@echo Selected board model is $(BOARD).
|
@echo AVR Model: $(MCU)
|
||||||
@echo ------------------------------------
|
@echo Board: $(BOARD)
|
||||||
|
@echo Clock: $(F_CPU)Hz CPU, $(F_CLOCK)Hz Master
|
||||||
|
@echo --------------------------------------
|
||||||
|
|
||||||
# Display compiler version information.
|
# Display compiler version information.
|
||||||
gccversion :
|
gccversion :
|
||||||
|
@ -541,26 +543,6 @@ gccversion :
|
||||||
program: $(TARGET).hex $(TARGET).eep
|
program: $(TARGET).hex $(TARGET).eep
|
||||||
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
||||||
|
|
||||||
flip: $(TARGET).hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation erase f
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation loadbuffer $(TARGET).hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu: $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) erase
|
|
||||||
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
flip-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
copy $(TARGET).eep $(TARGET)eep.hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM erase
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM loadbuffer $(TARGET)eep.hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
|
|
||||||
# Generate avr-gdb config/init file which does the following:
|
# Generate avr-gdb config/init file which does the following:
|
||||||
# define the reset signal, load the target file, connect to target, and set
|
# define the reset signal, load the target file, connect to target, and set
|
||||||
|
@ -735,8 +717,8 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
|
||||||
|
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all checkhooks checklibmode checkboard \
|
.PHONY : all showeventhooks showliboptions showtarget \
|
||||||
begin finish end sizebefore sizeafter gccversion \
|
begin finish end sizebefore sizeafter gccversion build \
|
||||||
build elf hex eep lss sym coff extcoff clean \
|
elf hex eep lss sym coff extcoff program clean debug \
|
||||||
clean_list clean_binary program debug gdb-config \
|
clean_list clean_binary gdb-config doxygen dfu flip \
|
||||||
doxygen dfu flip flip-ee dfu-ee
|
flip-ee dfu-ee
|
|
@ -466,7 +466,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# Default target.
|
# Default target.
|
||||||
all: begin gccversion sizebefore build checkhooks checklibmode checkboard sizeafter end
|
all: begin gccversion sizebefore build showeventhooks showliboptions showtarget sizeafter end
|
||||||
|
|
||||||
# Change the build target to build a HEX file or a library.
|
# Change the build target to build a HEX file or a library.
|
||||||
build: elf hex eep lss sym
|
build: elf hex eep lss sym
|
||||||
|
@ -509,27 +509,29 @@ sizeafter:
|
||||||
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
||||||
2>/dev/null; echo; fi
|
2>/dev/null; echo; fi
|
||||||
|
|
||||||
checkhooks: build
|
showeventhooks: build
|
||||||
@echo
|
@echo
|
||||||
@echo ------- Unhooked LUFA Events -------
|
@echo -------- Unhooked LUFA Events --------
|
||||||
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
||||||
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
||||||
echo "(None)"
|
echo "(None)"
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checklibmode:
|
showliboptions:
|
||||||
@echo
|
@echo
|
||||||
@echo ----------- Library Mode -----------
|
@echo ---- Compile Time Library Options ----
|
||||||
@$(shell) ($(CC) $(ALL_CFLAGS) -E -dM - < /dev/null \
|
@for i in $(LUFA_OPTS:-D%=%); do \
|
||||||
| grep 'USB_\(DEVICE\|HOST\)_ONLY' | cut -d' ' -f2 | grep ".*") \
|
echo $$i; \
|
||||||
|| echo "No specific mode (both device and host mode allowable)."
|
done
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checkboard:
|
showtarget:
|
||||||
@echo
|
@echo
|
||||||
@echo ---------- Selected Board ----------
|
@echo --------- Target Information ---------
|
||||||
@echo Selected board model is $(BOARD).
|
@echo AVR Model: $(MCU)
|
||||||
@echo ------------------------------------
|
@echo Board: $(BOARD)
|
||||||
|
@echo Clock: $(F_CPU)Hz CPU, $(F_CLOCK)Hz Master
|
||||||
|
@echo --------------------------------------
|
||||||
|
|
||||||
# Display compiler version information.
|
# Display compiler version information.
|
||||||
gccversion :
|
gccversion :
|
||||||
|
@ -541,26 +543,6 @@ gccversion :
|
||||||
program: $(TARGET).hex $(TARGET).eep
|
program: $(TARGET).hex $(TARGET).eep
|
||||||
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
||||||
|
|
||||||
flip: $(TARGET).hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation erase f
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation loadbuffer $(TARGET).hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu: $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) erase
|
|
||||||
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
flip-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
copy $(TARGET).eep $(TARGET)eep.hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM erase
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM loadbuffer $(TARGET)eep.hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
|
|
||||||
# Generate avr-gdb config/init file which does the following:
|
# Generate avr-gdb config/init file which does the following:
|
||||||
# define the reset signal, load the target file, connect to target, and set
|
# define the reset signal, load the target file, connect to target, and set
|
||||||
|
@ -735,8 +717,8 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
|
||||||
|
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all checkhooks checklibmode checkboard \
|
.PHONY : all showeventhooks showliboptions showtarget \
|
||||||
begin finish end sizebefore sizeafter gccversion \
|
begin finish end sizebefore sizeafter gccversion build \
|
||||||
build elf hex eep lss sym coff extcoff clean \
|
elf hex eep lss sym coff extcoff program clean debug \
|
||||||
clean_list clean_binary program debug gdb-config \
|
clean_list clean_binary gdb-config doxygen dfu flip \
|
||||||
doxygen dfu flip flip-ee dfu-ee
|
flip-ee dfu-ee
|
|
@ -475,7 +475,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# Default target.
|
# Default target.
|
||||||
all: begin gccversion sizebefore build checkhooks checklibmode checkboard sizeafter end
|
all: begin gccversion sizebefore build showeventhooks showliboptions showtarget sizeafter end
|
||||||
|
|
||||||
# Change the build target to build a HEX file or a library.
|
# Change the build target to build a HEX file or a library.
|
||||||
build: elf hex eep lss sym
|
build: elf hex eep lss sym
|
||||||
|
@ -518,27 +518,29 @@ sizeafter:
|
||||||
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
||||||
2>/dev/null; echo; fi
|
2>/dev/null; echo; fi
|
||||||
|
|
||||||
checkhooks: build
|
showeventhooks: build
|
||||||
@echo
|
@echo
|
||||||
@echo ------- Unhooked LUFA Events -------
|
@echo -------- Unhooked LUFA Events --------
|
||||||
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
||||||
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
||||||
echo "(None)"
|
echo "(None)"
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checklibmode:
|
showliboptions:
|
||||||
@echo
|
@echo
|
||||||
@echo ----------- Library Mode -----------
|
@echo ---- Compile Time Library Options ----
|
||||||
@$(shell) ($(CC) $(ALL_CFLAGS) -E -dM - < /dev/null \
|
@for i in $(LUFA_OPTS:-D%=%); do \
|
||||||
| grep 'USB_\(DEVICE\|HOST\)_ONLY' | cut -d' ' -f2 | grep ".*") \
|
echo $$i; \
|
||||||
|| echo "No specific mode (both device and host mode allowable)."
|
done
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checkboard:
|
showtarget:
|
||||||
@echo
|
@echo
|
||||||
@echo ---------- Selected Board ----------
|
@echo --------- Target Information ---------
|
||||||
@echo Selected board model is $(BOARD).
|
@echo AVR Model: $(MCU)
|
||||||
@echo ------------------------------------
|
@echo Board: $(BOARD)
|
||||||
|
@echo Clock: $(F_CPU)Hz CPU, $(F_CLOCK)Hz Master
|
||||||
|
@echo --------------------------------------
|
||||||
|
|
||||||
# Display compiler version information.
|
# Display compiler version information.
|
||||||
gccversion :
|
gccversion :
|
||||||
|
@ -550,26 +552,6 @@ gccversion :
|
||||||
program: $(TARGET).hex $(TARGET).eep
|
program: $(TARGET).hex $(TARGET).eep
|
||||||
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
||||||
|
|
||||||
flip: $(TARGET).hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation erase f
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation loadbuffer $(TARGET).hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu: $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) erase
|
|
||||||
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
flip-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
copy $(TARGET).eep $(TARGET)eep.hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM erase
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM loadbuffer $(TARGET)eep.hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
|
|
||||||
# Generate avr-gdb config/init file which does the following:
|
# Generate avr-gdb config/init file which does the following:
|
||||||
# define the reset signal, load the target file, connect to target, and set
|
# define the reset signal, load the target file, connect to target, and set
|
||||||
|
@ -744,8 +726,8 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
|
||||||
|
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all checkhooks checklibmode checkboard \
|
.PHONY : all showeventhooks showliboptions showtarget \
|
||||||
begin finish end sizebefore sizeafter gccversion \
|
begin finish end sizebefore sizeafter gccversion build \
|
||||||
build elf hex eep lss sym coff extcoff clean \
|
elf hex eep lss sym coff extcoff program clean debug \
|
||||||
clean_list clean_binary program debug gdb-config \
|
clean_list clean_binary gdb-config doxygen dfu flip \
|
||||||
doxygen dfu flip flip-ee dfu-ee
|
flip-ee dfu-ee
|
|
@ -465,7 +465,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# Default target.
|
# Default target.
|
||||||
all: begin gccversion sizebefore build checkhooks checklibmode checkboard sizeafter end
|
all: begin gccversion sizebefore build showeventhooks showliboptions showtarget sizeafter end
|
||||||
|
|
||||||
# Change the build target to build a HEX file or a library.
|
# Change the build target to build a HEX file or a library.
|
||||||
build: elf hex eep lss sym
|
build: elf hex eep lss sym
|
||||||
|
@ -508,27 +508,29 @@ sizeafter:
|
||||||
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
||||||
2>/dev/null; echo; fi
|
2>/dev/null; echo; fi
|
||||||
|
|
||||||
checkhooks: build
|
showeventhooks: build
|
||||||
@echo
|
@echo
|
||||||
@echo ------- Unhooked LUFA Events -------
|
@echo -------- Unhooked LUFA Events --------
|
||||||
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
||||||
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
||||||
echo "(None)"
|
echo "(None)"
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checklibmode:
|
showliboptions:
|
||||||
@echo
|
@echo
|
||||||
@echo ----------- Library Mode -----------
|
@echo ---- Compile Time Library Options ----
|
||||||
@$(shell) ($(CC) $(ALL_CFLAGS) -E -dM - < /dev/null \
|
@for i in $(LUFA_OPTS:-D%=%); do \
|
||||||
| grep 'USB_\(DEVICE\|HOST\)_ONLY' | cut -d' ' -f2 | grep ".*") \
|
echo $$i; \
|
||||||
|| echo "No specific mode (both device and host mode allowable)."
|
done
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checkboard:
|
showtarget:
|
||||||
@echo
|
@echo
|
||||||
@echo ---------- Selected Board ----------
|
@echo --------- Target Information ---------
|
||||||
@echo Selected board model is $(BOARD).
|
@echo AVR Model: $(MCU)
|
||||||
@echo ------------------------------------
|
@echo Board: $(BOARD)
|
||||||
|
@echo Clock: $(F_CPU)Hz CPU, $(F_CLOCK)Hz Master
|
||||||
|
@echo --------------------------------------
|
||||||
|
|
||||||
# Display compiler version information.
|
# Display compiler version information.
|
||||||
gccversion :
|
gccversion :
|
||||||
|
@ -540,26 +542,6 @@ gccversion :
|
||||||
program: $(TARGET).hex $(TARGET).eep
|
program: $(TARGET).hex $(TARGET).eep
|
||||||
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
||||||
|
|
||||||
flip: $(TARGET).hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation erase f
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation loadbuffer $(TARGET).hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu: $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) erase
|
|
||||||
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
flip-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
copy $(TARGET).eep $(TARGET)eep.hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM erase
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM loadbuffer $(TARGET)eep.hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
|
|
||||||
# Generate avr-gdb config/init file which does the following:
|
# Generate avr-gdb config/init file which does the following:
|
||||||
# define the reset signal, load the target file, connect to target, and set
|
# define the reset signal, load the target file, connect to target, and set
|
||||||
|
@ -734,8 +716,8 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
|
||||||
|
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all checkhooks checklibmode checkboard \
|
.PHONY : all showeventhooks showliboptions showtarget \
|
||||||
begin finish end sizebefore sizeafter gccversion \
|
begin finish end sizebefore sizeafter gccversion build \
|
||||||
build elf hex eep lss sym coff extcoff clean \
|
elf hex eep lss sym coff extcoff program clean debug \
|
||||||
clean_list clean_binary program debug gdb-config \
|
clean_list clean_binary gdb-config doxygen dfu flip \
|
||||||
doxygen dfu flip flip-ee dfu-ee
|
flip-ee dfu-ee
|
|
@ -469,7 +469,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# Default target.
|
# Default target.
|
||||||
all: begin gccversion sizebefore build checkhooks checklibmode checkboard sizeafter end
|
all: begin gccversion sizebefore build showeventhooks showliboptions showtarget sizeafter end
|
||||||
|
|
||||||
# Change the build target to build a HEX file or a library.
|
# Change the build target to build a HEX file or a library.
|
||||||
build: elf hex eep lss sym
|
build: elf hex eep lss sym
|
||||||
|
@ -512,27 +512,29 @@ sizeafter:
|
||||||
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
||||||
2>/dev/null; echo; fi
|
2>/dev/null; echo; fi
|
||||||
|
|
||||||
checkhooks: build
|
showeventhooks: build
|
||||||
@echo
|
@echo
|
||||||
@echo ------- Unhooked LUFA Events -------
|
@echo -------- Unhooked LUFA Events --------
|
||||||
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
||||||
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
||||||
echo "(None)"
|
echo "(None)"
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checklibmode:
|
showliboptions:
|
||||||
@echo
|
@echo
|
||||||
@echo ----------- Library Mode -----------
|
@echo ---- Compile Time Library Options ----
|
||||||
@$(shell) ($(CC) $(ALL_CFLAGS) -E -dM - < /dev/null \
|
@for i in $(LUFA_OPTS:-D%=%); do \
|
||||||
| grep 'USB_\(DEVICE\|HOST\)_ONLY' | cut -d' ' -f2 | grep ".*") \
|
echo $$i; \
|
||||||
|| echo "No specific mode (both device and host mode allowable)."
|
done
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checkboard:
|
showtarget:
|
||||||
@echo
|
@echo
|
||||||
@echo ---------- Selected Board ----------
|
@echo --------- Target Information ---------
|
||||||
@echo Selected board model is $(BOARD).
|
@echo AVR Model: $(MCU)
|
||||||
@echo ------------------------------------
|
@echo Board: $(BOARD)
|
||||||
|
@echo Clock: $(F_CPU)Hz CPU, $(F_CLOCK)Hz Master
|
||||||
|
@echo --------------------------------------
|
||||||
|
|
||||||
# Display compiler version information.
|
# Display compiler version information.
|
||||||
gccversion :
|
gccversion :
|
||||||
|
@ -544,26 +546,6 @@ gccversion :
|
||||||
program: $(TARGET).hex $(TARGET).eep
|
program: $(TARGET).hex $(TARGET).eep
|
||||||
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
||||||
|
|
||||||
flip: $(TARGET).hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation erase f
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation loadbuffer $(TARGET).hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu: $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) erase
|
|
||||||
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
flip-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
copy $(TARGET).eep $(TARGET)eep.hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM erase
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM loadbuffer $(TARGET)eep.hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
|
|
||||||
# Generate avr-gdb config/init file which does the following:
|
# Generate avr-gdb config/init file which does the following:
|
||||||
# define the reset signal, load the target file, connect to target, and set
|
# define the reset signal, load the target file, connect to target, and set
|
||||||
|
@ -738,8 +720,8 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
|
||||||
|
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all checkhooks checklibmode checkboard \
|
.PHONY : all showeventhooks showliboptions showtarget \
|
||||||
begin finish end sizebefore sizeafter gccversion \
|
begin finish end sizebefore sizeafter gccversion build \
|
||||||
build elf hex eep lss sym coff extcoff clean \
|
elf hex eep lss sym coff extcoff program clean debug \
|
||||||
clean_list clean_binary program debug gdb-config \
|
clean_list clean_binary gdb-config doxygen dfu flip \
|
||||||
doxygen dfu flip flip-ee dfu-ee
|
flip-ee dfu-ee
|
|
@ -463,7 +463,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# Default target.
|
# Default target.
|
||||||
all: begin gccversion sizebefore build checkhooks checklibmode checkboard sizeafter end
|
all: begin gccversion sizebefore build showeventhooks showliboptions showtarget sizeafter end
|
||||||
|
|
||||||
# Change the build target to build a HEX file or a library.
|
# Change the build target to build a HEX file or a library.
|
||||||
build: elf hex eep lss sym
|
build: elf hex eep lss sym
|
||||||
|
@ -506,27 +506,29 @@ sizeafter:
|
||||||
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
||||||
2>/dev/null; echo; fi
|
2>/dev/null; echo; fi
|
||||||
|
|
||||||
checkhooks: build
|
showeventhooks: build
|
||||||
@echo
|
@echo
|
||||||
@echo ------- Unhooked LUFA Events -------
|
@echo -------- Unhooked LUFA Events --------
|
||||||
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
||||||
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
||||||
echo "(None)"
|
echo "(None)"
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checklibmode:
|
showliboptions:
|
||||||
@echo
|
@echo
|
||||||
@echo ----------- Library Mode -----------
|
@echo ---- Compile Time Library Options ----
|
||||||
@$(shell) ($(CC) $(ALL_CFLAGS) -E -dM - < /dev/null \
|
@for i in $(LUFA_OPTS:-D%=%); do \
|
||||||
| grep 'USB_\(DEVICE\|HOST\)_ONLY' | cut -d' ' -f2 | grep ".*") \
|
echo $$i; \
|
||||||
|| echo "No specific mode (both device and host mode allowable)."
|
done
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checkboard:
|
showtarget:
|
||||||
@echo
|
@echo
|
||||||
@echo ---------- Selected Board ----------
|
@echo --------- Target Information ---------
|
||||||
@echo Selected board model is $(BOARD).
|
@echo AVR Model: $(MCU)
|
||||||
@echo ------------------------------------
|
@echo Board: $(BOARD)
|
||||||
|
@echo Clock: $(F_CPU)Hz CPU, $(F_CLOCK)Hz Master
|
||||||
|
@echo --------------------------------------
|
||||||
|
|
||||||
# Display compiler version information.
|
# Display compiler version information.
|
||||||
gccversion :
|
gccversion :
|
||||||
|
@ -538,26 +540,6 @@ gccversion :
|
||||||
program: $(TARGET).hex $(TARGET).eep
|
program: $(TARGET).hex $(TARGET).eep
|
||||||
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
||||||
|
|
||||||
flip: $(TARGET).hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation erase f
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation loadbuffer $(TARGET).hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu: $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) erase
|
|
||||||
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
flip-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
copy $(TARGET).eep $(TARGET)eep.hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM erase
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM loadbuffer $(TARGET)eep.hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
|
|
||||||
# Generate avr-gdb config/init file which does the following:
|
# Generate avr-gdb config/init file which does the following:
|
||||||
# define the reset signal, load the target file, connect to target, and set
|
# define the reset signal, load the target file, connect to target, and set
|
||||||
|
@ -732,8 +714,8 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
|
||||||
|
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all checkhooks checklibmode checkboard \
|
.PHONY : all showeventhooks showliboptions showtarget \
|
||||||
begin finish end sizebefore sizeafter gccversion \
|
begin finish end sizebefore sizeafter gccversion build \
|
||||||
build elf hex eep lss sym coff extcoff clean \
|
elf hex eep lss sym coff extcoff program clean debug \
|
||||||
clean_list clean_binary program debug gdb-config \
|
clean_list clean_binary gdb-config doxygen dfu flip \
|
||||||
doxygen dfu flip flip-ee dfu-ee
|
flip-ee dfu-ee
|
|
@ -210,8 +210,10 @@ void USB_Audio_Task(void)
|
||||||
int8_t LeftSample_8Bit = (LeftSample_16Bit >> 8);
|
int8_t LeftSample_8Bit = (LeftSample_16Bit >> 8);
|
||||||
int8_t RightSample_8Bit = (RightSample_16Bit >> 8);
|
int8_t RightSample_8Bit = (RightSample_16Bit >> 8);
|
||||||
|
|
||||||
|
#if !defined(AUDIO_OUT_STEREO)
|
||||||
/* Mix the two channels together to produce a mono, 8-bit sample */
|
/* Mix the two channels together to produce a mono, 8-bit sample */
|
||||||
int8_t MixedSample_8Bit = (((int16_t)LeftSample_8Bit + (int16_t)RightSample_8Bit) >> 1);
|
int8_t MixedSample_8Bit = (((int16_t)LeftSample_8Bit + (int16_t)RightSample_8Bit) >> 1);
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(AUDIO_OUT_MONO)
|
#if defined(AUDIO_OUT_MONO)
|
||||||
/* Load the sample into the PWM timer channel */
|
/* Load the sample into the PWM timer channel */
|
||||||
|
|
|
@ -464,7 +464,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# Default target.
|
# Default target.
|
||||||
all: begin gccversion sizebefore build checkhooks checklibmode checkboard sizeafter end
|
all: begin gccversion sizebefore build showeventhooks showliboptions showtarget sizeafter end
|
||||||
|
|
||||||
# Change the build target to build a HEX file or a library.
|
# Change the build target to build a HEX file or a library.
|
||||||
build: elf hex eep lss sym
|
build: elf hex eep lss sym
|
||||||
|
@ -507,27 +507,29 @@ sizeafter:
|
||||||
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
||||||
2>/dev/null; echo; fi
|
2>/dev/null; echo; fi
|
||||||
|
|
||||||
checkhooks: build
|
showeventhooks: build
|
||||||
@echo
|
@echo
|
||||||
@echo ------- Unhooked LUFA Events -------
|
@echo -------- Unhooked LUFA Events --------
|
||||||
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
||||||
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
||||||
echo "(None)"
|
echo "(None)"
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checklibmode:
|
showliboptions:
|
||||||
@echo
|
@echo
|
||||||
@echo ----------- Library Mode -----------
|
@echo ---- Compile Time Library Options ----
|
||||||
@$(shell) ($(CC) $(ALL_CFLAGS) -E -dM - < /dev/null \
|
@for i in $(LUFA_OPTS:-D%=%); do \
|
||||||
| grep 'USB_\(DEVICE\|HOST\)_ONLY' | cut -d' ' -f2 | grep ".*") \
|
echo $$i; \
|
||||||
|| echo "No specific mode (both device and host mode allowable)."
|
done
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checkboard:
|
showtarget:
|
||||||
@echo
|
@echo
|
||||||
@echo ---------- Selected Board ----------
|
@echo --------- Target Information ---------
|
||||||
@echo Selected board model is $(BOARD).
|
@echo AVR Model: $(MCU)
|
||||||
@echo ------------------------------------
|
@echo Board: $(BOARD)
|
||||||
|
@echo Clock: $(F_CPU)Hz CPU, $(F_CLOCK)Hz Master
|
||||||
|
@echo --------------------------------------
|
||||||
|
|
||||||
# Display compiler version information.
|
# Display compiler version information.
|
||||||
gccversion :
|
gccversion :
|
||||||
|
@ -539,26 +541,6 @@ gccversion :
|
||||||
program: $(TARGET).hex $(TARGET).eep
|
program: $(TARGET).hex $(TARGET).eep
|
||||||
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
||||||
|
|
||||||
flip: $(TARGET).hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation erase f
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation loadbuffer $(TARGET).hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu: $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) erase
|
|
||||||
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
flip-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
copy $(TARGET).eep $(TARGET)eep.hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM erase
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM loadbuffer $(TARGET)eep.hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
|
|
||||||
# Generate avr-gdb config/init file which does the following:
|
# Generate avr-gdb config/init file which does the following:
|
||||||
# define the reset signal, load the target file, connect to target, and set
|
# define the reset signal, load the target file, connect to target, and set
|
||||||
|
@ -733,8 +715,8 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
|
||||||
|
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all checkhooks checklibmode checkboard \
|
.PHONY : all showeventhooks showliboptions showtarget \
|
||||||
begin finish end sizebefore sizeafter gccversion \
|
begin finish end sizebefore sizeafter gccversion build \
|
||||||
build elf hex eep lss sym coff extcoff clean \
|
elf hex eep lss sym coff extcoff program clean debug \
|
||||||
clean_list clean_binary program debug gdb-config \
|
clean_list clean_binary gdb-config doxygen dfu flip \
|
||||||
doxygen dfu flip flip-ee dfu-ee
|
flip-ee dfu-ee
|
|
@ -463,7 +463,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# Default target.
|
# Default target.
|
||||||
all: begin gccversion sizebefore build checkhooks checklibmode checkboard sizeafter end
|
all: begin gccversion sizebefore build showeventhooks showliboptions showtarget sizeafter end
|
||||||
|
|
||||||
# Change the build target to build a HEX file or a library.
|
# Change the build target to build a HEX file or a library.
|
||||||
build: elf hex eep lss sym
|
build: elf hex eep lss sym
|
||||||
|
@ -506,27 +506,29 @@ sizeafter:
|
||||||
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
||||||
2>/dev/null; echo; fi
|
2>/dev/null; echo; fi
|
||||||
|
|
||||||
checkhooks: build
|
showeventhooks: build
|
||||||
@echo
|
@echo
|
||||||
@echo ------- Unhooked LUFA Events -------
|
@echo -------- Unhooked LUFA Events --------
|
||||||
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
||||||
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
||||||
echo "(None)"
|
echo "(None)"
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checklibmode:
|
showliboptions:
|
||||||
@echo
|
@echo
|
||||||
@echo ----------- Library Mode -----------
|
@echo ---- Compile Time Library Options ----
|
||||||
@$(shell) ($(CC) $(ALL_CFLAGS) -E -dM - < /dev/null \
|
@for i in $(LUFA_OPTS:-D%=%); do \
|
||||||
| grep 'USB_\(DEVICE\|HOST\)_ONLY' | cut -d' ' -f2 | grep ".*") \
|
echo $$i; \
|
||||||
|| echo "No specific mode (both device and host mode allowable)."
|
done
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checkboard:
|
showtarget:
|
||||||
@echo
|
@echo
|
||||||
@echo ---------- Selected Board ----------
|
@echo --------- Target Information ---------
|
||||||
@echo Selected board model is $(BOARD).
|
@echo AVR Model: $(MCU)
|
||||||
@echo ------------------------------------
|
@echo Board: $(BOARD)
|
||||||
|
@echo Clock: $(F_CPU)Hz CPU, $(F_CLOCK)Hz Master
|
||||||
|
@echo --------------------------------------
|
||||||
|
|
||||||
# Display compiler version information.
|
# Display compiler version information.
|
||||||
gccversion :
|
gccversion :
|
||||||
|
@ -538,26 +540,6 @@ gccversion :
|
||||||
program: $(TARGET).hex $(TARGET).eep
|
program: $(TARGET).hex $(TARGET).eep
|
||||||
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
||||||
|
|
||||||
flip: $(TARGET).hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation erase f
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation loadbuffer $(TARGET).hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu: $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) erase
|
|
||||||
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
flip-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
copy $(TARGET).eep $(TARGET)eep.hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM erase
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM loadbuffer $(TARGET)eep.hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
|
|
||||||
# Generate avr-gdb config/init file which does the following:
|
# Generate avr-gdb config/init file which does the following:
|
||||||
# define the reset signal, load the target file, connect to target, and set
|
# define the reset signal, load the target file, connect to target, and set
|
||||||
|
@ -732,8 +714,8 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
|
||||||
|
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all checkhooks checklibmode checkboard \
|
.PHONY : all showeventhooks showliboptions showtarget \
|
||||||
begin finish end sizebefore sizeafter gccversion \
|
begin finish end sizebefore sizeafter gccversion build \
|
||||||
build elf hex eep lss sym coff extcoff clean \
|
elf hex eep lss sym coff extcoff program clean debug \
|
||||||
clean_list clean_binary program debug gdb-config \
|
clean_list clean_binary gdb-config doxygen dfu flip \
|
||||||
doxygen dfu flip flip-ee dfu-ee
|
flip-ee dfu-ee
|
|
@ -463,7 +463,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# Default target.
|
# Default target.
|
||||||
all: begin gccversion sizebefore build checkhooks checklibmode checkboard sizeafter end
|
all: begin gccversion sizebefore build showeventhooks showliboptions showtarget sizeafter end
|
||||||
|
|
||||||
# Change the build target to build a HEX file or a library.
|
# Change the build target to build a HEX file or a library.
|
||||||
build: elf hex eep lss sym
|
build: elf hex eep lss sym
|
||||||
|
@ -506,27 +506,29 @@ sizeafter:
|
||||||
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
||||||
2>/dev/null; echo; fi
|
2>/dev/null; echo; fi
|
||||||
|
|
||||||
checkhooks: build
|
showeventhooks: build
|
||||||
@echo
|
@echo
|
||||||
@echo ------- Unhooked LUFA Events -------
|
@echo -------- Unhooked LUFA Events --------
|
||||||
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
||||||
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
||||||
echo "(None)"
|
echo "(None)"
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checklibmode:
|
showliboptions:
|
||||||
@echo
|
@echo
|
||||||
@echo ----------- Library Mode -----------
|
@echo ---- Compile Time Library Options ----
|
||||||
@$(shell) ($(CC) $(ALL_CFLAGS) -E -dM - < /dev/null \
|
@for i in $(LUFA_OPTS:-D%=%); do \
|
||||||
| grep 'USB_\(DEVICE\|HOST\)_ONLY' | cut -d' ' -f2 | grep ".*") \
|
echo $$i; \
|
||||||
|| echo "No specific mode (both device and host mode allowable)."
|
done
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checkboard:
|
showtarget:
|
||||||
@echo
|
@echo
|
||||||
@echo ---------- Selected Board ----------
|
@echo --------- Target Information ---------
|
||||||
@echo Selected board model is $(BOARD).
|
@echo AVR Model: $(MCU)
|
||||||
@echo ------------------------------------
|
@echo Board: $(BOARD)
|
||||||
|
@echo Clock: $(F_CPU)Hz CPU, $(F_CLOCK)Hz Master
|
||||||
|
@echo --------------------------------------
|
||||||
|
|
||||||
# Display compiler version information.
|
# Display compiler version information.
|
||||||
gccversion :
|
gccversion :
|
||||||
|
@ -538,26 +540,6 @@ gccversion :
|
||||||
program: $(TARGET).hex $(TARGET).eep
|
program: $(TARGET).hex $(TARGET).eep
|
||||||
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
||||||
|
|
||||||
flip: $(TARGET).hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation erase f
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation loadbuffer $(TARGET).hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu: $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) erase
|
|
||||||
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
flip-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
copy $(TARGET).eep $(TARGET)eep.hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM erase
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM loadbuffer $(TARGET)eep.hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
|
|
||||||
# Generate avr-gdb config/init file which does the following:
|
# Generate avr-gdb config/init file which does the following:
|
||||||
# define the reset signal, load the target file, connect to target, and set
|
# define the reset signal, load the target file, connect to target, and set
|
||||||
|
@ -732,8 +714,8 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
|
||||||
|
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all checkhooks checklibmode checkboard \
|
.PHONY : all showeventhooks showliboptions showtarget \
|
||||||
begin finish end sizebefore sizeafter gccversion \
|
begin finish end sizebefore sizeafter gccversion build \
|
||||||
build elf hex eep lss sym coff extcoff clean \
|
elf hex eep lss sym coff extcoff program clean debug \
|
||||||
clean_list clean_binary program debug gdb-config \
|
clean_list clean_binary gdb-config doxygen dfu flip \
|
||||||
doxygen dfu flip flip-ee dfu-ee
|
flip-ee dfu-ee
|
|
@ -463,7 +463,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# Default target.
|
# Default target.
|
||||||
all: begin gccversion sizebefore build checkhooks checklibmode checkboard sizeafter end
|
all: begin gccversion sizebefore build showeventhooks showliboptions showtarget sizeafter end
|
||||||
|
|
||||||
# Change the build target to build a HEX file or a library.
|
# Change the build target to build a HEX file or a library.
|
||||||
build: elf hex eep lss sym
|
build: elf hex eep lss sym
|
||||||
|
@ -506,27 +506,29 @@ sizeafter:
|
||||||
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
||||||
2>/dev/null; echo; fi
|
2>/dev/null; echo; fi
|
||||||
|
|
||||||
checkhooks: build
|
showeventhooks: build
|
||||||
@echo
|
@echo
|
||||||
@echo ------- Unhooked LUFA Events -------
|
@echo -------- Unhooked LUFA Events --------
|
||||||
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
||||||
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
||||||
echo "(None)"
|
echo "(None)"
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checklibmode:
|
showliboptions:
|
||||||
@echo
|
@echo
|
||||||
@echo ----------- Library Mode -----------
|
@echo ---- Compile Time Library Options ----
|
||||||
@$(shell) ($(CC) $(ALL_CFLAGS) -E -dM - < /dev/null \
|
@for i in $(LUFA_OPTS:-D%=%); do \
|
||||||
| grep 'USB_\(DEVICE\|HOST\)_ONLY' | cut -d' ' -f2 | grep ".*") \
|
echo $$i; \
|
||||||
|| echo "No specific mode (both device and host mode allowable)."
|
done
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checkboard:
|
showtarget:
|
||||||
@echo
|
@echo
|
||||||
@echo ---------- Selected Board ----------
|
@echo --------- Target Information ---------
|
||||||
@echo Selected board model is $(BOARD).
|
@echo AVR Model: $(MCU)
|
||||||
@echo ------------------------------------
|
@echo Board: $(BOARD)
|
||||||
|
@echo Clock: $(F_CPU)Hz CPU, $(F_CLOCK)Hz Master
|
||||||
|
@echo --------------------------------------
|
||||||
|
|
||||||
# Display compiler version information.
|
# Display compiler version information.
|
||||||
gccversion :
|
gccversion :
|
||||||
|
@ -538,26 +540,6 @@ gccversion :
|
||||||
program: $(TARGET).hex $(TARGET).eep
|
program: $(TARGET).hex $(TARGET).eep
|
||||||
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
||||||
|
|
||||||
flip: $(TARGET).hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation erase f
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation loadbuffer $(TARGET).hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu: $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) erase
|
|
||||||
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
flip-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
copy $(TARGET).eep $(TARGET)eep.hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM erase
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM loadbuffer $(TARGET)eep.hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
|
|
||||||
# Generate avr-gdb config/init file which does the following:
|
# Generate avr-gdb config/init file which does the following:
|
||||||
# define the reset signal, load the target file, connect to target, and set
|
# define the reset signal, load the target file, connect to target, and set
|
||||||
|
@ -732,8 +714,8 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
|
||||||
|
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all checkhooks checklibmode checkboard \
|
.PHONY : all showeventhooks showliboptions showtarget \
|
||||||
begin finish end sizebefore sizeafter gccversion \
|
begin finish end sizebefore sizeafter gccversion build \
|
||||||
build elf hex eep lss sym coff extcoff clean \
|
elf hex eep lss sym coff extcoff program clean debug \
|
||||||
clean_list clean_binary program debug gdb-config \
|
clean_list clean_binary gdb-config doxygen dfu flip \
|
||||||
doxygen dfu flip flip-ee dfu-ee
|
flip-ee dfu-ee
|
|
@ -463,7 +463,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# Default target.
|
# Default target.
|
||||||
all: begin gccversion sizebefore build checkhooks checklibmode checkboard sizeafter end
|
all: begin gccversion sizebefore build showeventhooks showliboptions showtarget sizeafter end
|
||||||
|
|
||||||
# Change the build target to build a HEX file or a library.
|
# Change the build target to build a HEX file or a library.
|
||||||
build: elf hex eep lss sym
|
build: elf hex eep lss sym
|
||||||
|
@ -506,27 +506,29 @@ sizeafter:
|
||||||
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
||||||
2>/dev/null; echo; fi
|
2>/dev/null; echo; fi
|
||||||
|
|
||||||
checkhooks: build
|
showeventhooks: build
|
||||||
@echo
|
@echo
|
||||||
@echo ------- Unhooked LUFA Events -------
|
@echo -------- Unhooked LUFA Events --------
|
||||||
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
||||||
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
||||||
echo "(None)"
|
echo "(None)"
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checklibmode:
|
showliboptions:
|
||||||
@echo
|
@echo
|
||||||
@echo ----------- Library Mode -----------
|
@echo ---- Compile Time Library Options ----
|
||||||
@$(shell) ($(CC) $(ALL_CFLAGS) -E -dM - < /dev/null \
|
@for i in $(LUFA_OPTS:-D%=%); do \
|
||||||
| grep 'USB_\(DEVICE\|HOST\)_ONLY' | cut -d' ' -f2 | grep ".*") \
|
echo $$i; \
|
||||||
|| echo "No specific mode (both device and host mode allowable)."
|
done
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checkboard:
|
showtarget:
|
||||||
@echo
|
@echo
|
||||||
@echo ---------- Selected Board ----------
|
@echo --------- Target Information ---------
|
||||||
@echo Selected board model is $(BOARD).
|
@echo AVR Model: $(MCU)
|
||||||
@echo ------------------------------------
|
@echo Board: $(BOARD)
|
||||||
|
@echo Clock: $(F_CPU)Hz CPU, $(F_CLOCK)Hz Master
|
||||||
|
@echo --------------------------------------
|
||||||
|
|
||||||
# Display compiler version information.
|
# Display compiler version information.
|
||||||
gccversion :
|
gccversion :
|
||||||
|
@ -538,26 +540,6 @@ gccversion :
|
||||||
program: $(TARGET).hex $(TARGET).eep
|
program: $(TARGET).hex $(TARGET).eep
|
||||||
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
||||||
|
|
||||||
flip: $(TARGET).hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation erase f
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation loadbuffer $(TARGET).hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu: $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) erase
|
|
||||||
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
flip-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
copy $(TARGET).eep $(TARGET)eep.hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM erase
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM loadbuffer $(TARGET)eep.hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
|
|
||||||
# Generate avr-gdb config/init file which does the following:
|
# Generate avr-gdb config/init file which does the following:
|
||||||
# define the reset signal, load the target file, connect to target, and set
|
# define the reset signal, load the target file, connect to target, and set
|
||||||
|
@ -732,8 +714,8 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
|
||||||
|
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all checkhooks checklibmode checkboard \
|
.PHONY : all showeventhooks showliboptions showtarget \
|
||||||
begin finish end sizebefore sizeafter gccversion \
|
begin finish end sizebefore sizeafter gccversion build \
|
||||||
build elf hex eep lss sym coff extcoff clean \
|
elf hex eep lss sym coff extcoff program clean debug \
|
||||||
clean_list clean_binary program debug gdb-config \
|
clean_list clean_binary gdb-config doxygen dfu flip \
|
||||||
doxygen dfu flip flip-ee dfu-ee
|
flip-ee dfu-ee
|
|
@ -463,7 +463,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# Default target.
|
# Default target.
|
||||||
all: begin gccversion sizebefore build checkhooks checklibmode checkboard sizeafter end
|
all: begin gccversion sizebefore build showeventhooks showliboptions showtarget sizeafter end
|
||||||
|
|
||||||
# Change the build target to build a HEX file or a library.
|
# Change the build target to build a HEX file or a library.
|
||||||
build: elf hex eep lss sym
|
build: elf hex eep lss sym
|
||||||
|
@ -506,27 +506,29 @@ sizeafter:
|
||||||
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
||||||
2>/dev/null; echo; fi
|
2>/dev/null; echo; fi
|
||||||
|
|
||||||
checkhooks: build
|
showeventhooks: build
|
||||||
@echo
|
@echo
|
||||||
@echo ------- Unhooked LUFA Events -------
|
@echo -------- Unhooked LUFA Events --------
|
||||||
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
||||||
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
||||||
echo "(None)"
|
echo "(None)"
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checklibmode:
|
showliboptions:
|
||||||
@echo
|
@echo
|
||||||
@echo ----------- Library Mode -----------
|
@echo ---- Compile Time Library Options ----
|
||||||
@$(shell) ($(CC) $(ALL_CFLAGS) -E -dM - < /dev/null \
|
@for i in $(LUFA_OPTS:-D%=%); do \
|
||||||
| grep 'USB_\(DEVICE\|HOST\)_ONLY' | cut -d' ' -f2 | grep ".*") \
|
echo $$i; \
|
||||||
|| echo "No specific mode (both device and host mode allowable)."
|
done
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checkboard:
|
showtarget:
|
||||||
@echo
|
@echo
|
||||||
@echo ---------- Selected Board ----------
|
@echo --------- Target Information ---------
|
||||||
@echo Selected board model is $(BOARD).
|
@echo AVR Model: $(MCU)
|
||||||
@echo ------------------------------------
|
@echo Board: $(BOARD)
|
||||||
|
@echo Clock: $(F_CPU)Hz CPU, $(F_CLOCK)Hz Master
|
||||||
|
@echo --------------------------------------
|
||||||
|
|
||||||
# Display compiler version information.
|
# Display compiler version information.
|
||||||
gccversion :
|
gccversion :
|
||||||
|
@ -538,26 +540,6 @@ gccversion :
|
||||||
program: $(TARGET).hex $(TARGET).eep
|
program: $(TARGET).hex $(TARGET).eep
|
||||||
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
||||||
|
|
||||||
flip: $(TARGET).hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation erase f
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation loadbuffer $(TARGET).hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu: $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) erase
|
|
||||||
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
flip-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
copy $(TARGET).eep $(TARGET)eep.hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM erase
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM loadbuffer $(TARGET)eep.hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
|
|
||||||
# Generate avr-gdb config/init file which does the following:
|
# Generate avr-gdb config/init file which does the following:
|
||||||
# define the reset signal, load the target file, connect to target, and set
|
# define the reset signal, load the target file, connect to target, and set
|
||||||
|
@ -732,8 +714,8 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
|
||||||
|
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all checkhooks checklibmode checkboard \
|
.PHONY : all showeventhooks showliboptions showtarget \
|
||||||
begin finish end sizebefore sizeafter gccversion \
|
begin finish end sizebefore sizeafter gccversion build \
|
||||||
build elf hex eep lss sym coff extcoff clean \
|
elf hex eep lss sym coff extcoff program clean debug \
|
||||||
clean_list clean_binary program debug gdb-config \
|
clean_list clean_binary gdb-config doxygen dfu flip \
|
||||||
doxygen dfu flip flip-ee dfu-ee
|
flip-ee dfu-ee
|
|
@ -463,7 +463,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# Default target.
|
# Default target.
|
||||||
all: begin gccversion sizebefore build checkhooks checklibmode checkboard sizeafter end
|
all: begin gccversion sizebefore build showeventhooks showliboptions showtarget sizeafter end
|
||||||
|
|
||||||
# Change the build target to build a HEX file or a library.
|
# Change the build target to build a HEX file or a library.
|
||||||
build: elf hex eep lss sym
|
build: elf hex eep lss sym
|
||||||
|
@ -506,27 +506,29 @@ sizeafter:
|
||||||
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
||||||
2>/dev/null; echo; fi
|
2>/dev/null; echo; fi
|
||||||
|
|
||||||
checkhooks: build
|
showeventhooks: build
|
||||||
@echo
|
@echo
|
||||||
@echo ------- Unhooked LUFA Events -------
|
@echo -------- Unhooked LUFA Events --------
|
||||||
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
||||||
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
||||||
echo "(None)"
|
echo "(None)"
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checklibmode:
|
showliboptions:
|
||||||
@echo
|
@echo
|
||||||
@echo ----------- Library Mode -----------
|
@echo ---- Compile Time Library Options ----
|
||||||
@$(shell) ($(CC) $(ALL_CFLAGS) -E -dM - < /dev/null \
|
@for i in $(LUFA_OPTS:-D%=%); do \
|
||||||
| grep 'USB_\(DEVICE\|HOST\)_ONLY' | cut -d' ' -f2 | grep ".*") \
|
echo $$i; \
|
||||||
|| echo "No specific mode (both device and host mode allowable)."
|
done
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checkboard:
|
showtarget:
|
||||||
@echo
|
@echo
|
||||||
@echo ---------- Selected Board ----------
|
@echo --------- Target Information ---------
|
||||||
@echo Selected board model is $(BOARD).
|
@echo AVR Model: $(MCU)
|
||||||
@echo ------------------------------------
|
@echo Board: $(BOARD)
|
||||||
|
@echo Clock: $(F_CPU)Hz CPU, $(F_CLOCK)Hz Master
|
||||||
|
@echo --------------------------------------
|
||||||
|
|
||||||
# Display compiler version information.
|
# Display compiler version information.
|
||||||
gccversion :
|
gccversion :
|
||||||
|
@ -538,26 +540,6 @@ gccversion :
|
||||||
program: $(TARGET).hex $(TARGET).eep
|
program: $(TARGET).hex $(TARGET).eep
|
||||||
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
||||||
|
|
||||||
flip: $(TARGET).hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation erase f
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation loadbuffer $(TARGET).hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu: $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) erase
|
|
||||||
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
flip-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
copy $(TARGET).eep $(TARGET)eep.hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM erase
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM loadbuffer $(TARGET)eep.hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
|
|
||||||
# Generate avr-gdb config/init file which does the following:
|
# Generate avr-gdb config/init file which does the following:
|
||||||
# define the reset signal, load the target file, connect to target, and set
|
# define the reset signal, load the target file, connect to target, and set
|
||||||
|
@ -732,8 +714,8 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
|
||||||
|
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all checkhooks checklibmode checkboard \
|
.PHONY : all showeventhooks showliboptions showtarget \
|
||||||
begin finish end sizebefore sizeafter gccversion \
|
begin finish end sizebefore sizeafter gccversion build \
|
||||||
build elf hex eep lss sym coff extcoff clean \
|
elf hex eep lss sym coff extcoff program clean debug \
|
||||||
clean_list clean_binary program debug gdb-config \
|
clean_list clean_binary gdb-config doxygen dfu flip \
|
||||||
doxygen dfu flip flip-ee dfu-ee
|
flip-ee dfu-ee
|
|
@ -463,7 +463,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# Default target.
|
# Default target.
|
||||||
all: begin gccversion sizebefore build checkhooks checklibmode checkboard sizeafter end
|
all: begin gccversion sizebefore build showeventhooks showliboptions showtarget sizeafter end
|
||||||
|
|
||||||
# Change the build target to build a HEX file or a library.
|
# Change the build target to build a HEX file or a library.
|
||||||
build: elf hex eep lss sym
|
build: elf hex eep lss sym
|
||||||
|
@ -506,27 +506,29 @@ sizeafter:
|
||||||
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
||||||
2>/dev/null; echo; fi
|
2>/dev/null; echo; fi
|
||||||
|
|
||||||
checkhooks: build
|
showeventhooks: build
|
||||||
@echo
|
@echo
|
||||||
@echo ------- Unhooked LUFA Events -------
|
@echo -------- Unhooked LUFA Events --------
|
||||||
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
||||||
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
||||||
echo "(None)"
|
echo "(None)"
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checklibmode:
|
showliboptions:
|
||||||
@echo
|
@echo
|
||||||
@echo ----------- Library Mode -----------
|
@echo ---- Compile Time Library Options ----
|
||||||
@$(shell) ($(CC) $(ALL_CFLAGS) -E -dM - < /dev/null \
|
@for i in $(LUFA_OPTS:-D%=%); do \
|
||||||
| grep 'USB_\(DEVICE\|HOST\)_ONLY' | cut -d' ' -f2 | grep ".*") \
|
echo $$i; \
|
||||||
|| echo "No specific mode (both device and host mode allowable)."
|
done
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checkboard:
|
showtarget:
|
||||||
@echo
|
@echo
|
||||||
@echo ---------- Selected Board ----------
|
@echo --------- Target Information ---------
|
||||||
@echo Selected board model is $(BOARD).
|
@echo AVR Model: $(MCU)
|
||||||
@echo ------------------------------------
|
@echo Board: $(BOARD)
|
||||||
|
@echo Clock: $(F_CPU)Hz CPU, $(F_CLOCK)Hz Master
|
||||||
|
@echo --------------------------------------
|
||||||
|
|
||||||
# Display compiler version information.
|
# Display compiler version information.
|
||||||
gccversion :
|
gccversion :
|
||||||
|
@ -538,26 +540,6 @@ gccversion :
|
||||||
program: $(TARGET).hex $(TARGET).eep
|
program: $(TARGET).hex $(TARGET).eep
|
||||||
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
||||||
|
|
||||||
flip: $(TARGET).hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation erase f
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation loadbuffer $(TARGET).hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu: $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) erase
|
|
||||||
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
flip-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
copy $(TARGET).eep $(TARGET)eep.hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM erase
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM loadbuffer $(TARGET)eep.hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
|
|
||||||
# Generate avr-gdb config/init file which does the following:
|
# Generate avr-gdb config/init file which does the following:
|
||||||
# define the reset signal, load the target file, connect to target, and set
|
# define the reset signal, load the target file, connect to target, and set
|
||||||
|
@ -732,8 +714,8 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
|
||||||
|
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all checkhooks checklibmode checkboard \
|
.PHONY : all showeventhooks showliboptions showtarget \
|
||||||
begin finish end sizebefore sizeafter gccversion \
|
begin finish end sizebefore sizeafter gccversion build \
|
||||||
build elf hex eep lss sym coff extcoff clean \
|
elf hex eep lss sym coff extcoff program clean debug \
|
||||||
clean_list clean_binary program debug gdb-config \
|
clean_list clean_binary gdb-config doxygen dfu flip \
|
||||||
doxygen dfu flip flip-ee dfu-ee
|
flip-ee dfu-ee
|
|
@ -465,7 +465,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# Default target.
|
# Default target.
|
||||||
all: begin gccversion sizebefore build checkhooks checklibmode checkboard sizeafter end
|
all: begin gccversion sizebefore build showeventhooks showliboptions showtarget sizeafter end
|
||||||
|
|
||||||
# Change the build target to build a HEX file or a library.
|
# Change the build target to build a HEX file or a library.
|
||||||
build: elf hex eep lss sym
|
build: elf hex eep lss sym
|
||||||
|
@ -508,27 +508,29 @@ sizeafter:
|
||||||
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
||||||
2>/dev/null; echo; fi
|
2>/dev/null; echo; fi
|
||||||
|
|
||||||
checkhooks: build
|
showeventhooks: build
|
||||||
@echo
|
@echo
|
||||||
@echo ------- Unhooked LUFA Events -------
|
@echo -------- Unhooked LUFA Events --------
|
||||||
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
||||||
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
||||||
echo "(None)"
|
echo "(None)"
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checklibmode:
|
showliboptions:
|
||||||
@echo
|
@echo
|
||||||
@echo ----------- Library Mode -----------
|
@echo ---- Compile Time Library Options ----
|
||||||
@$(shell) ($(CC) $(ALL_CFLAGS) -E -dM - < /dev/null \
|
@for i in $(LUFA_OPTS:-D%=%); do \
|
||||||
| grep 'USB_\(DEVICE\|HOST\)_ONLY' | cut -d' ' -f2 | grep ".*") \
|
echo $$i; \
|
||||||
|| echo "No specific mode (both device and host mode allowable)."
|
done
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checkboard:
|
showtarget:
|
||||||
@echo
|
@echo
|
||||||
@echo ---------- Selected Board ----------
|
@echo --------- Target Information ---------
|
||||||
@echo Selected board model is $(BOARD).
|
@echo AVR Model: $(MCU)
|
||||||
@echo ------------------------------------
|
@echo Board: $(BOARD)
|
||||||
|
@echo Clock: $(F_CPU)Hz CPU, $(F_CLOCK)Hz Master
|
||||||
|
@echo --------------------------------------
|
||||||
|
|
||||||
# Display compiler version information.
|
# Display compiler version information.
|
||||||
gccversion :
|
gccversion :
|
||||||
|
@ -540,26 +542,6 @@ gccversion :
|
||||||
program: $(TARGET).hex $(TARGET).eep
|
program: $(TARGET).hex $(TARGET).eep
|
||||||
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
||||||
|
|
||||||
flip: $(TARGET).hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation erase f
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation loadbuffer $(TARGET).hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu: $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) erase
|
|
||||||
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
flip-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
copy $(TARGET).eep $(TARGET)eep.hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM erase
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM loadbuffer $(TARGET)eep.hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
|
|
||||||
# Generate avr-gdb config/init file which does the following:
|
# Generate avr-gdb config/init file which does the following:
|
||||||
# define the reset signal, load the target file, connect to target, and set
|
# define the reset signal, load the target file, connect to target, and set
|
||||||
|
@ -734,8 +716,8 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
|
||||||
|
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all checkhooks checklibmode checkboard \
|
.PHONY : all showeventhooks showliboptions showtarget \
|
||||||
begin finish end sizebefore sizeafter gccversion \
|
begin finish end sizebefore sizeafter gccversion build \
|
||||||
build elf hex eep lss sym coff extcoff clean \
|
elf hex eep lss sym coff extcoff program clean debug \
|
||||||
clean_list clean_binary program debug gdb-config \
|
clean_list clean_binary gdb-config doxygen dfu flip \
|
||||||
doxygen dfu flip flip-ee dfu-ee
|
flip-ee dfu-ee
|
|
@ -463,7 +463,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# Default target.
|
# Default target.
|
||||||
all: begin gccversion sizebefore build checkhooks checklibmode checkboard sizeafter end
|
all: begin gccversion sizebefore build showeventhooks showliboptions showtarget sizeafter end
|
||||||
|
|
||||||
# Change the build target to build a HEX file or a library.
|
# Change the build target to build a HEX file or a library.
|
||||||
build: elf hex eep lss sym
|
build: elf hex eep lss sym
|
||||||
|
@ -506,27 +506,29 @@ sizeafter:
|
||||||
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
||||||
2>/dev/null; echo; fi
|
2>/dev/null; echo; fi
|
||||||
|
|
||||||
checkhooks: build
|
showeventhooks: build
|
||||||
@echo
|
@echo
|
||||||
@echo ------- Unhooked LUFA Events -------
|
@echo -------- Unhooked LUFA Events --------
|
||||||
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
||||||
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
||||||
echo "(None)"
|
echo "(None)"
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checklibmode:
|
showliboptions:
|
||||||
@echo
|
@echo
|
||||||
@echo ----------- Library Mode -----------
|
@echo ---- Compile Time Library Options ----
|
||||||
@$(shell) ($(CC) $(ALL_CFLAGS) -E -dM - < /dev/null \
|
@for i in $(LUFA_OPTS:-D%=%); do \
|
||||||
| grep 'USB_\(DEVICE\|HOST\)_ONLY' | cut -d' ' -f2 | grep ".*") \
|
echo $$i; \
|
||||||
|| echo "No specific mode (both device and host mode allowable)."
|
done
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checkboard:
|
showtarget:
|
||||||
@echo
|
@echo
|
||||||
@echo ---------- Selected Board ----------
|
@echo --------- Target Information ---------
|
||||||
@echo Selected board model is $(BOARD).
|
@echo AVR Model: $(MCU)
|
||||||
@echo ------------------------------------
|
@echo Board: $(BOARD)
|
||||||
|
@echo Clock: $(F_CPU)Hz CPU, $(F_CLOCK)Hz Master
|
||||||
|
@echo --------------------------------------
|
||||||
|
|
||||||
# Display compiler version information.
|
# Display compiler version information.
|
||||||
gccversion :
|
gccversion :
|
||||||
|
@ -538,26 +540,6 @@ gccversion :
|
||||||
program: $(TARGET).hex $(TARGET).eep
|
program: $(TARGET).hex $(TARGET).eep
|
||||||
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
||||||
|
|
||||||
flip: $(TARGET).hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation erase f
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation loadbuffer $(TARGET).hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu: $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) erase
|
|
||||||
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
flip-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
copy $(TARGET).eep $(TARGET)eep.hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM erase
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM loadbuffer $(TARGET)eep.hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
|
|
||||||
# Generate avr-gdb config/init file which does the following:
|
# Generate avr-gdb config/init file which does the following:
|
||||||
# define the reset signal, load the target file, connect to target, and set
|
# define the reset signal, load the target file, connect to target, and set
|
||||||
|
@ -732,8 +714,8 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
|
||||||
|
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all checkhooks checklibmode checkboard \
|
.PHONY : all showeventhooks showliboptions showtarget \
|
||||||
begin finish end sizebefore sizeafter gccversion \
|
begin finish end sizebefore sizeafter gccversion build \
|
||||||
build elf hex eep lss sym coff extcoff clean \
|
elf hex eep lss sym coff extcoff program clean debug \
|
||||||
clean_list clean_binary program debug gdb-config \
|
clean_list clean_binary gdb-config doxygen dfu flip \
|
||||||
doxygen dfu flip flip-ee dfu-ee
|
flip-ee dfu-ee
|
|
@ -476,7 +476,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# Default target.
|
# Default target.
|
||||||
all: begin gccversion sizebefore build checkhooks checklibmode checkboard sizeafter end
|
all: begin gccversion sizebefore build showeventhooks showliboptions showtarget sizeafter end
|
||||||
|
|
||||||
# Change the build target to build a HEX file or a library.
|
# Change the build target to build a HEX file or a library.
|
||||||
build: elf hex eep lss sym
|
build: elf hex eep lss sym
|
||||||
|
@ -519,27 +519,29 @@ sizeafter:
|
||||||
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
||||||
2>/dev/null; echo; fi
|
2>/dev/null; echo; fi
|
||||||
|
|
||||||
checkhooks: build
|
showeventhooks: build
|
||||||
@echo
|
@echo
|
||||||
@echo ------- Unhooked LUFA Events -------
|
@echo -------- Unhooked LUFA Events --------
|
||||||
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
||||||
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
||||||
echo "(None)"
|
echo "(None)"
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checklibmode:
|
showliboptions:
|
||||||
@echo
|
@echo
|
||||||
@echo ----------- Library Mode -----------
|
@echo ---- Compile Time Library Options ----
|
||||||
@$(shell) ($(CC) $(ALL_CFLAGS) -E -dM - < /dev/null \
|
@for i in $(LUFA_OPTS:-D%=%); do \
|
||||||
| grep 'USB_\(DEVICE\|HOST\)_ONLY' | cut -d' ' -f2 | grep ".*") \
|
echo $$i; \
|
||||||
|| echo "No specific mode (both device and host mode allowable)."
|
done
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checkboard:
|
showtarget:
|
||||||
@echo
|
@echo
|
||||||
@echo ---------- Selected Board ----------
|
@echo --------- Target Information ---------
|
||||||
@echo Selected board model is $(BOARD).
|
@echo AVR Model: $(MCU)
|
||||||
@echo ------------------------------------
|
@echo Board: $(BOARD)
|
||||||
|
@echo Clock: $(F_CPU)Hz CPU, $(F_CLOCK)Hz Master
|
||||||
|
@echo --------------------------------------
|
||||||
|
|
||||||
# Display compiler version information.
|
# Display compiler version information.
|
||||||
gccversion :
|
gccversion :
|
||||||
|
@ -551,26 +553,6 @@ gccversion :
|
||||||
program: $(TARGET).hex $(TARGET).eep
|
program: $(TARGET).hex $(TARGET).eep
|
||||||
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
||||||
|
|
||||||
flip: $(TARGET).hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation erase f
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation loadbuffer $(TARGET).hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu: $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) erase
|
|
||||||
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
flip-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
copy $(TARGET).eep $(TARGET)eep.hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM erase
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM loadbuffer $(TARGET)eep.hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
|
|
||||||
# Generate avr-gdb config/init file which does the following:
|
# Generate avr-gdb config/init file which does the following:
|
||||||
# define the reset signal, load the target file, connect to target, and set
|
# define the reset signal, load the target file, connect to target, and set
|
||||||
|
@ -745,8 +727,8 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
|
||||||
|
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all checkhooks checklibmode checkboard \
|
.PHONY : all showeventhooks showliboptions showtarget \
|
||||||
begin finish end sizebefore sizeafter gccversion \
|
begin finish end sizebefore sizeafter gccversion build \
|
||||||
build elf hex eep lss sym coff extcoff clean \
|
elf hex eep lss sym coff extcoff program clean debug \
|
||||||
clean_list clean_binary program debug gdb-config \
|
clean_list clean_binary gdb-config doxygen dfu flip \
|
||||||
doxygen dfu flip flip-ee dfu-ee
|
flip-ee dfu-ee
|
|
@ -464,7 +464,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# Default target.
|
# Default target.
|
||||||
all: begin gccversion sizebefore build checkhooks checklibmode checkboard sizeafter end
|
all: begin gccversion sizebefore build showeventhooks showliboptions showtarget sizeafter end
|
||||||
|
|
||||||
# Change the build target to build a HEX file or a library.
|
# Change the build target to build a HEX file or a library.
|
||||||
build: elf hex eep lss sym
|
build: elf hex eep lss sym
|
||||||
|
@ -507,27 +507,29 @@ sizeafter:
|
||||||
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
||||||
2>/dev/null; echo; fi
|
2>/dev/null; echo; fi
|
||||||
|
|
||||||
checkhooks: build
|
showeventhooks: build
|
||||||
@echo
|
@echo
|
||||||
@echo ------- Unhooked LUFA Events -------
|
@echo -------- Unhooked LUFA Events --------
|
||||||
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
||||||
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
||||||
echo "(None)"
|
echo "(None)"
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checklibmode:
|
showliboptions:
|
||||||
@echo
|
@echo
|
||||||
@echo ----------- Library Mode -----------
|
@echo ---- Compile Time Library Options ----
|
||||||
@$(shell) ($(CC) $(ALL_CFLAGS) -E -dM - < /dev/null \
|
@for i in $(LUFA_OPTS:-D%=%); do \
|
||||||
| grep 'USB_\(DEVICE\|HOST\)_ONLY' | cut -d' ' -f2 | grep ".*") \
|
echo $$i; \
|
||||||
|| echo "No specific mode (both device and host mode allowable)."
|
done
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checkboard:
|
showtarget:
|
||||||
@echo
|
@echo
|
||||||
@echo ---------- Selected Board ----------
|
@echo --------- Target Information ---------
|
||||||
@echo Selected board model is $(BOARD).
|
@echo AVR Model: $(MCU)
|
||||||
@echo ------------------------------------
|
@echo Board: $(BOARD)
|
||||||
|
@echo Clock: $(F_CPU)Hz CPU, $(F_CLOCK)Hz Master
|
||||||
|
@echo --------------------------------------
|
||||||
|
|
||||||
# Display compiler version information.
|
# Display compiler version information.
|
||||||
gccversion :
|
gccversion :
|
||||||
|
@ -539,26 +541,6 @@ gccversion :
|
||||||
program: $(TARGET).hex $(TARGET).eep
|
program: $(TARGET).hex $(TARGET).eep
|
||||||
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
||||||
|
|
||||||
flip: $(TARGET).hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation erase f
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation loadbuffer $(TARGET).hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu: $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) erase
|
|
||||||
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
flip-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
copy $(TARGET).eep $(TARGET)eep.hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM erase
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM loadbuffer $(TARGET)eep.hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
|
|
||||||
# Generate avr-gdb config/init file which does the following:
|
# Generate avr-gdb config/init file which does the following:
|
||||||
# define the reset signal, load the target file, connect to target, and set
|
# define the reset signal, load the target file, connect to target, and set
|
||||||
|
@ -733,8 +715,8 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
|
||||||
|
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all checkhooks checklibmode checkboard \
|
.PHONY : all showeventhooks showliboptions showtarget \
|
||||||
begin finish end sizebefore sizeafter gccversion \
|
begin finish end sizebefore sizeafter gccversion build \
|
||||||
build elf hex eep lss sym coff extcoff clean \
|
elf hex eep lss sym coff extcoff program clean debug \
|
||||||
clean_list clean_binary program debug gdb-config \
|
clean_list clean_binary gdb-config doxygen dfu flip \
|
||||||
doxygen dfu flip flip-ee dfu-ee
|
flip-ee dfu-ee
|
|
@ -463,7 +463,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# Default target.
|
# Default target.
|
||||||
all: begin gccversion sizebefore build checkhooks checklibmode checkboard sizeafter end
|
all: begin gccversion sizebefore build showeventhooks showliboptions showtarget sizeafter end
|
||||||
|
|
||||||
# Change the build target to build a HEX file or a library.
|
# Change the build target to build a HEX file or a library.
|
||||||
build: elf hex eep lss sym
|
build: elf hex eep lss sym
|
||||||
|
@ -506,27 +506,29 @@ sizeafter:
|
||||||
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
||||||
2>/dev/null; echo; fi
|
2>/dev/null; echo; fi
|
||||||
|
|
||||||
checkhooks: build
|
showeventhooks: build
|
||||||
@echo
|
@echo
|
||||||
@echo ------- Unhooked LUFA Events -------
|
@echo -------- Unhooked LUFA Events --------
|
||||||
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
||||||
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
||||||
echo "(None)"
|
echo "(None)"
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checklibmode:
|
showliboptions:
|
||||||
@echo
|
@echo
|
||||||
@echo ----------- Library Mode -----------
|
@echo ---- Compile Time Library Options ----
|
||||||
@$(shell) ($(CC) $(ALL_CFLAGS) -E -dM - < /dev/null \
|
@for i in $(LUFA_OPTS:-D%=%); do \
|
||||||
| grep 'USB_\(DEVICE\|HOST\)_ONLY' | cut -d' ' -f2 | grep ".*") \
|
echo $$i; \
|
||||||
|| echo "No specific mode (both device and host mode allowable)."
|
done
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checkboard:
|
showtarget:
|
||||||
@echo
|
@echo
|
||||||
@echo ---------- Selected Board ----------
|
@echo --------- Target Information ---------
|
||||||
@echo Selected board model is $(BOARD).
|
@echo AVR Model: $(MCU)
|
||||||
@echo ------------------------------------
|
@echo Board: $(BOARD)
|
||||||
|
@echo Clock: $(F_CPU)Hz CPU, $(F_CLOCK)Hz Master
|
||||||
|
@echo --------------------------------------
|
||||||
|
|
||||||
# Display compiler version information.
|
# Display compiler version information.
|
||||||
gccversion :
|
gccversion :
|
||||||
|
@ -538,26 +540,6 @@ gccversion :
|
||||||
program: $(TARGET).hex $(TARGET).eep
|
program: $(TARGET).hex $(TARGET).eep
|
||||||
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
||||||
|
|
||||||
flip: $(TARGET).hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation erase f
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation loadbuffer $(TARGET).hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu: $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) erase
|
|
||||||
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
flip-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
copy $(TARGET).eep $(TARGET)eep.hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM erase
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM loadbuffer $(TARGET)eep.hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
|
|
||||||
# Generate avr-gdb config/init file which does the following:
|
# Generate avr-gdb config/init file which does the following:
|
||||||
# define the reset signal, load the target file, connect to target, and set
|
# define the reset signal, load the target file, connect to target, and set
|
||||||
|
@ -732,8 +714,8 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
|
||||||
|
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all checkhooks checklibmode checkboard \
|
.PHONY : all showeventhooks showliboptions showtarget \
|
||||||
begin finish end sizebefore sizeafter gccversion \
|
begin finish end sizebefore sizeafter gccversion build \
|
||||||
build elf hex eep lss sym coff extcoff clean \
|
elf hex eep lss sym coff extcoff program clean debug \
|
||||||
clean_list clean_binary program debug gdb-config \
|
clean_list clean_binary gdb-config doxygen dfu flip \
|
||||||
doxygen dfu flip flip-ee dfu-ee
|
flip-ee dfu-ee
|
|
@ -463,7 +463,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# Default target.
|
# Default target.
|
||||||
all: begin gccversion sizebefore build checkhooks checklibmode checkboard sizeafter end
|
all: begin gccversion sizebefore build showeventhooks showliboptions showtarget sizeafter end
|
||||||
|
|
||||||
# Change the build target to build a HEX file or a library.
|
# Change the build target to build a HEX file or a library.
|
||||||
build: elf hex eep lss sym
|
build: elf hex eep lss sym
|
||||||
|
@ -506,27 +506,29 @@ sizeafter:
|
||||||
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
||||||
2>/dev/null; echo; fi
|
2>/dev/null; echo; fi
|
||||||
|
|
||||||
checkhooks: build
|
showeventhooks: build
|
||||||
@echo
|
@echo
|
||||||
@echo ------- Unhooked LUFA Events -------
|
@echo -------- Unhooked LUFA Events --------
|
||||||
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
||||||
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
||||||
echo "(None)"
|
echo "(None)"
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checklibmode:
|
showliboptions:
|
||||||
@echo
|
@echo
|
||||||
@echo ----------- Library Mode -----------
|
@echo ---- Compile Time Library Options ----
|
||||||
@$(shell) ($(CC) $(ALL_CFLAGS) -E -dM - < /dev/null \
|
@for i in $(LUFA_OPTS:-D%=%); do \
|
||||||
| grep 'USB_\(DEVICE\|HOST\)_ONLY' | cut -d' ' -f2 | grep ".*") \
|
echo $$i; \
|
||||||
|| echo "No specific mode (both device and host mode allowable)."
|
done
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checkboard:
|
showtarget:
|
||||||
@echo
|
@echo
|
||||||
@echo ---------- Selected Board ----------
|
@echo --------- Target Information ---------
|
||||||
@echo Selected board model is $(BOARD).
|
@echo AVR Model: $(MCU)
|
||||||
@echo ------------------------------------
|
@echo Board: $(BOARD)
|
||||||
|
@echo Clock: $(F_CPU)Hz CPU, $(F_CLOCK)Hz Master
|
||||||
|
@echo --------------------------------------
|
||||||
|
|
||||||
# Display compiler version information.
|
# Display compiler version information.
|
||||||
gccversion :
|
gccversion :
|
||||||
|
@ -538,26 +540,6 @@ gccversion :
|
||||||
program: $(TARGET).hex $(TARGET).eep
|
program: $(TARGET).hex $(TARGET).eep
|
||||||
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
||||||
|
|
||||||
flip: $(TARGET).hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation erase f
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation loadbuffer $(TARGET).hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu: $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) erase
|
|
||||||
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
flip-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
copy $(TARGET).eep $(TARGET)eep.hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM erase
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM loadbuffer $(TARGET)eep.hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
|
|
||||||
# Generate avr-gdb config/init file which does the following:
|
# Generate avr-gdb config/init file which does the following:
|
||||||
# define the reset signal, load the target file, connect to target, and set
|
# define the reset signal, load the target file, connect to target, and set
|
||||||
|
@ -732,8 +714,8 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
|
||||||
|
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all checkhooks checklibmode checkboard \
|
.PHONY : all showeventhooks showliboptions showtarget \
|
||||||
begin finish end sizebefore sizeafter gccversion \
|
begin finish end sizebefore sizeafter gccversion build \
|
||||||
build elf hex eep lss sym coff extcoff clean \
|
elf hex eep lss sym coff extcoff program clean debug \
|
||||||
clean_list clean_binary program debug gdb-config \
|
clean_list clean_binary gdb-config doxygen dfu flip \
|
||||||
doxygen dfu flip flip-ee dfu-ee
|
flip-ee dfu-ee
|
|
@ -466,7 +466,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# Default target.
|
# Default target.
|
||||||
all: begin gccversion sizebefore build checkhooks checklibmode checkboard sizeafter end
|
all: begin gccversion sizebefore build showeventhooks showliboptions showtarget sizeafter end
|
||||||
|
|
||||||
# Change the build target to build a HEX file or a library.
|
# Change the build target to build a HEX file or a library.
|
||||||
build: elf hex eep lss sym
|
build: elf hex eep lss sym
|
||||||
|
@ -509,27 +509,29 @@ sizeafter:
|
||||||
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
||||||
2>/dev/null; echo; fi
|
2>/dev/null; echo; fi
|
||||||
|
|
||||||
checkhooks: build
|
showeventhooks: build
|
||||||
@echo
|
@echo
|
||||||
@echo ------- Unhooked LUFA Events -------
|
@echo -------- Unhooked LUFA Events --------
|
||||||
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
||||||
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
||||||
echo "(None)"
|
echo "(None)"
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checklibmode:
|
showliboptions:
|
||||||
@echo
|
@echo
|
||||||
@echo ----------- Library Mode -----------
|
@echo ---- Compile Time Library Options ----
|
||||||
@$(shell) ($(CC) $(ALL_CFLAGS) -E -dM - < /dev/null \
|
@for i in $(LUFA_OPTS:-D%=%); do \
|
||||||
| grep 'USB_\(DEVICE\|HOST\)_ONLY' | cut -d' ' -f2 | grep ".*") \
|
echo $$i; \
|
||||||
|| echo "No specific mode (both device and host mode allowable)."
|
done
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checkboard:
|
showtarget:
|
||||||
@echo
|
@echo
|
||||||
@echo ---------- Selected Board ----------
|
@echo --------- Target Information ---------
|
||||||
@echo Selected board model is $(BOARD).
|
@echo AVR Model: $(MCU)
|
||||||
@echo ------------------------------------
|
@echo Board: $(BOARD)
|
||||||
|
@echo Clock: $(F_CPU)Hz CPU, $(F_CLOCK)Hz Master
|
||||||
|
@echo --------------------------------------
|
||||||
|
|
||||||
# Display compiler version information.
|
# Display compiler version information.
|
||||||
gccversion :
|
gccversion :
|
||||||
|
@ -541,26 +543,6 @@ gccversion :
|
||||||
program: $(TARGET).hex $(TARGET).eep
|
program: $(TARGET).hex $(TARGET).eep
|
||||||
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
||||||
|
|
||||||
flip: $(TARGET).hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation erase f
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation loadbuffer $(TARGET).hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu: $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) erase
|
|
||||||
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
flip-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
copy $(TARGET).eep $(TARGET)eep.hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM erase
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM loadbuffer $(TARGET)eep.hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
|
|
||||||
# Generate avr-gdb config/init file which does the following:
|
# Generate avr-gdb config/init file which does the following:
|
||||||
# define the reset signal, load the target file, connect to target, and set
|
# define the reset signal, load the target file, connect to target, and set
|
||||||
|
@ -735,8 +717,8 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
|
||||||
|
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all checkhooks checklibmode checkboard \
|
.PHONY : all showeventhooks showliboptions showtarget \
|
||||||
begin finish end sizebefore sizeafter gccversion \
|
begin finish end sizebefore sizeafter gccversion build \
|
||||||
build elf hex eep lss sym coff extcoff clean \
|
elf hex eep lss sym coff extcoff program clean debug \
|
||||||
clean_list clean_binary program debug gdb-config \
|
clean_list clean_binary gdb-config doxygen dfu flip \
|
||||||
doxygen dfu flip flip-ee dfu-ee
|
flip-ee dfu-ee
|
|
@ -462,7 +462,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# Default target.
|
# Default target.
|
||||||
all: begin gccversion sizebefore build checkhooks checklibmode checkboard sizeafter end
|
all: begin gccversion sizebefore build showeventhooks showliboptions showtarget sizeafter end
|
||||||
|
|
||||||
# Change the build target to build a HEX file or a library.
|
# Change the build target to build a HEX file or a library.
|
||||||
build: elf hex eep lss sym
|
build: elf hex eep lss sym
|
||||||
|
@ -505,27 +505,29 @@ sizeafter:
|
||||||
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
||||||
2>/dev/null; echo; fi
|
2>/dev/null; echo; fi
|
||||||
|
|
||||||
checkhooks: build
|
showeventhooks: build
|
||||||
@echo
|
@echo
|
||||||
@echo ------- Unhooked LUFA Events -------
|
@echo -------- Unhooked LUFA Events --------
|
||||||
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
||||||
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
||||||
echo "(None)"
|
echo "(None)"
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checklibmode:
|
showliboptions:
|
||||||
@echo
|
@echo
|
||||||
@echo ----------- Library Mode -----------
|
@echo ---- Compile Time Library Options ----
|
||||||
@$(shell) ($(CC) $(ALL_CFLAGS) -E -dM - < /dev/null \
|
@for i in $(LUFA_OPTS:-D%=%); do \
|
||||||
| grep 'USB_\(DEVICE\|HOST\)_ONLY' | cut -d' ' -f2 | grep ".*") \
|
echo $$i; \
|
||||||
|| echo "No specific mode (both device and host mode allowable)."
|
done
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checkboard:
|
showtarget:
|
||||||
@echo
|
@echo
|
||||||
@echo ---------- Selected Board ----------
|
@echo --------- Target Information ---------
|
||||||
@echo Selected board model is $(BOARD).
|
@echo AVR Model: $(MCU)
|
||||||
@echo ------------------------------------
|
@echo Board: $(BOARD)
|
||||||
|
@echo Clock: $(F_CPU)Hz CPU, $(F_CLOCK)Hz Master
|
||||||
|
@echo --------------------------------------
|
||||||
|
|
||||||
# Display compiler version information.
|
# Display compiler version information.
|
||||||
gccversion :
|
gccversion :
|
||||||
|
@ -537,26 +539,6 @@ gccversion :
|
||||||
program: $(TARGET).hex $(TARGET).eep
|
program: $(TARGET).hex $(TARGET).eep
|
||||||
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
||||||
|
|
||||||
flip: $(TARGET).hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation erase f
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation loadbuffer $(TARGET).hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu: $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) erase
|
|
||||||
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
flip-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
copy $(TARGET).eep $(TARGET)eep.hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM erase
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM loadbuffer $(TARGET)eep.hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
|
|
||||||
# Generate avr-gdb config/init file which does the following:
|
# Generate avr-gdb config/init file which does the following:
|
||||||
# define the reset signal, load the target file, connect to target, and set
|
# define the reset signal, load the target file, connect to target, and set
|
||||||
|
@ -731,8 +713,8 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
|
||||||
|
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all checkhooks checklibmode checkboard \
|
.PHONY : all showeventhooks showliboptions showtarget \
|
||||||
begin finish end sizebefore sizeafter gccversion \
|
begin finish end sizebefore sizeafter gccversion build \
|
||||||
build elf hex eep lss sym coff extcoff clean \
|
elf hex eep lss sym coff extcoff program clean debug \
|
||||||
clean_list clean_binary program debug gdb-config \
|
clean_list clean_binary gdb-config doxygen dfu flip \
|
||||||
doxygen dfu flip flip-ee dfu-ee
|
flip-ee dfu-ee
|
|
@ -463,7 +463,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# Default target.
|
# Default target.
|
||||||
all: begin gccversion sizebefore build checkhooks checklibmode checkboard sizeafter end
|
all: begin gccversion sizebefore build showeventhooks showliboptions showtarget sizeafter end
|
||||||
|
|
||||||
# Change the build target to build a HEX file or a library.
|
# Change the build target to build a HEX file or a library.
|
||||||
build: elf hex eep lss sym
|
build: elf hex eep lss sym
|
||||||
|
@ -506,27 +506,29 @@ sizeafter:
|
||||||
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
||||||
2>/dev/null; echo; fi
|
2>/dev/null; echo; fi
|
||||||
|
|
||||||
checkhooks: build
|
showeventhooks: build
|
||||||
@echo
|
@echo
|
||||||
@echo ------- Unhooked LUFA Events -------
|
@echo -------- Unhooked LUFA Events --------
|
||||||
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
||||||
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
||||||
echo "(None)"
|
echo "(None)"
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checklibmode:
|
showliboptions:
|
||||||
@echo
|
@echo
|
||||||
@echo ----------- Library Mode -----------
|
@echo ---- Compile Time Library Options ----
|
||||||
@$(shell) ($(CC) $(ALL_CFLAGS) -E -dM - < /dev/null \
|
@for i in $(LUFA_OPTS:-D%=%); do \
|
||||||
| grep 'USB_\(DEVICE\|HOST\)_ONLY' | cut -d' ' -f2 | grep ".*") \
|
echo $$i; \
|
||||||
|| echo "No specific mode (both device and host mode allowable)."
|
done
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checkboard:
|
showtarget:
|
||||||
@echo
|
@echo
|
||||||
@echo ---------- Selected Board ----------
|
@echo --------- Target Information ---------
|
||||||
@echo Selected board model is $(BOARD).
|
@echo AVR Model: $(MCU)
|
||||||
@echo ------------------------------------
|
@echo Board: $(BOARD)
|
||||||
|
@echo Clock: $(F_CPU)Hz CPU, $(F_CLOCK)Hz Master
|
||||||
|
@echo --------------------------------------
|
||||||
|
|
||||||
# Display compiler version information.
|
# Display compiler version information.
|
||||||
gccversion :
|
gccversion :
|
||||||
|
@ -538,26 +540,6 @@ gccversion :
|
||||||
program: $(TARGET).hex $(TARGET).eep
|
program: $(TARGET).hex $(TARGET).eep
|
||||||
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
||||||
|
|
||||||
flip: $(TARGET).hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation erase f
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation loadbuffer $(TARGET).hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu: $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) erase
|
|
||||||
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
flip-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
copy $(TARGET).eep $(TARGET)eep.hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM erase
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM loadbuffer $(TARGET)eep.hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
|
|
||||||
# Generate avr-gdb config/init file which does the following:
|
# Generate avr-gdb config/init file which does the following:
|
||||||
# define the reset signal, load the target file, connect to target, and set
|
# define the reset signal, load the target file, connect to target, and set
|
||||||
|
@ -732,8 +714,8 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
|
||||||
|
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all checkhooks checklibmode checkboard \
|
.PHONY : all showeventhooks showliboptions showtarget \
|
||||||
begin finish end sizebefore sizeafter gccversion \
|
begin finish end sizebefore sizeafter gccversion build \
|
||||||
build elf hex eep lss sym coff extcoff clean \
|
elf hex eep lss sym coff extcoff program clean debug \
|
||||||
clean_list clean_binary program debug gdb-config \
|
clean_list clean_binary gdb-config doxygen dfu flip \
|
||||||
doxygen dfu flip flip-ee dfu-ee
|
flip-ee dfu-ee
|
|
@ -462,7 +462,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# Default target.
|
# Default target.
|
||||||
all: begin gccversion sizebefore build checkhooks checklibmode checkboard sizeafter end
|
all: begin gccversion sizebefore build showeventhooks showliboptions showtarget sizeafter end
|
||||||
|
|
||||||
# Change the build target to build a HEX file or a library.
|
# Change the build target to build a HEX file or a library.
|
||||||
build: elf hex eep lss sym
|
build: elf hex eep lss sym
|
||||||
|
@ -505,27 +505,29 @@ sizeafter:
|
||||||
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
||||||
2>/dev/null; echo; fi
|
2>/dev/null; echo; fi
|
||||||
|
|
||||||
checkhooks: build
|
showeventhooks: build
|
||||||
@echo
|
@echo
|
||||||
@echo ------- Unhooked LUFA Events -------
|
@echo -------- Unhooked LUFA Events --------
|
||||||
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
||||||
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
||||||
echo "(None)"
|
echo "(None)"
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checklibmode:
|
showliboptions:
|
||||||
@echo
|
@echo
|
||||||
@echo ----------- Library Mode -----------
|
@echo ---- Compile Time Library Options ----
|
||||||
@$(shell) ($(CC) $(ALL_CFLAGS) -E -dM - < /dev/null \
|
@for i in $(LUFA_OPTS:-D%=%); do \
|
||||||
| grep 'USB_\(DEVICE\|HOST\)_ONLY' | cut -d' ' -f2 | grep ".*") \
|
echo $$i; \
|
||||||
|| echo "No specific mode (both device and host mode allowable)."
|
done
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checkboard:
|
showtarget:
|
||||||
@echo
|
@echo
|
||||||
@echo ---------- Selected Board ----------
|
@echo --------- Target Information ---------
|
||||||
@echo Selected board model is $(BOARD).
|
@echo AVR Model: $(MCU)
|
||||||
@echo ------------------------------------
|
@echo Board: $(BOARD)
|
||||||
|
@echo Clock: $(F_CPU)Hz CPU, $(F_CLOCK)Hz Master
|
||||||
|
@echo --------------------------------------
|
||||||
|
|
||||||
# Display compiler version information.
|
# Display compiler version information.
|
||||||
gccversion :
|
gccversion :
|
||||||
|
@ -537,26 +539,6 @@ gccversion :
|
||||||
program: $(TARGET).hex $(TARGET).eep
|
program: $(TARGET).hex $(TARGET).eep
|
||||||
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
||||||
|
|
||||||
flip: $(TARGET).hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation erase f
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation loadbuffer $(TARGET).hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu: $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) erase
|
|
||||||
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
flip-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
copy $(TARGET).eep $(TARGET)eep.hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM erase
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM loadbuffer $(TARGET)eep.hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
|
|
||||||
# Generate avr-gdb config/init file which does the following:
|
# Generate avr-gdb config/init file which does the following:
|
||||||
# define the reset signal, load the target file, connect to target, and set
|
# define the reset signal, load the target file, connect to target, and set
|
||||||
|
@ -731,8 +713,8 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
|
||||||
|
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all checkhooks checklibmode checkboard \
|
.PHONY : all showeventhooks showliboptions showtarget \
|
||||||
begin finish end sizebefore sizeafter gccversion \
|
begin finish end sizebefore sizeafter gccversion build \
|
||||||
build elf hex eep lss sym coff extcoff clean \
|
elf hex eep lss sym coff extcoff program clean debug \
|
||||||
clean_list clean_binary program debug gdb-config \
|
clean_list clean_binary gdb-config doxygen dfu flip \
|
||||||
doxygen dfu flip flip-ee dfu-ee
|
flip-ee dfu-ee
|
|
@ -464,7 +464,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# Default target.
|
# Default target.
|
||||||
all: begin gccversion sizebefore build checkhooks checklibmode checkboard sizeafter end
|
all: begin gccversion sizebefore build showeventhooks showliboptions showtarget sizeafter end
|
||||||
|
|
||||||
# Change the build target to build a HEX file or a library.
|
# Change the build target to build a HEX file or a library.
|
||||||
build: elf hex eep lss sym
|
build: elf hex eep lss sym
|
||||||
|
@ -507,27 +507,29 @@ sizeafter:
|
||||||
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
||||||
2>/dev/null; echo; fi
|
2>/dev/null; echo; fi
|
||||||
|
|
||||||
checkhooks: build
|
showeventhooks: build
|
||||||
@echo
|
@echo
|
||||||
@echo ------- Unhooked LUFA Events -------
|
@echo -------- Unhooked LUFA Events --------
|
||||||
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
||||||
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
||||||
echo "(None)"
|
echo "(None)"
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checklibmode:
|
showliboptions:
|
||||||
@echo
|
@echo
|
||||||
@echo ----------- Library Mode -----------
|
@echo ---- Compile Time Library Options ----
|
||||||
@$(shell) ($(CC) $(ALL_CFLAGS) -E -dM - < /dev/null \
|
@for i in $(LUFA_OPTS:-D%=%); do \
|
||||||
| grep 'USB_\(DEVICE\|HOST\)_ONLY' | cut -d' ' -f2 | grep ".*") \
|
echo $$i; \
|
||||||
|| echo "No specific mode (both device and host mode allowable)."
|
done
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checkboard:
|
showtarget:
|
||||||
@echo
|
@echo
|
||||||
@echo ---------- Selected Board ----------
|
@echo --------- Target Information ---------
|
||||||
@echo Selected board model is $(BOARD).
|
@echo AVR Model: $(MCU)
|
||||||
@echo ------------------------------------
|
@echo Board: $(BOARD)
|
||||||
|
@echo Clock: $(F_CPU)Hz CPU, $(F_CLOCK)Hz Master
|
||||||
|
@echo --------------------------------------
|
||||||
|
|
||||||
# Display compiler version information.
|
# Display compiler version information.
|
||||||
gccversion :
|
gccversion :
|
||||||
|
@ -539,26 +541,6 @@ gccversion :
|
||||||
program: $(TARGET).hex $(TARGET).eep
|
program: $(TARGET).hex $(TARGET).eep
|
||||||
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
||||||
|
|
||||||
flip: $(TARGET).hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation erase f
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation loadbuffer $(TARGET).hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu: $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) erase
|
|
||||||
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
flip-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
copy $(TARGET).eep $(TARGET)eep.hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM erase
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM loadbuffer $(TARGET)eep.hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
|
|
||||||
# Generate avr-gdb config/init file which does the following:
|
# Generate avr-gdb config/init file which does the following:
|
||||||
# define the reset signal, load the target file, connect to target, and set
|
# define the reset signal, load the target file, connect to target, and set
|
||||||
|
@ -733,8 +715,8 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
|
||||||
|
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all checkhooks checklibmode checkboard \
|
.PHONY : all showeventhooks showliboptions showtarget \
|
||||||
begin finish end sizebefore sizeafter gccversion \
|
begin finish end sizebefore sizeafter gccversion build \
|
||||||
build elf hex eep lss sym coff extcoff clean \
|
elf hex eep lss sym coff extcoff program clean debug \
|
||||||
clean_list clean_binary program debug gdb-config \
|
clean_list clean_binary gdb-config doxygen dfu flip \
|
||||||
doxygen dfu flip flip-ee dfu-ee
|
flip-ee dfu-ee
|
|
@ -464,7 +464,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# Default target.
|
# Default target.
|
||||||
all: begin gccversion sizebefore build checkhooks checklibmode checkboard sizeafter end
|
all: begin gccversion sizebefore build showeventhooks showliboptions showtarget sizeafter end
|
||||||
|
|
||||||
# Change the build target to build a HEX file or a library.
|
# Change the build target to build a HEX file or a library.
|
||||||
build: elf hex eep lss sym
|
build: elf hex eep lss sym
|
||||||
|
@ -507,27 +507,29 @@ sizeafter:
|
||||||
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
||||||
2>/dev/null; echo; fi
|
2>/dev/null; echo; fi
|
||||||
|
|
||||||
checkhooks: build
|
showeventhooks: build
|
||||||
@echo
|
@echo
|
||||||
@echo ------- Unhooked LUFA Events -------
|
@echo -------- Unhooked LUFA Events --------
|
||||||
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
||||||
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
||||||
echo "(None)"
|
echo "(None)"
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checklibmode:
|
showliboptions:
|
||||||
@echo
|
@echo
|
||||||
@echo ----------- Library Mode -----------
|
@echo ---- Compile Time Library Options ----
|
||||||
@$(shell) ($(CC) $(ALL_CFLAGS) -E -dM - < /dev/null \
|
@for i in $(LUFA_OPTS:-D%=%); do \
|
||||||
| grep 'USB_\(DEVICE\|HOST\)_ONLY' | cut -d' ' -f2 | grep ".*") \
|
echo $$i; \
|
||||||
|| echo "No specific mode (both device and host mode allowable)."
|
done
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checkboard:
|
showtarget:
|
||||||
@echo
|
@echo
|
||||||
@echo ---------- Selected Board ----------
|
@echo --------- Target Information ---------
|
||||||
@echo Selected board model is $(BOARD).
|
@echo AVR Model: $(MCU)
|
||||||
@echo ------------------------------------
|
@echo Board: $(BOARD)
|
||||||
|
@echo Clock: $(F_CPU)Hz CPU, $(F_CLOCK)Hz Master
|
||||||
|
@echo --------------------------------------
|
||||||
|
|
||||||
# Display compiler version information.
|
# Display compiler version information.
|
||||||
gccversion :
|
gccversion :
|
||||||
|
@ -539,26 +541,6 @@ gccversion :
|
||||||
program: $(TARGET).hex $(TARGET).eep
|
program: $(TARGET).hex $(TARGET).eep
|
||||||
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
||||||
|
|
||||||
flip: $(TARGET).hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation erase f
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation loadbuffer $(TARGET).hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu: $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) erase
|
|
||||||
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
flip-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
copy $(TARGET).eep $(TARGET)eep.hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM erase
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM loadbuffer $(TARGET)eep.hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
|
|
||||||
# Generate avr-gdb config/init file which does the following:
|
# Generate avr-gdb config/init file which does the following:
|
||||||
# define the reset signal, load the target file, connect to target, and set
|
# define the reset signal, load the target file, connect to target, and set
|
||||||
|
@ -733,8 +715,8 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
|
||||||
|
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all checkhooks checklibmode checkboard \
|
.PHONY : all showeventhooks showliboptions showtarget \
|
||||||
begin finish end sizebefore sizeafter gccversion \
|
begin finish end sizebefore sizeafter gccversion build \
|
||||||
build elf hex eep lss sym coff extcoff clean \
|
elf hex eep lss sym coff extcoff program clean debug \
|
||||||
clean_list clean_binary program debug gdb-config \
|
clean_list clean_binary gdb-config doxygen dfu flip \
|
||||||
doxygen dfu flip flip-ee dfu-ee
|
flip-ee dfu-ee
|
|
@ -462,7 +462,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# Default target.
|
# Default target.
|
||||||
all: begin gccversion sizebefore build checkhooks checklibmode checkboard sizeafter end
|
all: begin gccversion sizebefore build showeventhooks showliboptions showtarget sizeafter end
|
||||||
|
|
||||||
# Change the build target to build a HEX file or a library.
|
# Change the build target to build a HEX file or a library.
|
||||||
build: elf hex eep lss sym
|
build: elf hex eep lss sym
|
||||||
|
@ -505,27 +505,29 @@ sizeafter:
|
||||||
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
||||||
2>/dev/null; echo; fi
|
2>/dev/null; echo; fi
|
||||||
|
|
||||||
checkhooks: build
|
showeventhooks: build
|
||||||
@echo
|
@echo
|
||||||
@echo ------- Unhooked LUFA Events -------
|
@echo -------- Unhooked LUFA Events --------
|
||||||
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
||||||
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
||||||
echo "(None)"
|
echo "(None)"
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checklibmode:
|
showliboptions:
|
||||||
@echo
|
@echo
|
||||||
@echo ----------- Library Mode -----------
|
@echo ---- Compile Time Library Options ----
|
||||||
@$(shell) ($(CC) $(ALL_CFLAGS) -E -dM - < /dev/null \
|
@for i in $(LUFA_OPTS:-D%=%); do \
|
||||||
| grep 'USB_\(DEVICE\|HOST\)_ONLY' | cut -d' ' -f2 | grep ".*") \
|
echo $$i; \
|
||||||
|| echo "No specific mode (both device and host mode allowable)."
|
done
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checkboard:
|
showtarget:
|
||||||
@echo
|
@echo
|
||||||
@echo ---------- Selected Board ----------
|
@echo --------- Target Information ---------
|
||||||
@echo Selected board model is $(BOARD).
|
@echo AVR Model: $(MCU)
|
||||||
@echo ------------------------------------
|
@echo Board: $(BOARD)
|
||||||
|
@echo Clock: $(F_CPU)Hz CPU, $(F_CLOCK)Hz Master
|
||||||
|
@echo --------------------------------------
|
||||||
|
|
||||||
# Display compiler version information.
|
# Display compiler version information.
|
||||||
gccversion :
|
gccversion :
|
||||||
|
@ -537,26 +539,6 @@ gccversion :
|
||||||
program: $(TARGET).hex $(TARGET).eep
|
program: $(TARGET).hex $(TARGET).eep
|
||||||
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
||||||
|
|
||||||
flip: $(TARGET).hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation erase f
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation loadbuffer $(TARGET).hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu: $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) erase
|
|
||||||
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
flip-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
copy $(TARGET).eep $(TARGET)eep.hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM erase
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM loadbuffer $(TARGET)eep.hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
|
|
||||||
# Generate avr-gdb config/init file which does the following:
|
# Generate avr-gdb config/init file which does the following:
|
||||||
# define the reset signal, load the target file, connect to target, and set
|
# define the reset signal, load the target file, connect to target, and set
|
||||||
|
@ -731,8 +713,8 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
|
||||||
|
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all checkhooks checklibmode checkboard \
|
.PHONY : all showeventhooks showliboptions showtarget \
|
||||||
begin finish end sizebefore sizeafter gccversion \
|
begin finish end sizebefore sizeafter gccversion build \
|
||||||
build elf hex eep lss sym coff extcoff clean \
|
elf hex eep lss sym coff extcoff program clean debug \
|
||||||
clean_list clean_binary program debug gdb-config \
|
clean_list clean_binary gdb-config doxygen dfu flip \
|
||||||
doxygen dfu flip flip-ee dfu-ee
|
flip-ee dfu-ee
|
|
@ -464,7 +464,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# Default target.
|
# Default target.
|
||||||
all: begin gccversion sizebefore build checkhooks checklibmode checkboard sizeafter end
|
all: begin gccversion sizebefore build showeventhooks showliboptions showtarget sizeafter end
|
||||||
|
|
||||||
# Change the build target to build a HEX file or a library.
|
# Change the build target to build a HEX file or a library.
|
||||||
build: elf hex eep lss sym
|
build: elf hex eep lss sym
|
||||||
|
@ -507,27 +507,29 @@ sizeafter:
|
||||||
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
||||||
2>/dev/null; echo; fi
|
2>/dev/null; echo; fi
|
||||||
|
|
||||||
checkhooks: build
|
showeventhooks: build
|
||||||
@echo
|
@echo
|
||||||
@echo ------- Unhooked LUFA Events -------
|
@echo -------- Unhooked LUFA Events --------
|
||||||
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
||||||
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
||||||
echo "(None)"
|
echo "(None)"
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checklibmode:
|
showliboptions:
|
||||||
@echo
|
@echo
|
||||||
@echo ----------- Library Mode -----------
|
@echo ---- Compile Time Library Options ----
|
||||||
@$(shell) ($(CC) $(ALL_CFLAGS) -E -dM - < /dev/null \
|
@for i in $(LUFA_OPTS:-D%=%); do \
|
||||||
| grep 'USB_\(DEVICE\|HOST\)_ONLY' | cut -d' ' -f2 | grep ".*") \
|
echo $$i; \
|
||||||
|| echo "No specific mode (both device and host mode allowable)."
|
done
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checkboard:
|
showtarget:
|
||||||
@echo
|
@echo
|
||||||
@echo ---------- Selected Board ----------
|
@echo --------- Target Information ---------
|
||||||
@echo Selected board model is $(BOARD).
|
@echo AVR Model: $(MCU)
|
||||||
@echo ------------------------------------
|
@echo Board: $(BOARD)
|
||||||
|
@echo Clock: $(F_CPU)Hz CPU, $(F_CLOCK)Hz Master
|
||||||
|
@echo --------------------------------------
|
||||||
|
|
||||||
# Display compiler version information.
|
# Display compiler version information.
|
||||||
gccversion :
|
gccversion :
|
||||||
|
@ -539,26 +541,6 @@ gccversion :
|
||||||
program: $(TARGET).hex $(TARGET).eep
|
program: $(TARGET).hex $(TARGET).eep
|
||||||
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
||||||
|
|
||||||
flip: $(TARGET).hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation erase f
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation loadbuffer $(TARGET).hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu: $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) erase
|
|
||||||
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
flip-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
copy $(TARGET).eep $(TARGET)eep.hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM erase
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM loadbuffer $(TARGET)eep.hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
|
|
||||||
# Generate avr-gdb config/init file which does the following:
|
# Generate avr-gdb config/init file which does the following:
|
||||||
# define the reset signal, load the target file, connect to target, and set
|
# define the reset signal, load the target file, connect to target, and set
|
||||||
|
@ -733,8 +715,8 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
|
||||||
|
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all checkhooks checklibmode checkboard \
|
.PHONY : all showeventhooks showliboptions showtarget \
|
||||||
begin finish end sizebefore sizeafter gccversion \
|
begin finish end sizebefore sizeafter gccversion build \
|
||||||
build elf hex eep lss sym coff extcoff clean \
|
elf hex eep lss sym coff extcoff program clean debug \
|
||||||
clean_list clean_binary program debug gdb-config \
|
clean_list clean_binary gdb-config doxygen dfu flip \
|
||||||
doxygen dfu flip flip-ee dfu-ee
|
flip-ee dfu-ee
|
|
@ -463,7 +463,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# Default target.
|
# Default target.
|
||||||
all: begin gccversion sizebefore build checkhooks checklibmode checkboard sizeafter end
|
all: begin gccversion sizebefore build showeventhooks showliboptions showtarget sizeafter end
|
||||||
|
|
||||||
# Change the build target to build a HEX file or a library.
|
# Change the build target to build a HEX file or a library.
|
||||||
build: elf hex eep lss sym
|
build: elf hex eep lss sym
|
||||||
|
@ -506,27 +506,29 @@ sizeafter:
|
||||||
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
||||||
2>/dev/null; echo; fi
|
2>/dev/null; echo; fi
|
||||||
|
|
||||||
checkhooks: build
|
showeventhooks: build
|
||||||
@echo
|
@echo
|
||||||
@echo ------- Unhooked LUFA Events -------
|
@echo -------- Unhooked LUFA Events --------
|
||||||
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
||||||
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
||||||
echo "(None)"
|
echo "(None)"
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checklibmode:
|
showliboptions:
|
||||||
@echo
|
@echo
|
||||||
@echo ----------- Library Mode -----------
|
@echo ---- Compile Time Library Options ----
|
||||||
@$(shell) ($(CC) $(ALL_CFLAGS) -E -dM - < /dev/null \
|
@for i in $(LUFA_OPTS:-D%=%); do \
|
||||||
| grep 'USB_\(DEVICE\|HOST\)_ONLY' | cut -d' ' -f2 | grep ".*") \
|
echo $$i; \
|
||||||
|| echo "No specific mode (both device and host mode allowable)."
|
done
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checkboard:
|
showtarget:
|
||||||
@echo
|
@echo
|
||||||
@echo ---------- Selected Board ----------
|
@echo --------- Target Information ---------
|
||||||
@echo Selected board model is $(BOARD).
|
@echo AVR Model: $(MCU)
|
||||||
@echo ------------------------------------
|
@echo Board: $(BOARD)
|
||||||
|
@echo Clock: $(F_CPU)Hz CPU, $(F_CLOCK)Hz Master
|
||||||
|
@echo --------------------------------------
|
||||||
|
|
||||||
# Display compiler version information.
|
# Display compiler version information.
|
||||||
gccversion :
|
gccversion :
|
||||||
|
@ -538,26 +540,6 @@ gccversion :
|
||||||
program: $(TARGET).hex $(TARGET).eep
|
program: $(TARGET).hex $(TARGET).eep
|
||||||
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
||||||
|
|
||||||
flip: $(TARGET).hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation erase f
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation loadbuffer $(TARGET).hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu: $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) erase
|
|
||||||
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
flip-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
copy $(TARGET).eep $(TARGET)eep.hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM erase
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM loadbuffer $(TARGET)eep.hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
|
|
||||||
# Generate avr-gdb config/init file which does the following:
|
# Generate avr-gdb config/init file which does the following:
|
||||||
# define the reset signal, load the target file, connect to target, and set
|
# define the reset signal, load the target file, connect to target, and set
|
||||||
|
@ -732,8 +714,8 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
|
||||||
|
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all checkhooks checklibmode checkboard \
|
.PHONY : all showeventhooks showliboptions showtarget \
|
||||||
begin finish end sizebefore sizeafter gccversion \
|
begin finish end sizebefore sizeafter gccversion build \
|
||||||
build elf hex eep lss sym coff extcoff clean \
|
elf hex eep lss sym coff extcoff program clean debug \
|
||||||
clean_list clean_binary program debug gdb-config \
|
clean_list clean_binary gdb-config doxygen dfu flip \
|
||||||
doxygen dfu flip flip-ee dfu-ee
|
flip-ee dfu-ee
|
|
@ -462,7 +462,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# Default target.
|
# Default target.
|
||||||
all: begin gccversion sizebefore build checkhooks checklibmode checkboard sizeafter end
|
all: begin gccversion sizebefore build showeventhooks showliboptions showtarget sizeafter end
|
||||||
|
|
||||||
# Change the build target to build a HEX file or a library.
|
# Change the build target to build a HEX file or a library.
|
||||||
build: elf hex eep lss sym
|
build: elf hex eep lss sym
|
||||||
|
@ -505,27 +505,29 @@ sizeafter:
|
||||||
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
||||||
2>/dev/null; echo; fi
|
2>/dev/null; echo; fi
|
||||||
|
|
||||||
checkhooks: build
|
showeventhooks: build
|
||||||
@echo
|
@echo
|
||||||
@echo ------- Unhooked LUFA Events -------
|
@echo -------- Unhooked LUFA Events --------
|
||||||
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
||||||
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
||||||
echo "(None)"
|
echo "(None)"
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checklibmode:
|
showliboptions:
|
||||||
@echo
|
@echo
|
||||||
@echo ----------- Library Mode -----------
|
@echo ---- Compile Time Library Options ----
|
||||||
@$(shell) ($(CC) $(ALL_CFLAGS) -E -dM - < /dev/null \
|
@for i in $(LUFA_OPTS:-D%=%); do \
|
||||||
| grep 'USB_\(DEVICE\|HOST\)_ONLY' | cut -d' ' -f2 | grep ".*") \
|
echo $$i; \
|
||||||
|| echo "No specific mode (both device and host mode allowable)."
|
done
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checkboard:
|
showtarget:
|
||||||
@echo
|
@echo
|
||||||
@echo ---------- Selected Board ----------
|
@echo --------- Target Information ---------
|
||||||
@echo Selected board model is $(BOARD).
|
@echo AVR Model: $(MCU)
|
||||||
@echo ------------------------------------
|
@echo Board: $(BOARD)
|
||||||
|
@echo Clock: $(F_CPU)Hz CPU, $(F_CLOCK)Hz Master
|
||||||
|
@echo --------------------------------------
|
||||||
|
|
||||||
# Display compiler version information.
|
# Display compiler version information.
|
||||||
gccversion :
|
gccversion :
|
||||||
|
@ -537,26 +539,6 @@ gccversion :
|
||||||
program: $(TARGET).hex $(TARGET).eep
|
program: $(TARGET).hex $(TARGET).eep
|
||||||
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
||||||
|
|
||||||
flip: $(TARGET).hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation erase f
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation loadbuffer $(TARGET).hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu: $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) erase
|
|
||||||
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
flip-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
copy $(TARGET).eep $(TARGET)eep.hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM erase
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM loadbuffer $(TARGET)eep.hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
|
|
||||||
# Generate avr-gdb config/init file which does the following:
|
# Generate avr-gdb config/init file which does the following:
|
||||||
# define the reset signal, load the target file, connect to target, and set
|
# define the reset signal, load the target file, connect to target, and set
|
||||||
|
@ -731,8 +713,8 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
|
||||||
|
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all checkhooks checklibmode checkboard \
|
.PHONY : all showeventhooks showliboptions showtarget \
|
||||||
begin finish end sizebefore sizeafter gccversion \
|
begin finish end sizebefore sizeafter gccversion build \
|
||||||
build elf hex eep lss sym coff extcoff clean \
|
elf hex eep lss sym coff extcoff program clean debug \
|
||||||
clean_list clean_binary program debug gdb-config \
|
clean_list clean_binary gdb-config doxygen dfu flip \
|
||||||
doxygen dfu flip flip-ee dfu-ee
|
flip-ee dfu-ee
|
|
@ -462,7 +462,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# Default target.
|
# Default target.
|
||||||
all: begin gccversion sizebefore build checkhooks checklibmode checkboard sizeafter end
|
all: begin gccversion sizebefore build showeventhooks showliboptions showtarget sizeafter end
|
||||||
|
|
||||||
# Change the build target to build a HEX file or a library.
|
# Change the build target to build a HEX file or a library.
|
||||||
build: elf hex eep lss sym
|
build: elf hex eep lss sym
|
||||||
|
@ -505,27 +505,29 @@ sizeafter:
|
||||||
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
||||||
2>/dev/null; echo; fi
|
2>/dev/null; echo; fi
|
||||||
|
|
||||||
checkhooks: build
|
showeventhooks: build
|
||||||
@echo
|
@echo
|
||||||
@echo ------- Unhooked LUFA Events -------
|
@echo -------- Unhooked LUFA Events --------
|
||||||
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
||||||
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
||||||
echo "(None)"
|
echo "(None)"
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checklibmode:
|
showliboptions:
|
||||||
@echo
|
@echo
|
||||||
@echo ----------- Library Mode -----------
|
@echo ---- Compile Time Library Options ----
|
||||||
@$(shell) ($(CC) $(ALL_CFLAGS) -E -dM - < /dev/null \
|
@for i in $(LUFA_OPTS:-D%=%); do \
|
||||||
| grep 'USB_\(DEVICE\|HOST\)_ONLY' | cut -d' ' -f2 | grep ".*") \
|
echo $$i; \
|
||||||
|| echo "No specific mode (both device and host mode allowable)."
|
done
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checkboard:
|
showtarget:
|
||||||
@echo
|
@echo
|
||||||
@echo ---------- Selected Board ----------
|
@echo --------- Target Information ---------
|
||||||
@echo Selected board model is $(BOARD).
|
@echo AVR Model: $(MCU)
|
||||||
@echo ------------------------------------
|
@echo Board: $(BOARD)
|
||||||
|
@echo Clock: $(F_CPU)Hz CPU, $(F_CLOCK)Hz Master
|
||||||
|
@echo --------------------------------------
|
||||||
|
|
||||||
# Display compiler version information.
|
# Display compiler version information.
|
||||||
gccversion :
|
gccversion :
|
||||||
|
@ -537,26 +539,6 @@ gccversion :
|
||||||
program: $(TARGET).hex $(TARGET).eep
|
program: $(TARGET).hex $(TARGET).eep
|
||||||
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
||||||
|
|
||||||
flip: $(TARGET).hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation erase f
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation loadbuffer $(TARGET).hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu: $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) erase
|
|
||||||
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
flip-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
copy $(TARGET).eep $(TARGET)eep.hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM erase
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM loadbuffer $(TARGET)eep.hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
|
|
||||||
# Generate avr-gdb config/init file which does the following:
|
# Generate avr-gdb config/init file which does the following:
|
||||||
# define the reset signal, load the target file, connect to target, and set
|
# define the reset signal, load the target file, connect to target, and set
|
||||||
|
@ -731,8 +713,8 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
|
||||||
|
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all checkhooks checklibmode checkboard \
|
.PHONY : all showeventhooks showliboptions showtarget \
|
||||||
begin finish end sizebefore sizeafter gccversion \
|
begin finish end sizebefore sizeafter gccversion build \
|
||||||
build elf hex eep lss sym coff extcoff clean \
|
elf hex eep lss sym coff extcoff program clean debug \
|
||||||
clean_list clean_binary program debug gdb-config \
|
clean_list clean_binary gdb-config doxygen dfu flip \
|
||||||
doxygen dfu flip flip-ee dfu-ee
|
flip-ee dfu-ee
|
|
@ -469,7 +469,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# Default target.
|
# Default target.
|
||||||
all: begin gccversion sizebefore build checkhooks checklibmode checkboard sizeafter end
|
all: begin gccversion sizebefore build showeventhooks showliboptions showtarget sizeafter end
|
||||||
|
|
||||||
# Change the build target to build a HEX file or a library.
|
# Change the build target to build a HEX file or a library.
|
||||||
build: elf hex eep lss sym
|
build: elf hex eep lss sym
|
||||||
|
@ -512,27 +512,29 @@ sizeafter:
|
||||||
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
||||||
2>/dev/null; echo; fi
|
2>/dev/null; echo; fi
|
||||||
|
|
||||||
checkhooks: build
|
showeventhooks: build
|
||||||
@echo
|
@echo
|
||||||
@echo ------- Unhooked LUFA Events -------
|
@echo -------- Unhooked LUFA Events --------
|
||||||
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
||||||
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
||||||
echo "(None)"
|
echo "(None)"
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checklibmode:
|
showliboptions:
|
||||||
@echo
|
@echo
|
||||||
@echo ----------- Library Mode -----------
|
@echo ---- Compile Time Library Options ----
|
||||||
@$(shell) ($(CC) $(ALL_CFLAGS) -E -dM - < /dev/null \
|
@for i in $(LUFA_OPTS:-D%=%); do \
|
||||||
| grep 'USB_\(DEVICE\|HOST\)_ONLY' | cut -d' ' -f2 | grep ".*") \
|
echo $$i; \
|
||||||
|| echo "No specific mode (both device and host mode allowable)."
|
done
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checkboard:
|
showtarget:
|
||||||
@echo
|
@echo
|
||||||
@echo ---------- Selected Board ----------
|
@echo --------- Target Information ---------
|
||||||
@echo Selected board model is $(BOARD).
|
@echo AVR Model: $(MCU)
|
||||||
@echo ------------------------------------
|
@echo Board: $(BOARD)
|
||||||
|
@echo Clock: $(F_CPU)Hz CPU, $(F_CLOCK)Hz Master
|
||||||
|
@echo --------------------------------------
|
||||||
|
|
||||||
# Display compiler version information.
|
# Display compiler version information.
|
||||||
gccversion :
|
gccversion :
|
||||||
|
@ -544,26 +546,6 @@ gccversion :
|
||||||
program: $(TARGET).hex $(TARGET).eep
|
program: $(TARGET).hex $(TARGET).eep
|
||||||
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
||||||
|
|
||||||
flip: $(TARGET).hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation erase f
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation loadbuffer $(TARGET).hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu: $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) erase
|
|
||||||
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
flip-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
copy $(TARGET).eep $(TARGET)eep.hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM erase
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM loadbuffer $(TARGET)eep.hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
|
|
||||||
# Generate avr-gdb config/init file which does the following:
|
# Generate avr-gdb config/init file which does the following:
|
||||||
# define the reset signal, load the target file, connect to target, and set
|
# define the reset signal, load the target file, connect to target, and set
|
||||||
|
@ -738,8 +720,8 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
|
||||||
|
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all checkhooks checklibmode checkboard \
|
.PHONY : all showeventhooks showliboptions showtarget \
|
||||||
begin finish end sizebefore sizeafter gccversion \
|
begin finish end sizebefore sizeafter gccversion build \
|
||||||
build elf hex eep lss sym coff extcoff clean \
|
elf hex eep lss sym coff extcoff program clean debug \
|
||||||
clean_list clean_binary program debug gdb-config \
|
clean_list clean_binary gdb-config doxygen dfu flip \
|
||||||
doxygen dfu flip flip-ee dfu-ee
|
flip-ee dfu-ee
|
|
@ -473,7 +473,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# Default target.
|
# Default target.
|
||||||
all: begin gccversion sizebefore build checkhooks checklibmode checkboard sizeafter end
|
all: begin gccversion sizebefore build showeventhooks showliboptions showtarget sizeafter end
|
||||||
|
|
||||||
# Change the build target to build a HEX file or a library.
|
# Change the build target to build a HEX file or a library.
|
||||||
build: elf hex eep lss sym
|
build: elf hex eep lss sym
|
||||||
|
@ -516,27 +516,29 @@ sizeafter:
|
||||||
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
||||||
2>/dev/null; echo; fi
|
2>/dev/null; echo; fi
|
||||||
|
|
||||||
checkhooks: build
|
showeventhooks: build
|
||||||
@echo
|
@echo
|
||||||
@echo ------- Unhooked LUFA Events -------
|
@echo -------- Unhooked LUFA Events --------
|
||||||
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
||||||
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
||||||
echo "(None)"
|
echo "(None)"
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checklibmode:
|
showliboptions:
|
||||||
@echo
|
@echo
|
||||||
@echo ----------- Library Mode -----------
|
@echo ---- Compile Time Library Options ----
|
||||||
@$(shell) ($(CC) $(ALL_CFLAGS) -E -dM - < /dev/null \
|
@for i in $(LUFA_OPTS:-D%=%); do \
|
||||||
| grep 'USB_\(DEVICE\|HOST\)_ONLY' | cut -d' ' -f2 | grep ".*") \
|
echo $$i; \
|
||||||
|| echo "No specific mode (both device and host mode allowable)."
|
done
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checkboard:
|
showtarget:
|
||||||
@echo
|
@echo
|
||||||
@echo ---------- Selected Board ----------
|
@echo --------- Target Information ---------
|
||||||
@echo Selected board model is $(BOARD).
|
@echo AVR Model: $(MCU)
|
||||||
@echo ------------------------------------
|
@echo Board: $(BOARD)
|
||||||
|
@echo Clock: $(F_CPU)Hz CPU, $(F_CLOCK)Hz Master
|
||||||
|
@echo --------------------------------------
|
||||||
|
|
||||||
# Display compiler version information.
|
# Display compiler version information.
|
||||||
gccversion :
|
gccversion :
|
||||||
|
@ -548,26 +550,6 @@ gccversion :
|
||||||
program: $(TARGET).hex $(TARGET).eep
|
program: $(TARGET).hex $(TARGET).eep
|
||||||
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
||||||
|
|
||||||
flip: $(TARGET).hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation erase f
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation loadbuffer $(TARGET).hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu: $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) erase
|
|
||||||
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
flip-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
copy $(TARGET).eep $(TARGET)eep.hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM erase
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM loadbuffer $(TARGET)eep.hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
|
|
||||||
# Generate avr-gdb config/init file which does the following:
|
# Generate avr-gdb config/init file which does the following:
|
||||||
# define the reset signal, load the target file, connect to target, and set
|
# define the reset signal, load the target file, connect to target, and set
|
||||||
|
@ -742,8 +724,8 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
|
||||||
|
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all checkhooks checklibmode checkboard \
|
.PHONY : all showeventhooks showliboptions showtarget \
|
||||||
begin finish end sizebefore sizeafter gccversion \
|
begin finish end sizebefore sizeafter gccversion build \
|
||||||
build elf hex eep lss sym coff extcoff clean \
|
elf hex eep lss sym coff extcoff program clean debug \
|
||||||
clean_list clean_binary program debug gdb-config \
|
clean_list clean_binary gdb-config doxygen dfu flip \
|
||||||
doxygen dfu flip flip-ee dfu-ee
|
flip-ee dfu-ee
|
|
@ -463,7 +463,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# Default target.
|
# Default target.
|
||||||
all: begin gccversion sizebefore build checkhooks checklibmode checkboard sizeafter end
|
all: begin gccversion sizebefore build showeventhooks showliboptions showtarget sizeafter end
|
||||||
|
|
||||||
# Change the build target to build a HEX file or a library.
|
# Change the build target to build a HEX file or a library.
|
||||||
build: elf hex eep lss sym
|
build: elf hex eep lss sym
|
||||||
|
@ -506,27 +506,29 @@ sizeafter:
|
||||||
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
|
||||||
2>/dev/null; echo; fi
|
2>/dev/null; echo; fi
|
||||||
|
|
||||||
checkhooks: build
|
showeventhooks: build
|
||||||
@echo
|
@echo
|
||||||
@echo ------- Unhooked LUFA Events -------
|
@echo -------- Unhooked LUFA Events --------
|
||||||
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
@$(shell) (grep -s '^EVENT_.*LUFA/.*\\.o' $(TARGET).map | \
|
||||||
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
cut -d' ' -f1 | cut -d'_' -f2- | grep ".*") || \
|
||||||
echo "(None)"
|
echo "(None)"
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checklibmode:
|
showliboptions:
|
||||||
@echo
|
@echo
|
||||||
@echo ----------- Library Mode -----------
|
@echo ---- Compile Time Library Options ----
|
||||||
@$(shell) ($(CC) $(ALL_CFLAGS) -E -dM - < /dev/null \
|
@for i in $(LUFA_OPTS:-D%=%); do \
|
||||||
| grep 'USB_\(DEVICE\|HOST\)_ONLY' | cut -d' ' -f2 | grep ".*") \
|
echo $$i; \
|
||||||
|| echo "No specific mode (both device and host mode allowable)."
|
done
|
||||||
@echo ------------------------------------
|
@echo --------------------------------------
|
||||||
|
|
||||||
checkboard:
|
showtarget:
|
||||||
@echo
|
@echo
|
||||||
@echo ---------- Selected Board ----------
|
@echo --------- Target Information ---------
|
||||||
@echo Selected board model is $(BOARD).
|
@echo AVR Model: $(MCU)
|
||||||
@echo ------------------------------------
|
@echo Board: $(BOARD)
|
||||||
|
@echo Clock: $(F_CPU)Hz CPU, $(F_CLOCK)Hz Master
|
||||||
|
@echo --------------------------------------
|
||||||
|
|
||||||
# Display compiler version information.
|
# Display compiler version information.
|
||||||
gccversion :
|
gccversion :
|
||||||
|
@ -538,26 +540,6 @@ gccversion :
|
||||||
program: $(TARGET).hex $(TARGET).eep
|
program: $(TARGET).hex $(TARGET).eep
|
||||||
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
|
||||||
|
|
||||||
flip: $(TARGET).hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation erase f
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation loadbuffer $(TARGET).hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu: $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) erase
|
|
||||||
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
flip-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
copy $(TARGET).eep $(TARGET)eep.hex
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM erase
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation memory EEPROM loadbuffer $(TARGET)eep.hex program
|
|
||||||
batchisp -hardware usb -device $(MCU) -operation start reset 0
|
|
||||||
|
|
||||||
dfu-ee: $(TARGET).hex $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
|
|
||||||
dfu-programmer $(MCU) reset
|
|
||||||
|
|
||||||
|
|
||||||
# Generate avr-gdb config/init file which does the following:
|
# Generate avr-gdb config/init file which does the following:
|
||||||
# define the reset signal, load the target file, connect to target, and set
|
# define the reset signal, load the target file, connect to target, and set
|
||||||
|
@ -732,8 +714,8 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
|
||||||
|
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all checkhooks checklibmode checkboard \
|
.PHONY : all showeventhooks showliboptions showtarget \
|
||||||
begin finish end sizebefore sizeafter gccversion \
|
begin finish end sizebefore sizeafter gccversion build \
|
||||||
build elf hex eep lss sym coff extcoff clean \
|
elf hex eep lss sym coff extcoff program clean debug \
|
||||||
clean_list clean_binary program debug gdb-config \
|
clean_list clean_binary gdb-config doxygen dfu flip \
|
||||||
doxygen dfu flip flip-ee dfu-ee
|
flip-ee dfu-ee
|
||||||
|
|
Loading…
Reference in New Issue