Updated makefiles to reflect new dfu-ee programming target invocations (supplied by Opendous, Inc.).

Renamed the ATTR_ALWAYSINLINE function attribute macro to ATTR_ALWAYS_INLINE to match the style of the other function attribute macro names.

Added ATTR_ALWAYS_INLINE attribute to several inlined library functions, to ensure they are inlined in all circumstances.

Cleanups to Endpoint.h and Pipe.h. Added better documentation for the endpoint and pipe interrupts.
pull/1469/head
Dean Camera 16 years ago
parent 5e787a4bb0
commit 7e7124e40b

@ -32,18 +32,6 @@
# make program = Download the hex file to the device, using avrdude. # make program = Download the hex file to the device, using avrdude.
# Please customize the avrdude settings below first! # Please customize the avrdude settings below first!
# #
# make dfu = Download the hex file to the device, using dfu-programmer (must
# have dfu-programmer installed).
#
# make flip = Download the hex file to the device, using Atmel FLIP (must
# have Atmel FLIP installed).
#
# make dfu-ee = Download the eeprom file to the device, using dfu-programmer
# (must have dfu-programmer installed).
#
# make flip-ee = Download the eeprom file to the device, using Atmel FLIP
# (must have Atmel FLIP installed).
#
# make doxygen = Generate DoxyGen documentation for the project (must have # make doxygen = Generate DoxyGen documentation for the project (must have
# DoxyGen installed) # DoxyGen installed)
# #
@ -527,26 +515,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) erase
dfu-programmer $(MCU) eeprom --debug 1 $(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

@ -32,18 +32,6 @@
# make program = Download the hex file to the device, using avrdude. # make program = Download the hex file to the device, using avrdude.
# Please customize the avrdude settings below first! # Please customize the avrdude settings below first!
# #
# make dfu = Download the hex file to the device, using dfu-programmer (must
# have dfu-programmer installed).
#
# make flip = Download the hex file to the device, using Atmel FLIP (must
# have Atmel FLIP installed).
#
# make dfu-ee = Download the eeprom file to the device, using dfu-programmer
# (must have dfu-programmer installed).
#
# make flip-ee = Download the eeprom file to the device, using Atmel FLIP
# (must have Atmel FLIP installed).
#
# make doxygen = Generate DoxyGen documentation for the project (must have # make doxygen = Generate DoxyGen documentation for the project (must have
# DoxyGen installed) # DoxyGen installed)
# #
@ -528,26 +516,7 @@ 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) erase
dfu-programmer $(MCU) eeprom --debug 1 $(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

@ -32,18 +32,6 @@
# make program = Download the hex file to the device, using avrdude. # make program = Download the hex file to the device, using avrdude.
# Please customize the avrdude settings below first! # Please customize the avrdude settings below first!
# #
# make dfu = Download the hex file to the device, using dfu-programmer (must
# have dfu-programmer installed).
#
# make flip = Download the hex file to the device, using Atmel FLIP (must
# have Atmel FLIP installed).
#
# make dfu-ee = Download the eeprom file to the device, using dfu-programmer
# (must have dfu-programmer installed).
#
# make flip-ee = Download the eeprom file to the device, using Atmel FLIP
# (must have Atmel FLIP installed).
#
# make doxygen = Generate DoxyGen documentation for the project (must have # make doxygen = Generate DoxyGen documentation for the project (must have
# DoxyGen installed) # DoxyGen installed)
# #
@ -527,26 +515,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) erase
dfu-programmer $(MCU) eeprom --debug 1 $(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

@ -534,10 +534,10 @@ flip-ee: $(TARGET).hex $(TARGET).eep
batchisp -hardware usb -device $(MCU) -operation start reset 0 batchisp -hardware usb -device $(MCU) -operation start reset 0
dfu-ee: $(TARGET).hex $(TARGET).eep dfu-ee: $(TARGET).hex $(TARGET).eep
dfu-programmer $(MCU) erase dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) eeprom --debug 1 $(TARGET).eep
dfu-programmer $(MCU) reset 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
# a breakpoint at main(). # a breakpoint at main().
@ -680,6 +680,7 @@ clean_binary:
clean_list: clean_list:
@echo $(MSG_CLEANING) @echo $(MSG_CLEANING)
$(REMOVE) $(TARGET).eep $(REMOVE) $(TARGET).eep
$(REMOVE) $(TARGET)eep.hex
$(REMOVE) $(TARGET).cof $(REMOVE) $(TARGET).cof
$(REMOVE) $(TARGET).elf $(REMOVE) $(TARGET).elf
$(REMOVE) $(TARGET).map $(REMOVE) $(TARGET).map
@ -714,4 +715,4 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
finish end sizebefore sizeafter gccversion \ finish end sizebefore sizeafter gccversion \
build elf hex eep lss sym coff extcoff \ build elf hex eep lss sym coff extcoff \
clean clean_list clean_binary program debug \ clean clean_list clean_binary program debug \
gdb-config doxygen dfu flip gdb-config doxygen dfu flip flip-ee dfu-ee

@ -534,10 +534,10 @@ flip-ee: $(TARGET).hex $(TARGET).eep
batchisp -hardware usb -device $(MCU) -operation start reset 0 batchisp -hardware usb -device $(MCU) -operation start reset 0
dfu-ee: $(TARGET).hex $(TARGET).eep dfu-ee: $(TARGET).hex $(TARGET).eep
dfu-programmer $(MCU) erase dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) eeprom --debug 1 $(TARGET).eep
dfu-programmer $(MCU) reset 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
# a breakpoint at main(). # a breakpoint at main().
@ -680,6 +680,7 @@ clean_binary:
clean_list: clean_list:
@echo $(MSG_CLEANING) @echo $(MSG_CLEANING)
$(REMOVE) $(TARGET).eep $(REMOVE) $(TARGET).eep
$(REMOVE) $(TARGET)eep.hex
$(REMOVE) $(TARGET).cof $(REMOVE) $(TARGET).cof
$(REMOVE) $(TARGET).elf $(REMOVE) $(TARGET).elf
$(REMOVE) $(TARGET).map $(REMOVE) $(TARGET).map
@ -714,4 +715,4 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
finish end sizebefore sizeafter gccversion \ finish end sizebefore sizeafter gccversion \
build elf hex eep lss sym coff extcoff \ build elf hex eep lss sym coff extcoff \
clean clean_list clean_binary program debug \ clean clean_list clean_binary program debug \
gdb-config doxygen dfu flip gdb-config doxygen dfu flip flip-ee dfu-ee

@ -540,10 +540,10 @@ flip-ee: $(TARGET).hex $(TARGET).eep
batchisp -hardware usb -device $(MCU) -operation start reset 0 batchisp -hardware usb -device $(MCU) -operation start reset 0
dfu-ee: $(TARGET).hex $(TARGET).eep dfu-ee: $(TARGET).hex $(TARGET).eep
dfu-programmer $(MCU) erase dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) eeprom --debug 1 $(TARGET).eep
dfu-programmer $(MCU) reset 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
# a breakpoint at main(). # a breakpoint at main().
@ -677,7 +677,7 @@ $(OBJDIR)/%.o : %.S
$(CC) -E -mmcu=$(MCU) -I. $(CFLAGS) $< -o $@ $(CC) -E -mmcu=$(MCU) -I. $(CFLAGS) $< -o $@
## Target: clean project. # Target: clean project.
clean: begin clean_list clean_binary end clean: begin clean_list clean_binary end
clean_binary: clean_binary:
@ -686,6 +686,7 @@ clean_binary:
clean_list: clean_list:
@echo $(MSG_CLEANING) @echo $(MSG_CLEANING)
$(REMOVE) $(TARGET).eep $(REMOVE) $(TARGET).eep
$(REMOVE) $(TARGET)eep.hex
$(REMOVE) $(TARGET).cof $(REMOVE) $(TARGET).cof
$(REMOVE) $(TARGET).elf $(REMOVE) $(TARGET).elf
$(REMOVE) $(TARGET).map $(REMOVE) $(TARGET).map
@ -698,11 +699,15 @@ clean_list:
$(REMOVE) $(SRC:.c=.i) $(REMOVE) $(SRC:.c=.i)
$(REMOVEDIR) .dep $(REMOVEDIR) .dep
doxygen: doxygen:
@echo Generating Project Documentation... @echo Generating Project Documentation...
@doxygen Doxygen.conf @doxygen Doxygen.conf
@echo Documentation Generation Complete. @echo Documentation Generation Complete.
clean_doxygen:
rm -rf Documentation
# Create object files directory # Create object files directory
$(shell mkdir $(OBJDIR) 2>/dev/null) $(shell mkdir $(OBJDIR) 2>/dev/null)
@ -716,4 +721,4 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
finish end sizebefore sizeafter gccversion \ finish end sizebefore sizeafter gccversion \
build elf hex eep lss sym coff extcoff \ build elf hex eep lss sym coff extcoff \
clean clean_list clean_binary program debug \ clean clean_list clean_binary program debug \
gdb-config doxygen gdb-config doxygen dfu flip flip-ee dfu-ee

@ -534,10 +534,10 @@ flip-ee: $(TARGET).hex $(TARGET).eep
batchisp -hardware usb -device $(MCU) -operation start reset 0 batchisp -hardware usb -device $(MCU) -operation start reset 0
dfu-ee: $(TARGET).hex $(TARGET).eep dfu-ee: $(TARGET).hex $(TARGET).eep
dfu-programmer $(MCU) erase dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) eeprom --debug 1 $(TARGET).eep
dfu-programmer $(MCU) reset 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
# a breakpoint at main(). # a breakpoint at main().
@ -680,6 +680,7 @@ clean_binary:
clean_list: clean_list:
@echo $(MSG_CLEANING) @echo $(MSG_CLEANING)
$(REMOVE) $(TARGET).eep $(REMOVE) $(TARGET).eep
$(REMOVE) $(TARGET)eep.hex
$(REMOVE) $(TARGET).cof $(REMOVE) $(TARGET).cof
$(REMOVE) $(TARGET).elf $(REMOVE) $(TARGET).elf
$(REMOVE) $(TARGET).map $(REMOVE) $(TARGET).map
@ -714,4 +715,4 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
finish end sizebefore sizeafter gccversion \ finish end sizebefore sizeafter gccversion \
build elf hex eep lss sym coff extcoff \ build elf hex eep lss sym coff extcoff \
clean clean_list clean_binary program debug \ clean clean_list clean_binary program debug \
gdb-config doxygen dfu flip gdb-config doxygen dfu flip flip-ee dfu-ee

@ -537,10 +537,10 @@ flip-ee: $(TARGET).hex $(TARGET).eep
batchisp -hardware usb -device $(MCU) -operation start reset 0 batchisp -hardware usb -device $(MCU) -operation start reset 0
dfu-ee: $(TARGET).hex $(TARGET).eep dfu-ee: $(TARGET).hex $(TARGET).eep
dfu-programmer $(MCU) erase dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) eeprom --debug 1 $(TARGET).eep
dfu-programmer $(MCU) reset 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
# a breakpoint at main(). # a breakpoint at main().
@ -674,7 +674,7 @@ $(OBJDIR)/%.o : %.S
$(CC) -E -mmcu=$(MCU) -I. $(CFLAGS) $< -o $@ $(CC) -E -mmcu=$(MCU) -I. $(CFLAGS) $< -o $@
## Target: clean project. # Target: clean project.
clean: begin clean_list clean_binary end clean: begin clean_list clean_binary end
clean_binary: clean_binary:
@ -683,6 +683,7 @@ clean_binary:
clean_list: clean_list:
@echo $(MSG_CLEANING) @echo $(MSG_CLEANING)
$(REMOVE) $(TARGET).eep $(REMOVE) $(TARGET).eep
$(REMOVE) $(TARGET)eep.hex
$(REMOVE) $(TARGET).cof $(REMOVE) $(TARGET).cof
$(REMOVE) $(TARGET).elf $(REMOVE) $(TARGET).elf
$(REMOVE) $(TARGET).map $(REMOVE) $(TARGET).map
@ -717,4 +718,4 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
finish end sizebefore sizeafter gccversion \ finish end sizebefore sizeafter gccversion \
build elf hex eep lss sym coff extcoff \ build elf hex eep lss sym coff extcoff \
clean clean_list clean_binary program debug \ clean clean_list clean_binary program debug \
gdb-config doxygen dfu flip gdb-config doxygen dfu flip flip-ee dfu-ee

@ -534,10 +534,10 @@ flip-ee: $(TARGET).hex $(TARGET).eep
batchisp -hardware usb -device $(MCU) -operation start reset 0 batchisp -hardware usb -device $(MCU) -operation start reset 0
dfu-ee: $(TARGET).hex $(TARGET).eep dfu-ee: $(TARGET).hex $(TARGET).eep
dfu-programmer $(MCU) erase dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) eeprom --debug 1 $(TARGET).eep
dfu-programmer $(MCU) reset 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
# a breakpoint at main(). # a breakpoint at main().
@ -680,6 +680,7 @@ clean_binary:
clean_list: clean_list:
@echo $(MSG_CLEANING) @echo $(MSG_CLEANING)
$(REMOVE) $(TARGET).eep $(REMOVE) $(TARGET).eep
$(REMOVE) $(TARGET)eep.hex
$(REMOVE) $(TARGET).cof $(REMOVE) $(TARGET).cof
$(REMOVE) $(TARGET).elf $(REMOVE) $(TARGET).elf
$(REMOVE) $(TARGET).map $(REMOVE) $(TARGET).map
@ -714,4 +715,4 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
finish end sizebefore sizeafter gccversion \ finish end sizebefore sizeafter gccversion \
build elf hex eep lss sym coff extcoff \ build elf hex eep lss sym coff extcoff \
clean clean_list clean_binary program debug \ clean clean_list clean_binary program debug \
gdb-config doxygen dfu flip gdb-config doxygen dfu flip flip-ee dfu-ee

@ -534,10 +534,10 @@ flip-ee: $(TARGET).hex $(TARGET).eep
batchisp -hardware usb -device $(MCU) -operation start reset 0 batchisp -hardware usb -device $(MCU) -operation start reset 0
dfu-ee: $(TARGET).hex $(TARGET).eep dfu-ee: $(TARGET).hex $(TARGET).eep
dfu-programmer $(MCU) erase dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) eeprom --debug 1 $(TARGET).eep
dfu-programmer $(MCU) reset 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
# a breakpoint at main(). # a breakpoint at main().
@ -615,6 +615,8 @@ extcoff: $(TARGET).elf
@echo $(MSG_SYMBOL_TABLE) $@ @echo $(MSG_SYMBOL_TABLE) $@
$(NM) -n $< > $@ $(NM) -n $< > $@
# Create library from object files. # Create library from object files.
.SECONDARY : $(TARGET).a .SECONDARY : $(TARGET).a
.PRECIOUS : $(OBJ) .PRECIOUS : $(OBJ)
@ -678,6 +680,7 @@ clean_binary:
clean_list: clean_list:
@echo $(MSG_CLEANING) @echo $(MSG_CLEANING)
$(REMOVE) $(TARGET).eep $(REMOVE) $(TARGET).eep
$(REMOVE) $(TARGET)eep.hex
$(REMOVE) $(TARGET).cof $(REMOVE) $(TARGET).cof
$(REMOVE) $(TARGET).elf $(REMOVE) $(TARGET).elf
$(REMOVE) $(TARGET).map $(REMOVE) $(TARGET).map
@ -712,4 +715,4 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
finish end sizebefore sizeafter gccversion \ finish end sizebefore sizeafter gccversion \
build elf hex eep lss sym coff extcoff \ build elf hex eep lss sym coff extcoff \
clean clean_list clean_binary program debug \ clean clean_list clean_binary program debug \
gdb-config doxygen dfu flip gdb-config doxygen dfu flip flip-ee dfu-ee

@ -536,10 +536,10 @@ flip-ee: $(TARGET).hex $(TARGET).eep
batchisp -hardware usb -device $(MCU) -operation start reset 0 batchisp -hardware usb -device $(MCU) -operation start reset 0
dfu-ee: $(TARGET).hex $(TARGET).eep dfu-ee: $(TARGET).hex $(TARGET).eep
dfu-programmer $(MCU) erase dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) eeprom --debug 1 $(TARGET).eep
dfu-programmer $(MCU) reset 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
# a breakpoint at main(). # a breakpoint at main().
@ -682,6 +682,7 @@ clean_binary:
clean_list: clean_list:
@echo $(MSG_CLEANING) @echo $(MSG_CLEANING)
$(REMOVE) $(TARGET).eep $(REMOVE) $(TARGET).eep
$(REMOVE) $(TARGET)eep.hex
$(REMOVE) $(TARGET).cof $(REMOVE) $(TARGET).cof
$(REMOVE) $(TARGET).elf $(REMOVE) $(TARGET).elf
$(REMOVE) $(TARGET).map $(REMOVE) $(TARGET).map
@ -716,4 +717,4 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
finish end sizebefore sizeafter gccversion \ finish end sizebefore sizeafter gccversion \
build elf hex eep lss sym coff extcoff \ build elf hex eep lss sym coff extcoff \
clean clean_list clean_binary program debug \ clean clean_list clean_binary program debug \
gdb-config doxygen dfu flip gdb-config doxygen dfu flip flip-ee dfu-ee

@ -533,10 +533,10 @@ flip-ee: $(TARGET).hex $(TARGET).eep
batchisp -hardware usb -device $(MCU) -operation start reset 0 batchisp -hardware usb -device $(MCU) -operation start reset 0
dfu-ee: $(TARGET).hex $(TARGET).eep dfu-ee: $(TARGET).hex $(TARGET).eep
dfu-programmer $(MCU) erase dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) eeprom --debug 1 $(TARGET).eep
dfu-programmer $(MCU) reset 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
# a breakpoint at main(). # a breakpoint at main().
@ -679,6 +679,7 @@ clean_binary:
clean_list: clean_list:
@echo $(MSG_CLEANING) @echo $(MSG_CLEANING)
$(REMOVE) $(TARGET).eep $(REMOVE) $(TARGET).eep
$(REMOVE) $(TARGET)eep.hex
$(REMOVE) $(TARGET).cof $(REMOVE) $(TARGET).cof
$(REMOVE) $(TARGET).elf $(REMOVE) $(TARGET).elf
$(REMOVE) $(TARGET).map $(REMOVE) $(TARGET).map
@ -713,4 +714,4 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
finish end sizebefore sizeafter gccversion \ finish end sizebefore sizeafter gccversion \
build elf hex eep lss sym coff extcoff \ build elf hex eep lss sym coff extcoff \
clean clean_list clean_binary program debug \ clean clean_list clean_binary program debug \
gdb-config doxygen dfu flip gdb-config doxygen dfu flip flip-ee dfu-ee

@ -537,10 +537,10 @@ flip-ee: $(TARGET).hex $(TARGET).eep
batchisp -hardware usb -device $(MCU) -operation start reset 0 batchisp -hardware usb -device $(MCU) -operation start reset 0
dfu-ee: $(TARGET).hex $(TARGET).eep dfu-ee: $(TARGET).hex $(TARGET).eep
dfu-programmer $(MCU) erase dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) eeprom --debug 1 $(TARGET).eep
dfu-programmer $(MCU) reset 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
# a breakpoint at main(). # a breakpoint at main().
@ -674,7 +674,7 @@ $(OBJDIR)/%.o : %.S
$(CC) -E -mmcu=$(MCU) -I. $(CFLAGS) $< -o $@ $(CC) -E -mmcu=$(MCU) -I. $(CFLAGS) $< -o $@
## Target: clean project. # Target: clean project.
clean: begin clean_list clean_binary end clean: begin clean_list clean_binary end
clean_binary: clean_binary:
@ -683,6 +683,7 @@ clean_binary:
clean_list: clean_list:
@echo $(MSG_CLEANING) @echo $(MSG_CLEANING)
$(REMOVE) $(TARGET).eep $(REMOVE) $(TARGET).eep
$(REMOVE) $(TARGET)eep.hex
$(REMOVE) $(TARGET).cof $(REMOVE) $(TARGET).cof
$(REMOVE) $(TARGET).elf $(REMOVE) $(TARGET).elf
$(REMOVE) $(TARGET).map $(REMOVE) $(TARGET).map
@ -717,4 +718,4 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
finish end sizebefore sizeafter gccversion \ finish end sizebefore sizeafter gccversion \
build elf hex eep lss sym coff extcoff \ build elf hex eep lss sym coff extcoff \
clean clean_list clean_binary program debug \ clean clean_list clean_binary program debug \
gdb-config doxygen dfu flip gdb-config doxygen dfu flip flip-ee dfu-ee

@ -537,10 +537,10 @@ flip-ee: $(TARGET).hex $(TARGET).eep
batchisp -hardware usb -device $(MCU) -operation start reset 0 batchisp -hardware usb -device $(MCU) -operation start reset 0
dfu-ee: $(TARGET).hex $(TARGET).eep dfu-ee: $(TARGET).hex $(TARGET).eep
dfu-programmer $(MCU) erase dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) eeprom --debug 1 $(TARGET).eep
dfu-programmer $(MCU) reset 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
# a breakpoint at main(). # a breakpoint at main().
@ -674,7 +674,7 @@ $(OBJDIR)/%.o : %.S
$(CC) -E -mmcu=$(MCU) -I. $(CFLAGS) $< -o $@ $(CC) -E -mmcu=$(MCU) -I. $(CFLAGS) $< -o $@
## Target: clean project. # Target: clean project.
clean: begin clean_list clean_binary end clean: begin clean_list clean_binary end
clean_binary: clean_binary:
@ -683,6 +683,7 @@ clean_binary:
clean_list: clean_list:
@echo $(MSG_CLEANING) @echo $(MSG_CLEANING)
$(REMOVE) $(TARGET).eep $(REMOVE) $(TARGET).eep
$(REMOVE) $(TARGET)eep.hex
$(REMOVE) $(TARGET).cof $(REMOVE) $(TARGET).cof
$(REMOVE) $(TARGET).elf $(REMOVE) $(TARGET).elf
$(REMOVE) $(TARGET).map $(REMOVE) $(TARGET).map
@ -717,4 +718,4 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
finish end sizebefore sizeafter gccversion \ finish end sizebefore sizeafter gccversion \
build elf hex eep lss sym coff extcoff \ build elf hex eep lss sym coff extcoff \
clean clean_list clean_binary program debug \ clean clean_list clean_binary program debug \
gdb-config doxygen dfu flip gdb-config doxygen dfu flip flip-ee dfu-ee

@ -539,10 +539,10 @@ flip-ee: $(TARGET).hex $(TARGET).eep
batchisp -hardware usb -device $(MCU) -operation start reset 0 batchisp -hardware usb -device $(MCU) -operation start reset 0
dfu-ee: $(TARGET).hex $(TARGET).eep dfu-ee: $(TARGET).hex $(TARGET).eep
dfu-programmer $(MCU) erase dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) eeprom --debug 1 $(TARGET).eep
dfu-programmer $(MCU) reset 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
# a breakpoint at main(). # a breakpoint at main().
@ -676,7 +676,7 @@ $(OBJDIR)/%.o : %.S
$(CC) -E -mmcu=$(MCU) -I. $(CFLAGS) $< -o $@ $(CC) -E -mmcu=$(MCU) -I. $(CFLAGS) $< -o $@
## Target: clean project. # Target: clean project.
clean: begin clean_list clean_binary end clean: begin clean_list clean_binary end
clean_binary: clean_binary:
@ -685,6 +685,7 @@ clean_binary:
clean_list: clean_list:
@echo $(MSG_CLEANING) @echo $(MSG_CLEANING)
$(REMOVE) $(TARGET).eep $(REMOVE) $(TARGET).eep
$(REMOVE) $(TARGET)eep.hex
$(REMOVE) $(TARGET).cof $(REMOVE) $(TARGET).cof
$(REMOVE) $(TARGET).elf $(REMOVE) $(TARGET).elf
$(REMOVE) $(TARGET).map $(REMOVE) $(TARGET).map
@ -719,4 +720,4 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
finish end sizebefore sizeafter gccversion \ finish end sizebefore sizeafter gccversion \
build elf hex eep lss sym coff extcoff \ build elf hex eep lss sym coff extcoff \
clean clean_list clean_binary program debug \ clean clean_list clean_binary program debug \
gdb-config doxygen dfu flip gdb-config doxygen dfu flip flip-ee dfu-ee

@ -534,10 +534,10 @@ flip-ee: $(TARGET).hex $(TARGET).eep
batchisp -hardware usb -device $(MCU) -operation start reset 0 batchisp -hardware usb -device $(MCU) -operation start reset 0
dfu-ee: $(TARGET).hex $(TARGET).eep dfu-ee: $(TARGET).hex $(TARGET).eep
dfu-programmer $(MCU) erase dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) eeprom --debug 1 $(TARGET).eep
dfu-programmer $(MCU) reset 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
# a breakpoint at main(). # a breakpoint at main().
@ -680,6 +680,7 @@ clean_binary:
clean_list: clean_list:
@echo $(MSG_CLEANING) @echo $(MSG_CLEANING)
$(REMOVE) $(TARGET).eep $(REMOVE) $(TARGET).eep
$(REMOVE) $(TARGET)eep.hex
$(REMOVE) $(TARGET).cof $(REMOVE) $(TARGET).cof
$(REMOVE) $(TARGET).elf $(REMOVE) $(TARGET).elf
$(REMOVE) $(TARGET).map $(REMOVE) $(TARGET).map
@ -714,4 +715,4 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
finish end sizebefore sizeafter gccversion \ finish end sizebefore sizeafter gccversion \
build elf hex eep lss sym coff extcoff \ build elf hex eep lss sym coff extcoff \
clean clean_list clean_binary program debug \ clean clean_list clean_binary program debug \
gdb-config doxygen dfu flip gdb-config doxygen dfu flip flip-ee dfu-ee

@ -534,10 +534,10 @@ flip-ee: $(TARGET).hex $(TARGET).eep
batchisp -hardware usb -device $(MCU) -operation start reset 0 batchisp -hardware usb -device $(MCU) -operation start reset 0
dfu-ee: $(TARGET).hex $(TARGET).eep dfu-ee: $(TARGET).hex $(TARGET).eep
dfu-programmer $(MCU) erase dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) eeprom --debug 1 $(TARGET).eep
dfu-programmer $(MCU) reset 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
# a breakpoint at main(). # a breakpoint at main().
@ -680,6 +680,7 @@ clean_binary:
clean_list: clean_list:
@echo $(MSG_CLEANING) @echo $(MSG_CLEANING)
$(REMOVE) $(TARGET).eep $(REMOVE) $(TARGET).eep
$(REMOVE) $(TARGET)eep.hex
$(REMOVE) $(TARGET).cof $(REMOVE) $(TARGET).cof
$(REMOVE) $(TARGET).elf $(REMOVE) $(TARGET).elf
$(REMOVE) $(TARGET).map $(REMOVE) $(TARGET).map
@ -714,4 +715,4 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
finish end sizebefore sizeafter gccversion \ finish end sizebefore sizeafter gccversion \
build elf hex eep lss sym coff extcoff \ build elf hex eep lss sym coff extcoff \
clean clean_list clean_binary program debug \ clean clean_list clean_binary program debug \
gdb-config doxygen dfu flip gdb-config doxygen dfu flip flip-ee dfu-ee

@ -534,10 +534,10 @@ flip-ee: $(TARGET).hex $(TARGET).eep
batchisp -hardware usb -device $(MCU) -operation start reset 0 batchisp -hardware usb -device $(MCU) -operation start reset 0
dfu-ee: $(TARGET).hex $(TARGET).eep dfu-ee: $(TARGET).hex $(TARGET).eep
dfu-programmer $(MCU) erase dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) eeprom --debug 1 $(TARGET).eep
dfu-programmer $(MCU) reset 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
# a breakpoint at main(). # a breakpoint at main().
@ -680,6 +680,7 @@ clean_binary:
clean_list: clean_list:
@echo $(MSG_CLEANING) @echo $(MSG_CLEANING)
$(REMOVE) $(TARGET).eep $(REMOVE) $(TARGET).eep
$(REMOVE) $(TARGET)eep.hex
$(REMOVE) $(TARGET).cof $(REMOVE) $(TARGET).cof
$(REMOVE) $(TARGET).elf $(REMOVE) $(TARGET).elf
$(REMOVE) $(TARGET).map $(REMOVE) $(TARGET).map
@ -714,4 +715,4 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
finish end sizebefore sizeafter gccversion \ finish end sizebefore sizeafter gccversion \
build elf hex eep lss sym coff extcoff \ build elf hex eep lss sym coff extcoff \
clean clean_list clean_binary program debug \ clean clean_list clean_binary program debug \
gdb-config doxygen dfu flip gdb-config doxygen dfu flip flip-ee dfu-ee

@ -536,10 +536,10 @@ flip-ee: $(TARGET).hex $(TARGET).eep
batchisp -hardware usb -device $(MCU) -operation start reset 0 batchisp -hardware usb -device $(MCU) -operation start reset 0
dfu-ee: $(TARGET).hex $(TARGET).eep dfu-ee: $(TARGET).hex $(TARGET).eep
dfu-programmer $(MCU) erase dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) eeprom --debug 1 $(TARGET).eep
dfu-programmer $(MCU) reset 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
# a breakpoint at main(). # a breakpoint at main().
@ -682,6 +682,7 @@ clean_binary:
clean_list: clean_list:
@echo $(MSG_CLEANING) @echo $(MSG_CLEANING)
$(REMOVE) $(TARGET).eep $(REMOVE) $(TARGET).eep
$(REMOVE) $(TARGET)eep.hex
$(REMOVE) $(TARGET).cof $(REMOVE) $(TARGET).cof
$(REMOVE) $(TARGET).elf $(REMOVE) $(TARGET).elf
$(REMOVE) $(TARGET).map $(REMOVE) $(TARGET).map
@ -716,4 +717,4 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
finish end sizebefore sizeafter gccversion \ finish end sizebefore sizeafter gccversion \
build elf hex eep lss sym coff extcoff \ build elf hex eep lss sym coff extcoff \
clean clean_list clean_binary program debug \ clean clean_list clean_binary program debug \
gdb-config doxygen dfu flip gdb-config doxygen dfu flip flip-ee dfu-ee

@ -539,10 +539,10 @@ flip-ee: $(TARGET).hex $(TARGET).eep
batchisp -hardware usb -device $(MCU) -operation start reset 0 batchisp -hardware usb -device $(MCU) -operation start reset 0
dfu-ee: $(TARGET).hex $(TARGET).eep dfu-ee: $(TARGET).hex $(TARGET).eep
dfu-programmer $(MCU) erase dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) eeprom --debug 1 $(TARGET).eep
dfu-programmer $(MCU) reset 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
# a breakpoint at main(). # a breakpoint at main().
@ -676,7 +676,7 @@ $(OBJDIR)/%.o : %.S
$(CC) -E -mmcu=$(MCU) -I. $(CFLAGS) $< -o $@ $(CC) -E -mmcu=$(MCU) -I. $(CFLAGS) $< -o $@
## Target: clean project. # Target: clean project.
clean: begin clean_list clean_binary end clean: begin clean_list clean_binary end
clean_binary: clean_binary:
@ -685,6 +685,7 @@ clean_binary:
clean_list: clean_list:
@echo $(MSG_CLEANING) @echo $(MSG_CLEANING)
$(REMOVE) $(TARGET).eep $(REMOVE) $(TARGET).eep
$(REMOVE) $(TARGET)eep.hex
$(REMOVE) $(TARGET).cof $(REMOVE) $(TARGET).cof
$(REMOVE) $(TARGET).elf $(REMOVE) $(TARGET).elf
$(REMOVE) $(TARGET).map $(REMOVE) $(TARGET).map
@ -719,4 +720,4 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
finish end sizebefore sizeafter gccversion \ finish end sizebefore sizeafter gccversion \
build elf hex eep lss sym coff extcoff \ build elf hex eep lss sym coff extcoff \
clean clean_list clean_binary program debug \ clean clean_list clean_binary program debug \
gdb-config doxygen dfu flip gdb-config doxygen dfu flip flip-ee dfu-ee

@ -535,10 +535,10 @@ flip-ee: $(TARGET).hex $(TARGET).eep
batchisp -hardware usb -device $(MCU) -operation start reset 0 batchisp -hardware usb -device $(MCU) -operation start reset 0
dfu-ee: $(TARGET).hex $(TARGET).eep dfu-ee: $(TARGET).hex $(TARGET).eep
dfu-programmer $(MCU) erase dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) eeprom --debug 1 $(TARGET).eep
dfu-programmer $(MCU) reset 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
# a breakpoint at main(). # a breakpoint at main().
@ -681,6 +681,7 @@ clean_binary:
clean_list: clean_list:
@echo $(MSG_CLEANING) @echo $(MSG_CLEANING)
$(REMOVE) $(TARGET).eep $(REMOVE) $(TARGET).eep
$(REMOVE) $(TARGET)eep.hex
$(REMOVE) $(TARGET).cof $(REMOVE) $(TARGET).cof
$(REMOVE) $(TARGET).elf $(REMOVE) $(TARGET).elf
$(REMOVE) $(TARGET).map $(REMOVE) $(TARGET).map
@ -715,4 +716,4 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
finish end sizebefore sizeafter gccversion \ finish end sizebefore sizeafter gccversion \
build elf hex eep lss sym coff extcoff \ build elf hex eep lss sym coff extcoff \
clean clean_list clean_binary program debug \ clean clean_list clean_binary program debug \
gdb-config doxygen dfu flip gdb-config doxygen dfu flip flip-ee dfu-ee

@ -535,10 +535,10 @@ flip-ee: $(TARGET).hex $(TARGET).eep
batchisp -hardware usb -device $(MCU) -operation start reset 0 batchisp -hardware usb -device $(MCU) -operation start reset 0
dfu-ee: $(TARGET).hex $(TARGET).eep dfu-ee: $(TARGET).hex $(TARGET).eep
dfu-programmer $(MCU) erase dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) eeprom --debug 1 $(TARGET).eep
dfu-programmer $(MCU) reset 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
# a breakpoint at main(). # a breakpoint at main().
@ -681,6 +681,7 @@ clean_binary:
clean_list: clean_list:
@echo $(MSG_CLEANING) @echo $(MSG_CLEANING)
$(REMOVE) $(TARGET).eep $(REMOVE) $(TARGET).eep
$(REMOVE) $(TARGET)eep.hex
$(REMOVE) $(TARGET).cof $(REMOVE) $(TARGET).cof
$(REMOVE) $(TARGET).elf $(REMOVE) $(TARGET).elf
$(REMOVE) $(TARGET).map $(REMOVE) $(TARGET).map
@ -715,4 +716,4 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
finish end sizebefore sizeafter gccversion \ finish end sizebefore sizeafter gccversion \
build elf hex eep lss sym coff extcoff \ build elf hex eep lss sym coff extcoff \
clean clean_list clean_binary program debug \ clean clean_list clean_binary program debug \
gdb-config doxygen dfu flip gdb-config doxygen dfu flip flip-ee dfu-ee

@ -537,10 +537,10 @@ flip-ee: $(TARGET).hex $(TARGET).eep
batchisp -hardware usb -device $(MCU) -operation start reset 0 batchisp -hardware usb -device $(MCU) -operation start reset 0
dfu-ee: $(TARGET).hex $(TARGET).eep dfu-ee: $(TARGET).hex $(TARGET).eep
dfu-programmer $(MCU) erase dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) eeprom --debug 1 $(TARGET).eep
dfu-programmer $(MCU) reset 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
# a breakpoint at main(). # a breakpoint at main().
@ -683,6 +683,7 @@ clean_binary:
clean_list: clean_list:
@echo $(MSG_CLEANING) @echo $(MSG_CLEANING)
$(REMOVE) $(TARGET).eep $(REMOVE) $(TARGET).eep
$(REMOVE) $(TARGET)eep.hex
$(REMOVE) $(TARGET).cof $(REMOVE) $(TARGET).cof
$(REMOVE) $(TARGET).elf $(REMOVE) $(TARGET).elf
$(REMOVE) $(TARGET).map $(REMOVE) $(TARGET).map
@ -717,4 +718,4 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
finish end sizebefore sizeafter gccversion \ finish end sizebefore sizeafter gccversion \
build elf hex eep lss sym coff extcoff \ build elf hex eep lss sym coff extcoff \
clean clean_list clean_binary program debug \ clean clean_list clean_binary program debug \
gdb-config doxygen dfu flip gdb-config doxygen dfu flip flip-ee dfu-ee

@ -537,10 +537,10 @@ flip-ee: $(TARGET).hex $(TARGET).eep
batchisp -hardware usb -device $(MCU) -operation start reset 0 batchisp -hardware usb -device $(MCU) -operation start reset 0
dfu-ee: $(TARGET).hex $(TARGET).eep dfu-ee: $(TARGET).hex $(TARGET).eep
dfu-programmer $(MCU) erase dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) eeprom --debug 1 $(TARGET).eep
dfu-programmer $(MCU) reset 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
# a breakpoint at main(). # a breakpoint at main().
@ -683,6 +683,7 @@ clean_binary:
clean_list: clean_list:
@echo $(MSG_CLEANING) @echo $(MSG_CLEANING)
$(REMOVE) $(TARGET).eep $(REMOVE) $(TARGET).eep
$(REMOVE) $(TARGET)eep.hex
$(REMOVE) $(TARGET).cof $(REMOVE) $(TARGET).cof
$(REMOVE) $(TARGET).elf $(REMOVE) $(TARGET).elf
$(REMOVE) $(TARGET).map $(REMOVE) $(TARGET).map
@ -717,4 +718,4 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
finish end sizebefore sizeafter gccversion \ finish end sizebefore sizeafter gccversion \
build elf hex eep lss sym coff extcoff \ build elf hex eep lss sym coff extcoff \
clean clean_list clean_binary program debug \ clean clean_list clean_binary program debug \
gdb-config doxygen dfu flip gdb-config doxygen dfu flip flip-ee dfu-ee

@ -539,10 +539,10 @@ flip-ee: $(TARGET).hex $(TARGET).eep
batchisp -hardware usb -device $(MCU) -operation start reset 0 batchisp -hardware usb -device $(MCU) -operation start reset 0
dfu-ee: $(TARGET).hex $(TARGET).eep dfu-ee: $(TARGET).hex $(TARGET).eep
dfu-programmer $(MCU) erase dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) eeprom --debug 1 $(TARGET).eep
dfu-programmer $(MCU) reset 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
# a breakpoint at main(). # a breakpoint at main().
@ -685,6 +685,7 @@ clean_binary:
clean_list: clean_list:
@echo $(MSG_CLEANING) @echo $(MSG_CLEANING)
$(REMOVE) $(TARGET).eep $(REMOVE) $(TARGET).eep
$(REMOVE) $(TARGET)eep.hex
$(REMOVE) $(TARGET).cof $(REMOVE) $(TARGET).cof
$(REMOVE) $(TARGET).elf $(REMOVE) $(TARGET).elf
$(REMOVE) $(TARGET).map $(REMOVE) $(TARGET).map
@ -719,4 +720,4 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
finish end sizebefore sizeafter gccversion \ finish end sizebefore sizeafter gccversion \
build elf hex eep lss sym coff extcoff \ build elf hex eep lss sym coff extcoff \
clean clean_list clean_binary program debug \ clean clean_list clean_binary program debug \
gdb-config doxygen dfu flip gdb-config doxygen dfu flip flip-ee dfu-ee

@ -535,10 +535,10 @@ flip-ee: $(TARGET).hex $(TARGET).eep
batchisp -hardware usb -device $(MCU) -operation start reset 0 batchisp -hardware usb -device $(MCU) -operation start reset 0
dfu-ee: $(TARGET).hex $(TARGET).eep dfu-ee: $(TARGET).hex $(TARGET).eep
dfu-programmer $(MCU) erase dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) eeprom --debug 1 $(TARGET).eep
dfu-programmer $(MCU) reset 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
# a breakpoint at main(). # a breakpoint at main().
@ -681,6 +681,7 @@ clean_binary:
clean_list: clean_list:
@echo $(MSG_CLEANING) @echo $(MSG_CLEANING)
$(REMOVE) $(TARGET).eep $(REMOVE) $(TARGET).eep
$(REMOVE) $(TARGET)eep.hex
$(REMOVE) $(TARGET).cof $(REMOVE) $(TARGET).cof
$(REMOVE) $(TARGET).elf $(REMOVE) $(TARGET).elf
$(REMOVE) $(TARGET).map $(REMOVE) $(TARGET).map
@ -715,4 +716,4 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
finish end sizebefore sizeafter gccversion \ finish end sizebefore sizeafter gccversion \
build elf hex eep lss sym coff extcoff \ build elf hex eep lss sym coff extcoff \
clean clean_list clean_binary program debug \ clean clean_list clean_binary program debug \
gdb-config doxygen dfu flip gdb-config doxygen dfu flip flip-ee dfu-ee

@ -548,10 +548,10 @@ flip-ee: $(TARGET).hex $(TARGET).eep
batchisp -hardware usb -device $(MCU) -operation start reset 0 batchisp -hardware usb -device $(MCU) -operation start reset 0
dfu-ee: $(TARGET).hex $(TARGET).eep dfu-ee: $(TARGET).hex $(TARGET).eep
dfu-programmer $(MCU) erase dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) eeprom --debug 1 $(TARGET).eep
dfu-programmer $(MCU) reset 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
# a breakpoint at main(). # a breakpoint at main().
@ -694,6 +694,7 @@ clean_binary:
clean_list: clean_list:
@echo $(MSG_CLEANING) @echo $(MSG_CLEANING)
$(REMOVE) $(TARGET).eep $(REMOVE) $(TARGET).eep
$(REMOVE) $(TARGET)eep.hex
$(REMOVE) $(TARGET).cof $(REMOVE) $(TARGET).cof
$(REMOVE) $(TARGET).elf $(REMOVE) $(TARGET).elf
$(REMOVE) $(TARGET).map $(REMOVE) $(TARGET).map
@ -728,4 +729,4 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
finish end sizebefore sizeafter gccversion \ finish end sizebefore sizeafter gccversion \
build elf hex eep lss sym coff extcoff \ build elf hex eep lss sym coff extcoff \
clean clean_list clean_binary program debug \ clean clean_list clean_binary program debug \
gdb-config doxygen dfu flip gdb-config doxygen dfu flip flip-ee dfu-ee

@ -537,10 +537,10 @@ flip-ee: $(TARGET).hex $(TARGET).eep
batchisp -hardware usb -device $(MCU) -operation start reset 0 batchisp -hardware usb -device $(MCU) -operation start reset 0
dfu-ee: $(TARGET).hex $(TARGET).eep dfu-ee: $(TARGET).hex $(TARGET).eep
dfu-programmer $(MCU) erase dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) eeprom --debug 1 $(TARGET).eep
dfu-programmer $(MCU) reset 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
# a breakpoint at main(). # a breakpoint at main().
@ -674,7 +674,7 @@ $(OBJDIR)/%.o : %.S
$(CC) -E -mmcu=$(MCU) -I. $(CFLAGS) $< -o $@ $(CC) -E -mmcu=$(MCU) -I. $(CFLAGS) $< -o $@
## Target: clean project. # Target: clean project.
clean: begin clean_list clean_binary end clean: begin clean_list clean_binary end
clean_binary: clean_binary:
@ -683,6 +683,7 @@ clean_binary:
clean_list: clean_list:
@echo $(MSG_CLEANING) @echo $(MSG_CLEANING)
$(REMOVE) $(TARGET).eep $(REMOVE) $(TARGET).eep
$(REMOVE) $(TARGET)eep.hex
$(REMOVE) $(TARGET).cof $(REMOVE) $(TARGET).cof
$(REMOVE) $(TARGET).elf $(REMOVE) $(TARGET).elf
$(REMOVE) $(TARGET).map $(REMOVE) $(TARGET).map
@ -717,4 +718,4 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
finish end sizebefore sizeafter gccversion \ finish end sizebefore sizeafter gccversion \
build elf hex eep lss sym coff extcoff \ build elf hex eep lss sym coff extcoff \
clean clean_list clean_binary program debug \ clean clean_list clean_binary program debug \
gdb-config doxygen dfu flip gdb-config doxygen dfu flip flip-ee dfu-ee

@ -542,10 +542,10 @@ flip-ee: $(TARGET).hex $(TARGET).eep
batchisp -hardware usb -device $(MCU) -operation start reset 0 batchisp -hardware usb -device $(MCU) -operation start reset 0
dfu-ee: $(TARGET).hex $(TARGET).eep dfu-ee: $(TARGET).hex $(TARGET).eep
dfu-programmer $(MCU) erase dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) eeprom --debug 1 $(TARGET).eep
dfu-programmer $(MCU) reset 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
# a breakpoint at main(). # a breakpoint at main().
@ -688,6 +688,7 @@ clean_binary:
clean_list: clean_list:
@echo $(MSG_CLEANING) @echo $(MSG_CLEANING)
$(REMOVE) $(TARGET).eep $(REMOVE) $(TARGET).eep
$(REMOVE) $(TARGET)eep.hex
$(REMOVE) $(TARGET).cof $(REMOVE) $(TARGET).cof
$(REMOVE) $(TARGET).elf $(REMOVE) $(TARGET).elf
$(REMOVE) $(TARGET).map $(REMOVE) $(TARGET).map
@ -722,4 +723,4 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
finish end sizebefore sizeafter gccversion \ finish end sizebefore sizeafter gccversion \
build elf hex eep lss sym coff extcoff \ build elf hex eep lss sym coff extcoff \
clean clean_list clean_binary program debug \ clean clean_list clean_binary program debug \
gdb-config doxygen dfu flip gdb-config doxygen dfu flip flip-ee dfu-ee

@ -536,10 +536,10 @@ flip-ee: $(TARGET).hex $(TARGET).eep
batchisp -hardware usb -device $(MCU) -operation start reset 0 batchisp -hardware usb -device $(MCU) -operation start reset 0
dfu-ee: $(TARGET).hex $(TARGET).eep dfu-ee: $(TARGET).hex $(TARGET).eep
dfu-programmer $(MCU) erase dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) eeprom --debug 1 $(TARGET).eep
dfu-programmer $(MCU) reset 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
# a breakpoint at main(). # a breakpoint at main().
@ -682,6 +682,7 @@ clean_binary:
clean_list: clean_list:
@echo $(MSG_CLEANING) @echo $(MSG_CLEANING)
$(REMOVE) $(TARGET).eep $(REMOVE) $(TARGET).eep
$(REMOVE) $(TARGET)eep.hex
$(REMOVE) $(TARGET).cof $(REMOVE) $(TARGET).cof
$(REMOVE) $(TARGET).elf $(REMOVE) $(TARGET).elf
$(REMOVE) $(TARGET).map $(REMOVE) $(TARGET).map
@ -716,4 +717,4 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
finish end sizebefore sizeafter gccversion \ finish end sizebefore sizeafter gccversion \
build elf hex eep lss sym coff extcoff \ build elf hex eep lss sym coff extcoff \
clean clean_list clean_binary program debug \ clean clean_list clean_binary program debug \
gdb-config doxygen dfu flip gdb-config doxygen dfu flip flip-ee dfu-ee

@ -8,7 +8,7 @@
* *
* \section Sec_ChangeLogXXXXXX Version XXXXXX * \section Sec_ChangeLogXXXXXX Version XXXXXX
* *
* - Added new BluetoothHost demo * - Added new incomplete BluetoothHost demo
* - Changed AVRISP Programmer descriptors to use a newly allocated 0x204F PID value * - Changed AVRISP Programmer descriptors to use a newly allocated 0x204F PID value
* - Fixed MagStripe project configuration descriptor containing an unused (blank) endpoint descriptor * - Fixed MagStripe project configuration descriptor containing an unused (blank) endpoint descriptor
* - Incorporated makefile changes by Denver Gingerich to retain compatibility with stock (non-WinAVR) AVR-GCC installations * - Incorporated makefile changes by Denver Gingerich to retain compatibility with stock (non-WinAVR) AVR-GCC installations
@ -26,6 +26,8 @@
* - Changed stream wait timeout counter to be 16-bit, so that very long timeout periods can be set for correct communications with * - Changed stream wait timeout counter to be 16-bit, so that very long timeout periods can be set for correct communications with
* badly designed hosts or devices which greatly exceed the USB specification limits * badly designed hosts or devices which greatly exceed the USB specification limits
* - Mass Storage Host demo now uses a USB_STREAM_TIMEOUT_MS of two seconds to maintain compatibility with poorly designed devices * - Mass Storage Host demo now uses a USB_STREAM_TIMEOUT_MS of two seconds to maintain compatibility with poorly designed devices
* - Function attribute ATTR_ALWAYSINLINE renamed to ATTR_ALWAYS_INLINE to match other function attribute macro naming conventions
* - Added ATTR_ALWAYS_INLINE attribute to several key inlined library components, to ensure they are inlined in all circumstances
* *
* \section Sec_ChangeLog090209 Version 090209 * \section Sec_ChangeLog090209 Version 090209
* *

@ -84,7 +84,7 @@
/** Forces the compiler to inline the specified function. When applied, the given function will be /** Forces the compiler to inline the specified function. When applied, the given function will be
* inlined under all circumstances. * inlined under all circumstances.
*/ */
#define ATTR_ALWAYSINLINE __attribute__ ((always_inline)) #define ATTR_ALWAYS_INLINE __attribute__ ((always_inline))
/** Indicates that the specified function is pure, in that it has no side-effects other than global /** Indicates that the specified function is pure, in that it has no side-effects other than global
* or parameter variable access. * or parameter variable access.

@ -98,7 +98,7 @@
* *
* \return Response byte from the attached SPI device * \return Response byte from the attached SPI device
*/ */
static inline uint8_t SPI_TransferByte(const uint8_t Byte) ATTR_ALWAYSINLINE; static inline uint8_t SPI_TransferByte(const uint8_t Byte) ATTR_ALWAYS_INLINE;
static inline uint8_t SPI_TransferByte(const uint8_t Byte) static inline uint8_t SPI_TransferByte(const uint8_t Byte)
{ {
SPDR = Byte; SPDR = Byte;
@ -111,7 +111,7 @@
* *
* \param Byte Byte to send through the SPI interface * \param Byte Byte to send through the SPI interface
*/ */
static inline void SPI_SendByte(const uint8_t Byte) ATTR_ALWAYSINLINE; static inline void SPI_SendByte(const uint8_t Byte) ATTR_ALWAYS_INLINE;
static inline void SPI_SendByte(const uint8_t Byte) static inline void SPI_SendByte(const uint8_t Byte)
{ {
SPDR = Byte; SPDR = Byte;
@ -123,7 +123,7 @@
* *
* \return The response byte from the attached SPI device * \return The response byte from the attached SPI device
*/ */
static inline uint8_t SPI_ReceiveByte(void) ATTR_ALWAYSINLINE ATTR_WARN_UNUSED_RESULT; static inline uint8_t SPI_ReceiveByte(void) ATTR_ALWAYS_INLINE ATTR_WARN_UNUSED_RESULT;
static inline uint8_t SPI_ReceiveByte(void) static inline uint8_t SPI_ReceiveByte(void)
{ {
SPDR = 0x00; SPDR = 0x00;

@ -108,7 +108,7 @@
* *
* \return Last response byte from the dataflash * \return Last response byte from the dataflash
*/ */
static inline uint8_t Dataflash_TransferByte(const uint8_t Byte) ATTR_ALWAYSINLINE; static inline uint8_t Dataflash_TransferByte(const uint8_t Byte) ATTR_ALWAYS_INLINE;
static inline uint8_t Dataflash_TransferByte(const uint8_t Byte) static inline uint8_t Dataflash_TransferByte(const uint8_t Byte)
{ {
return SPI_TransferByte(Byte); return SPI_TransferByte(Byte);
@ -118,7 +118,7 @@
* *
* \param Byte of data to send to the dataflash * \param Byte of data to send to the dataflash
*/ */
static inline void Dataflash_SendByte(const uint8_t Byte) ATTR_ALWAYSINLINE; static inline void Dataflash_SendByte(const uint8_t Byte) ATTR_ALWAYS_INLINE;
static inline void Dataflash_SendByte(const uint8_t Byte) static inline void Dataflash_SendByte(const uint8_t Byte)
{ {
SPI_SendByte(Byte); SPI_SendByte(Byte);
@ -128,7 +128,7 @@
* *
* \return Last response byte from the dataflash * \return Last response byte from the dataflash
*/ */
static inline uint8_t Dataflash_ReceiveByte(void) ATTR_ALWAYSINLINE ATTR_WARN_UNUSED_RESULT; static inline uint8_t Dataflash_ReceiveByte(void) ATTR_ALWAYS_INLINE ATTR_WARN_UNUSED_RESULT;
static inline uint8_t Dataflash_ReceiveByte(void) static inline uint8_t Dataflash_ReceiveByte(void)
{ {
return SPI_ReceiveByte(); return SPI_ReceiveByte();

@ -58,7 +58,7 @@
/** Endpoint data direction mask for Endpoint_ConfigureEndpoint(). This indicates that the endpoint /** Endpoint data direction mask for Endpoint_ConfigureEndpoint(). This indicates that the endpoint
* should be initialized in the OUT direction - i.e. data flows from host to device. * should be initialized in the OUT direction - i.e. data flows from host to device.
*/ */
#define ENDPOINT_DIR_OUT 0 #define ENDPOINT_DIR_OUT (0 << EPDIR)
/** Endpoint data direction mask for Endpoint_ConfigureEndpoint(). This indicates that the endpoint /** Endpoint data direction mask for Endpoint_ConfigureEndpoint(). This indicates that the endpoint
* should be initialized in the IN direction - i.e. data flows from device to host. * should be initialized in the IN direction - i.e. data flows from device to host.
@ -70,7 +70,7 @@
* in slower transfers as only one USB device (the AVR or the host) can access the endpoint's * in slower transfers as only one USB device (the AVR or the host) can access the endpoint's
* bank at the one time. * bank at the one time.
*/ */
#define ENDPOINT_BANK_SINGLE 0 #define ENDPOINT_BANK_SINGLE (0 << EPBK0)
/** Mask for the bank mode selection for the Endpoint_ConfigureEndpoint() macro. This indicates /** Mask for the bank mode selection for the Endpoint_ConfigureEndpoint() macro. This indicates
* that the endpoint should have two banks, which requires more USB FIFO memory but results * that the endpoint should have two banks, which requires more USB FIFO memory but results
@ -128,6 +128,11 @@
* *
* This interrupt will fire if enabled on a CONTROL type endpoint if a new control packet is * This interrupt will fire if enabled on a CONTROL type endpoint if a new control packet is
* received from the host. * received from the host.
*
* \note This interrupt must be enabled and cleared on *each* endpoint which requires it (after the
* endpoint is selected), and will fire the common endpoint interrupt vector.
*
* \see ENDPOINT_PIPE_vect for more information on the common pipe and endpoint interrupt vector.
*/ */
#define ENDPOINT_INT_SETUP UEIENX, (1 << RXSTPE), UEINTX, (1 << RXSTPI) #define ENDPOINT_INT_SETUP UEIENX, (1 << RXSTPE), UEINTX, (1 << RXSTPI)
@ -137,6 +142,11 @@
* This interrupt will fire if enabled on an INTERRUPT type endpoint if a the endpoint interrupt * This interrupt will fire if enabled on an INTERRUPT type endpoint if a the endpoint interrupt
* period has elapsed and the endpoint is ready for a new packet to be written to its FIFO buffer * period has elapsed and the endpoint is ready for a new packet to be written to its FIFO buffer
* (if required). * (if required).
*
* \note This interrupt must be enabled and cleared on *each* endpoint which requires it (after the
* endpoint is selected), and will fire the common endpoint interrupt vector.
*
* \see ENDPOINT_PIPE_vect for more information on the common pipe and endpoint interrupt vector.
*/ */
#define ENDPOINT_INT_IN UEIENX, (1 << TXINE) , UEINTX, (1 << TXINI) #define ENDPOINT_INT_IN UEIENX, (1 << TXINE) , UEINTX, (1 << TXINI)
@ -146,6 +156,11 @@
* This interrupt will fire if enabled on an INTERRUPT type endpoint if a the endpoint interrupt * This interrupt will fire if enabled on an INTERRUPT type endpoint if a the endpoint interrupt
* period has elapsed and the endpoint is ready for a packet from the host to be read from its * period has elapsed and the endpoint is ready for a packet from the host to be read from its
* FIFO buffer (if received). * FIFO buffer (if received).
*
* \note This interrupt must be enabled and cleared on *each* endpoint which requires it (after the
* endpoint is selected), and will fire the common endpoint interrupt vector.
*
* \see ENDPOINT_PIPE_vect for more information on the common pipe and endpoint interrupt vector.
*/ */
#define ENDPOINT_INT_OUT UEIENX, (1 << RXOUTE), UEINTX, (1 << RXOUTI) #define ENDPOINT_INT_OUT UEIENX, (1 << RXOUTE), UEINTX, (1 << RXOUTI)
@ -311,19 +326,21 @@
/* Inline Functions: */ /* Inline Functions: */
/** Reads one byte from the currently selected endpoint's bank, for OUT direction endpoints. */ /** Reads one byte from the currently selected endpoint's bank, for OUT direction endpoints. */
static inline uint8_t Endpoint_Read_Byte(void) ATTR_WARN_UNUSED_RESULT; static inline uint8_t Endpoint_Read_Byte(void) ATTR_WARN_UNUSED_RESULT ATTR_ALWAYS_INLINE;
static inline uint8_t Endpoint_Read_Byte(void) static inline uint8_t Endpoint_Read_Byte(void)
{ {
return UEDATX; return UEDATX;
} }
/** Writes one byte from the currently selected endpoint's bank, for IN direction endpoints. */ /** Writes one byte from the currently selected endpoint's bank, for IN direction endpoints. */
static inline void Endpoint_Write_Byte(const uint8_t Byte) ATTR_ALWAYS_INLINE;
static inline void Endpoint_Write_Byte(const uint8_t Byte) static inline void Endpoint_Write_Byte(const uint8_t Byte)
{ {
UEDATX = Byte; UEDATX = Byte;
} }
/** Discards one byte from the currently selected endpoint's bank, for OUT direction endpoints. */ /** Discards one byte from the currently selected endpoint's bank, for OUT direction endpoints. */
static inline void Endpoint_Discard_Byte(void) ATTR_ALWAYS_INLINE;
static inline void Endpoint_Discard_Byte(void) static inline void Endpoint_Discard_Byte(void)
{ {
uint8_t Dummy; uint8_t Dummy;
@ -334,7 +351,7 @@
/** Reads two bytes from the currently selected endpoint's bank in little endian format, for OUT /** Reads two bytes from the currently selected endpoint's bank in little endian format, for OUT
* direction endpoints. * direction endpoints.
*/ */
static inline uint16_t Endpoint_Read_Word_LE(void) ATTR_WARN_UNUSED_RESULT; static inline uint16_t Endpoint_Read_Word_LE(void) ATTR_WARN_UNUSED_RESULT ATTR_ALWAYS_INLINE;
static inline uint16_t Endpoint_Read_Word_LE(void) static inline uint16_t Endpoint_Read_Word_LE(void)
{ {
uint16_t Data; uint16_t Data;
@ -348,7 +365,7 @@
/** Reads two bytes from the currently selected endpoint's bank in big endian format, for OUT /** Reads two bytes from the currently selected endpoint's bank in big endian format, for OUT
* direction endpoints. * direction endpoints.
*/ */
static inline uint16_t Endpoint_Read_Word_BE(void) ATTR_WARN_UNUSED_RESULT; static inline uint16_t Endpoint_Read_Word_BE(void) ATTR_WARN_UNUSED_RESULT ATTR_ALWAYS_INLINE;
static inline uint16_t Endpoint_Read_Word_BE(void) static inline uint16_t Endpoint_Read_Word_BE(void)
{ {
uint16_t Data; uint16_t Data;
@ -362,6 +379,7 @@
/** Writes two bytes to the currently selected endpoint's bank in little endian format, for IN /** Writes two bytes to the currently selected endpoint's bank in little endian format, for IN
* direction endpoints. * direction endpoints.
*/ */
static inline void Endpoint_Write_Word_LE(const uint16_t Word) ATTR_ALWAYS_INLINE;
static inline void Endpoint_Write_Word_LE(const uint16_t Word) static inline void Endpoint_Write_Word_LE(const uint16_t Word)
{ {
UEDATX = (Word & 0xFF); UEDATX = (Word & 0xFF);
@ -371,6 +389,7 @@
/** Writes two bytes to the currently selected endpoint's bank in big endian format, for IN /** Writes two bytes to the currently selected endpoint's bank in big endian format, for IN
* direction endpoints. * direction endpoints.
*/ */
static inline void Endpoint_Write_Word_BE(const uint16_t Word) ATTR_ALWAYS_INLINE;
static inline void Endpoint_Write_Word_BE(const uint16_t Word) static inline void Endpoint_Write_Word_BE(const uint16_t Word)
{ {
UEDATX = (Word >> 8); UEDATX = (Word >> 8);
@ -378,6 +397,7 @@
} }
/** Discards two bytes from the currently selected endpoint's bank, for OUT direction endpoints. */ /** Discards two bytes from the currently selected endpoint's bank, for OUT direction endpoints. */
static inline void Endpoint_Discard_Word(void) ATTR_ALWAYS_INLINE;
static inline void Endpoint_Discard_Word(void) static inline void Endpoint_Discard_Word(void)
{ {
uint8_t Dummy; uint8_t Dummy;
@ -389,7 +409,7 @@
/** Reads four bytes from the currently selected endpoint's bank in little endian format, for OUT /** Reads four bytes from the currently selected endpoint's bank in little endian format, for OUT
* direction endpoints. * direction endpoints.
*/ */
static inline uint32_t Endpoint_Read_DWord_LE(void) ATTR_WARN_UNUSED_RESULT; static inline uint32_t Endpoint_Read_DWord_LE(void) ATTR_WARN_UNUSED_RESULT ATTR_ALWAYS_INLINE;
static inline uint32_t Endpoint_Read_DWord_LE(void) static inline uint32_t Endpoint_Read_DWord_LE(void)
{ {
union union
@ -409,7 +429,7 @@
/** Reads four bytes from the currently selected endpoint's bank in big endian format, for OUT /** Reads four bytes from the currently selected endpoint's bank in big endian format, for OUT
* direction endpoints. * direction endpoints.
*/ */
static inline uint32_t Endpoint_Read_DWord_BE(void) ATTR_WARN_UNUSED_RESULT; static inline uint32_t Endpoint_Read_DWord_BE(void) ATTR_WARN_UNUSED_RESULT ATTR_ALWAYS_INLINE;
static inline uint32_t Endpoint_Read_DWord_BE(void) static inline uint32_t Endpoint_Read_DWord_BE(void)
{ {
union union
@ -429,22 +449,29 @@
/** Writes four bytes to the currently selected endpoint's bank in little endian format, for IN /** Writes four bytes to the currently selected endpoint's bank in little endian format, for IN
* direction endpoints. * direction endpoints.
*/ */
static inline void Endpoint_Write_DWord_LE(const uint32_t DWord) ATTR_ALWAYS_INLINE;
static inline void Endpoint_Write_DWord_LE(const uint32_t DWord) static inline void Endpoint_Write_DWord_LE(const uint32_t DWord)
{ {
Endpoint_Write_Word_LE(DWord); UEDATX = (DWord & 0xFF);
Endpoint_Write_Word_LE(DWord >> 16); UEDATX = (DWord >> 8);
UEDATX = (DWord >> 16);
UEDATX = (DWord >> 24);
} }
/** Writes four bytes to the currently selected endpoint's bank in big endian format, for IN /** Writes four bytes to the currently selected endpoint's bank in big endian format, for IN
* direction endpoints. * direction endpoints.
*/ */
static inline void Endpoint_Write_DWord_BE(const uint32_t DWord) ATTR_ALWAYS_INLINE;
static inline void Endpoint_Write_DWord_BE(const uint32_t DWord) static inline void Endpoint_Write_DWord_BE(const uint32_t DWord)
{ {
Endpoint_Write_Word_BE(DWord >> 16); UEDATX = (DWord >> 24);
Endpoint_Write_Word_BE(DWord); UEDATX = (DWord >> 16);
UEDATX = (DWord >> 8);
UEDATX = (DWord & 0xFF);
} }
/** Discards four bytes from the currently selected endpoint's bank, for OUT direction endpoints. */ /** Discards four bytes from the currently selected endpoint's bank, for OUT direction endpoints. */
static inline void Endpoint_Discard_DWord(void) ATTR_ALWAYS_INLINE;
static inline void Endpoint_Discard_DWord(void) static inline void Endpoint_Discard_DWord(void)
{ {
uint8_t Dummy; uint8_t Dummy;
@ -810,7 +837,7 @@
bool Endpoint_ConfigureEndpointStatic(const uint8_t Number, const uint8_t UECFG0XData, const uint8_t UECFG1XData); bool Endpoint_ConfigureEndpointStatic(const uint8_t Number, const uint8_t UECFG0XData, const uint8_t UECFG1XData);
/* Inline Functions: */ /* Inline Functions: */
static inline uint8_t Endpoint_BytesToEPSizeMask(const uint16_t Bytes) ATTR_WARN_UNUSED_RESULT ATTR_CONST ATTR_ALWAYSINLINE; static inline uint8_t Endpoint_BytesToEPSizeMask(const uint16_t Bytes) ATTR_WARN_UNUSED_RESULT ATTR_CONST ATTR_ALWAYS_INLINE;
static inline uint8_t Endpoint_BytesToEPSizeMask(const uint16_t Bytes) static inline uint8_t Endpoint_BytesToEPSizeMask(const uint16_t Bytes)
{ {
if (Bytes <= 8) if (Bytes <= 8)

@ -89,7 +89,7 @@
* should have one single bank, which requires less USB FIFO memory but results in slower transfers as * should have one single bank, which requires less USB FIFO memory but results in slower transfers as
* only one USB device (the AVR or the attached device) can access the pipe's bank at the one time. * only one USB device (the AVR or the attached device) can access the pipe's bank at the one time.
*/ */
#define PIPE_BANK_SINGLE 0 #define PIPE_BANK_SINGLE (0 << EPBK0)
/** Mask for the bank mode selection for the Pipe_ConfigurePipe() macro. This indicates that the pipe /** Mask for the bank mode selection for the Pipe_ConfigurePipe() macro. This indicates that the pipe
* should have two banks, which requires more USB FIFO memory but results in faster transfers as one * should have two banks, which requires more USB FIFO memory but results in faster transfers as one
@ -143,8 +143,8 @@
* elapsed and the pipe is ready for the next packet from the attached device to be read out from its * elapsed and the pipe is ready for the next packet from the attached device to be read out from its
* FIFO buffer (if received). * FIFO buffer (if received).
* *
* This interrupt must be enabled on *each* pipe which requires it (after the pipe is selected), and * \note This interrupt must be enabled and cleared on *each* pipe which requires it (after the pipe
* will fire the common pipe interrupt vector. * is selected), and will fire the common pipe interrupt vector.
* *
* \see ENDPOINT_PIPE_vect for more information on the common pipe and endpoint interrupt vector. * \see ENDPOINT_PIPE_vect for more information on the common pipe and endpoint interrupt vector.
*/ */
@ -157,10 +157,11 @@
* has elapsed and the pipe is ready for a packet to be written to the pipe's FIFO buffer and sent * has elapsed and the pipe is ready for a packet to be written to the pipe's FIFO buffer and sent
* to the attached device (if required). * to the attached device (if required).
* *
* This interrupt must be enabled on *each* pipe which requires it (after the pipe is selected), and * \note This interrupt must be enabled and cleared on *each* pipe which requires it (after the pipe
* will fire the common pipe interrupt vector. * is selected), and will fire the common pipe interrupt vector.
* *
* \see ENDPOINT_PIPE_vect for more information on the common pipe and endpoint interrupt vector. */ * \see ENDPOINT_PIPE_vect for more information on the common pipe and endpoint interrupt vector.
*/
#define PIPE_INT_OUT UPIENX, (1 << TXOUTE), UPINTX, (1 << TXOUTI) #define PIPE_INT_OUT UPIENX, (1 << TXOUTE), UPINTX, (1 << TXOUTI)
/** Interrupt definition for the pipe SETUP bank ready interrupt (for CONTROL type pipes). Should be /** Interrupt definition for the pipe SETUP bank ready interrupt (for CONTROL type pipes). Should be
@ -169,8 +170,8 @@
* This interrupt will fire if enabled on an CONTROL type pipe when the pipe is ready for a new * This interrupt will fire if enabled on an CONTROL type pipe when the pipe is ready for a new
* control request. * control request.
* *
* This interrupt must be enabled on *each* pipe which requires it (after the pipe is selected), and * \note This interrupt must be enabled and cleared on *each* pipe which requires it (after the pipe
* will fire the common pipe interrupt vector. * is selected), and will fire the common pipe interrupt vector.
* *
* \see ENDPOINT_PIPE_vect for more information on the common pipe and endpoint interrupt vector. * \see ENDPOINT_PIPE_vect for more information on the common pipe and endpoint interrupt vector.
*/ */
@ -182,8 +183,8 @@
* This interrupt will fire if enabled on a particular pipe if an error occurs on that pipe, such * This interrupt will fire if enabled on a particular pipe if an error occurs on that pipe, such
* as a CRC mismatch error. * as a CRC mismatch error.
* *
* This interrupt must be enabled on *each* pipe which requires it (after the pipe is selected), and * \note This interrupt must be enabled and cleared on *each* pipe which requires it (after the pipe
* will fire the common pipe interrupt vector. * is selected), and will fire the common pipe interrupt vector.
* *
* \see ENDPOINT_PIPE_vect for more information on the common pipe and endpoint interrupt vector. * \see ENDPOINT_PIPE_vect for more information on the common pipe and endpoint interrupt vector.
* *
@ -197,8 +198,8 @@
* This interrupt will fire if enabled on a particular pipe if an attached device returns a NAK in * This interrupt will fire if enabled on a particular pipe if an attached device returns a NAK in
* response to a sent packet. * response to a sent packet.
* *
* This interrupt must be enabled on *each* pipe which requires it (after the pipe is selected), and * \note This interrupt must be enabled and cleared on *each* pipe which requires it (after the pipe
* will fire the common pipe interrupt vector. * is selected), and will fire the common pipe interrupt vector.
* *
* \see ENDPOINT_PIPE_vect for more information on the common pipe and endpoint interrupt vector. * \see ENDPOINT_PIPE_vect for more information on the common pipe and endpoint interrupt vector.
* *
@ -212,8 +213,8 @@
* This interrupt will fire if enabled on a particular pipe if an attached device returns a STALL on the * This interrupt will fire if enabled on a particular pipe if an attached device returns a STALL on the
* currently selected pipe. This will also fire if the pipe is an isochronous pipe and a CRC error occurs. * currently selected pipe. This will also fire if the pipe is an isochronous pipe and a CRC error occurs.
* *
* This interrupt must be enabled on *each* pipe which requires it (after the pipe is selected), and * \note This interrupt must be enabled and cleared on *each* pipe which requires it (after the pipe
* will fire the common pipe interrupt vector. * is selected), and will fire the common pipe interrupt vector.
* *
* \see ENDPOINT_PIPE_vect for more information on the common pipe and endpoint interrupt vector. * \see ENDPOINT_PIPE_vect for more information on the common pipe and endpoint interrupt vector.
*/ */
@ -401,19 +402,21 @@
/* Inline Functions: */ /* Inline Functions: */
/** Reads one byte from the currently selected pipe's bank, for OUT direction pipes. */ /** Reads one byte from the currently selected pipe's bank, for OUT direction pipes. */
static inline uint8_t Pipe_Read_Byte(void) ATTR_WARN_UNUSED_RESULT; static inline uint8_t Pipe_Read_Byte(void) ATTR_WARN_UNUSED_RESULT ATTR_ALWAYS_INLINE;
static inline uint8_t Pipe_Read_Byte(void) static inline uint8_t Pipe_Read_Byte(void)
{ {
return UPDATX; return UPDATX;
} }
/** Writes one byte from the currently selected pipe's bank, for IN direction pipes. */ /** Writes one byte from the currently selected pipe's bank, for IN direction pipes. */
static inline void Pipe_Write_Byte(const uint8_t Byte) ATTR_ALWAYS_INLINE;
static inline void Pipe_Write_Byte(const uint8_t Byte) static inline void Pipe_Write_Byte(const uint8_t Byte)
{ {
UPDATX = Byte; UPDATX = Byte;
} }
/** Discards one byte from the currently selected pipe's bank, for OUT direction pipes. */ /** Discards one byte from the currently selected pipe's bank, for OUT direction pipes. */
static inline void Pipe_Discard_Byte(void) ATTR_ALWAYS_INLINE;
static inline void Pipe_Discard_Byte(void) static inline void Pipe_Discard_Byte(void)
{ {
uint8_t Dummy; uint8_t Dummy;
@ -424,7 +427,7 @@
/** Reads two bytes from the currently selected pipe's bank in little endian format, for OUT /** Reads two bytes from the currently selected pipe's bank in little endian format, for OUT
* direction pipes. * direction pipes.
*/ */
static inline uint16_t Pipe_Read_Word_LE(void) ATTR_WARN_UNUSED_RESULT; static inline uint16_t Pipe_Read_Word_LE(void) ATTR_WARN_UNUSED_RESULT ATTR_ALWAYS_INLINE;
static inline uint16_t Pipe_Read_Word_LE(void) static inline uint16_t Pipe_Read_Word_LE(void)
{ {
uint16_t Data; uint16_t Data;
@ -438,7 +441,7 @@
/** Reads two bytes from the currently selected pipe's bank in big endian format, for OUT /** Reads two bytes from the currently selected pipe's bank in big endian format, for OUT
* direction pipes. * direction pipes.
*/ */
static inline uint16_t Pipe_Read_Word_BE(void) ATTR_WARN_UNUSED_RESULT; static inline uint16_t Pipe_Read_Word_BE(void) ATTR_WARN_UNUSED_RESULT ATTR_ALWAYS_INLINE;
static inline uint16_t Pipe_Read_Word_BE(void) static inline uint16_t Pipe_Read_Word_BE(void)
{ {
uint16_t Data; uint16_t Data;
@ -452,6 +455,7 @@
/** Writes two bytes to the currently selected pipe's bank in little endian format, for IN /** Writes two bytes to the currently selected pipe's bank in little endian format, for IN
* direction pipes. * direction pipes.
*/ */
static inline void Pipe_Write_Word_LE(const uint16_t Word) ATTR_ALWAYS_INLINE;
static inline void Pipe_Write_Word_LE(const uint16_t Word) static inline void Pipe_Write_Word_LE(const uint16_t Word)
{ {
UPDATX = (Word & 0xFF); UPDATX = (Word & 0xFF);
@ -461,6 +465,7 @@
/** Writes two bytes to the currently selected pipe's bank in big endian format, for IN /** Writes two bytes to the currently selected pipe's bank in big endian format, for IN
* direction pipes. * direction pipes.
*/ */
static inline void Pipe_Write_Word_BE(const uint16_t Word) ATTR_ALWAYS_INLINE;
static inline void Pipe_Write_Word_BE(const uint16_t Word) static inline void Pipe_Write_Word_BE(const uint16_t Word)
{ {
UPDATX = (Word >> 8); UPDATX = (Word >> 8);
@ -468,6 +473,7 @@
} }
/** Discards two bytes from the currently selected pipe's bank, for OUT direction pipes. */ /** Discards two bytes from the currently selected pipe's bank, for OUT direction pipes. */
static inline void Pipe_Ignore_Word(void) ATTR_ALWAYS_INLINE;
static inline void Pipe_Ignore_Word(void) static inline void Pipe_Ignore_Word(void)
{ {
uint8_t Dummy; uint8_t Dummy;
@ -479,7 +485,7 @@
/** Reads four bytes from the currently selected pipe's bank in little endian format, for OUT /** Reads four bytes from the currently selected pipe's bank in little endian format, for OUT
* direction pipes. * direction pipes.
*/ */
static inline uint32_t Pipe_Read_DWord_LE(void) ATTR_WARN_UNUSED_RESULT; static inline uint32_t Pipe_Read_DWord_LE(void) ATTR_WARN_UNUSED_RESULT ATTR_ALWAYS_INLINE;
static inline uint32_t Pipe_Read_DWord_LE(void) static inline uint32_t Pipe_Read_DWord_LE(void)
{ {
union union
@ -499,7 +505,7 @@
/** Reads four bytes from the currently selected pipe's bank in big endian format, for OUT /** Reads four bytes from the currently selected pipe's bank in big endian format, for OUT
* direction pipes. * direction pipes.
*/ */
static inline uint32_t Pipe_Read_DWord_BE(void) ATTR_WARN_UNUSED_RESULT; static inline uint32_t Pipe_Read_DWord_BE(void) ATTR_WARN_UNUSED_RESULT ATTR_ALWAYS_INLINE;
static inline uint32_t Pipe_Read_DWord_BE(void) static inline uint32_t Pipe_Read_DWord_BE(void)
{ {
union union
@ -519,6 +525,7 @@
/** Writes four bytes to the currently selected pipe's bank in little endian format, for IN /** Writes four bytes to the currently selected pipe's bank in little endian format, for IN
* direction pipes. * direction pipes.
*/ */
static inline void Pipe_Write_DWord_LE(const uint32_t DWord) ATTR_ALWAYS_INLINE;
static inline void Pipe_Write_DWord_LE(const uint32_t DWord) static inline void Pipe_Write_DWord_LE(const uint32_t DWord)
{ {
Pipe_Write_Word_LE(DWord); Pipe_Write_Word_LE(DWord);
@ -528,6 +535,7 @@
/** Writes four bytes to the currently selected pipe's bank in big endian format, for IN /** Writes four bytes to the currently selected pipe's bank in big endian format, for IN
* direction pipes. * direction pipes.
*/ */
static inline void Pipe_Write_DWord_BE(const uint32_t DWord) ATTR_ALWAYS_INLINE;
static inline void Pipe_Write_DWord_BE(const uint32_t DWord) static inline void Pipe_Write_DWord_BE(const uint32_t DWord)
{ {
Pipe_Write_Word_BE(DWord >> 16); Pipe_Write_Word_BE(DWord >> 16);
@ -535,6 +543,7 @@
} }
/** Discards four bytes from the currently selected pipe's bank, for OUT direction pipes. */ /** Discards four bytes from the currently selected pipe's bank, for OUT direction pipes. */
static inline void Pipe_Ignore_DWord(void) ATTR_ALWAYS_INLINE;
static inline void Pipe_Ignore_DWord(void) static inline void Pipe_Ignore_DWord(void)
{ {
uint8_t Dummy; uint8_t Dummy;
@ -761,7 +770,7 @@
void Pipe_ClearPipes(void); void Pipe_ClearPipes(void);
/* Inline Functions: */ /* Inline Functions: */
static inline uint8_t Pipe_BytesToEPSizeMask(uint16_t Bytes) ATTR_WARN_UNUSED_RESULT ATTR_CONST ATTR_ALWAYSINLINE; static inline uint8_t Pipe_BytesToEPSizeMask(uint16_t Bytes) ATTR_WARN_UNUSED_RESULT ATTR_CONST ATTR_ALWAYS_INLINE;
static inline uint8_t Pipe_BytesToEPSizeMask(uint16_t Bytes) static inline uint8_t Pipe_BytesToEPSizeMask(uint16_t Bytes)
{ {
if (Bytes <= 8) if (Bytes <= 8)

@ -21,6 +21,9 @@
* <b>Library Demos</b> * <b>Library Demos</b>
* - The USBtoSerial demo now discards all data when not connected to a host, rather than buffering it for later transmission. * - The USBtoSerial demo now discards all data when not connected to a host, rather than buffering it for later transmission.
* *
* <b>Non-USB Library Components</b>
* - The ATTR_ALWAYSINLINE function attribute macro has been renamed to ATTR_ALWAYS_INLINE.
*
* \section Sec_Migration090209 Migrating from 081217 to 090209 * \section Sec_Migration090209 Migrating from 081217 to 090209
* *
* <b>Device Mode</b> * <b>Device Mode</b>

@ -175,7 +175,7 @@
* \param DelayCounter Counter which is storing the starting tick count for a given delay. * \param DelayCounter Counter which is storing the starting tick count for a given delay.
*/ */
static inline void Scheduler_ResetDelay(SchedulerDelayCounter_t* const DelayCounter) static inline void Scheduler_ResetDelay(SchedulerDelayCounter_t* const DelayCounter)
ATTR_NON_NULL_PTR_ARG(1); ATTR_NON_NULL_PTR_ARG(1) ATTR_ALWAYS_INLINE;
static inline void Scheduler_ResetDelay(SchedulerDelayCounter_t* const DelayCounter) static inline void Scheduler_ResetDelay(SchedulerDelayCounter_t* const DelayCounter)
{ {
ATOMIC_BLOCK(ATOMIC_RESTORESTATE) ATOMIC_BLOCK(ATOMIC_RESTORESTATE)
@ -229,12 +229,13 @@
#define MAX_DELAYCTR_COUNT 0xFFFF #define MAX_DELAYCTR_COUNT 0xFFFF
/* Inline Functions: */ /* Inline Functions: */
static inline void Scheduler_InitScheduler(const uint8_t TotalTasks) ATTR_ALWAYS_INLINE;
static inline void Scheduler_InitScheduler(const uint8_t TotalTasks) static inline void Scheduler_InitScheduler(const uint8_t TotalTasks)
{ {
Scheduler_TotalTasks = TotalTasks; Scheduler_TotalTasks = TotalTasks;
} }
static inline void Scheduler_GoSchedule(const uint8_t TotalTasks) ATTR_NO_RETURN; static inline void Scheduler_GoSchedule(const uint8_t TotalTasks) ATTR_NO_RETURN ATTR_ALWAYS_INLINE;
static inline void Scheduler_GoSchedule(const uint8_t TotalTasks) static inline void Scheduler_GoSchedule(const uint8_t TotalTasks)
{ {
Scheduler_InitScheduler(TotalTasks); Scheduler_InitScheduler(TotalTasks);

@ -536,10 +536,10 @@ flip-ee: $(TARGET).hex $(TARGET).eep
batchisp -hardware usb -device $(MCU) -operation start reset 0 batchisp -hardware usb -device $(MCU) -operation start reset 0
dfu-ee: $(TARGET).hex $(TARGET).eep dfu-ee: $(TARGET).hex $(TARGET).eep
dfu-programmer $(MCU) erase dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) eeprom --debug 1 $(TARGET).eep
dfu-programmer $(MCU) reset 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
# a breakpoint at main(). # a breakpoint at main().
@ -682,6 +682,7 @@ clean_binary:
clean_list: clean_list:
@echo $(MSG_CLEANING) @echo $(MSG_CLEANING)
$(REMOVE) $(TARGET).eep $(REMOVE) $(TARGET).eep
$(REMOVE) $(TARGET)eep.hex
$(REMOVE) $(TARGET).cof $(REMOVE) $(TARGET).cof
$(REMOVE) $(TARGET).elf $(REMOVE) $(TARGET).elf
$(REMOVE) $(TARGET).map $(REMOVE) $(TARGET).map
@ -716,4 +717,4 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
finish end sizebefore sizeafter gccversion \ finish end sizebefore sizeafter gccversion \
build elf hex eep lss sym coff extcoff \ build elf hex eep lss sym coff extcoff \
clean clean_list clean_binary program debug \ clean clean_list clean_binary program debug \
gdb-config doxygen dfu flip gdb-config doxygen dfu flip flip-ee dfu-ee

@ -544,10 +544,10 @@ flip-ee: $(TARGET).hex $(TARGET).eep
batchisp -hardware usb -device $(MCU) -operation start reset 0 batchisp -hardware usb -device $(MCU) -operation start reset 0
dfu-ee: $(TARGET).hex $(TARGET).eep dfu-ee: $(TARGET).hex $(TARGET).eep
dfu-programmer $(MCU) erase dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) eeprom --debug 1 $(TARGET).eep
dfu-programmer $(MCU) reset 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
# a breakpoint at main(). # a breakpoint at main().
@ -690,6 +690,7 @@ clean_binary:
clean_list: clean_list:
@echo $(MSG_CLEANING) @echo $(MSG_CLEANING)
$(REMOVE) $(TARGET).eep $(REMOVE) $(TARGET).eep
$(REMOVE) $(TARGET)eep.hex
$(REMOVE) $(TARGET).cof $(REMOVE) $(TARGET).cof
$(REMOVE) $(TARGET).elf $(REMOVE) $(TARGET).elf
$(REMOVE) $(TARGET).map $(REMOVE) $(TARGET).map
@ -724,4 +725,4 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
finish end sizebefore sizeafter gccversion \ finish end sizebefore sizeafter gccversion \
build elf hex eep lss sym coff extcoff \ build elf hex eep lss sym coff extcoff \
clean clean_list clean_binary program debug \ clean clean_list clean_binary program debug \
gdb-config doxygen dfu flip gdb-config doxygen dfu flip flip-ee dfu-ee

Loading…
Cancel
Save