20,7 → 20,7 |
|
ifeq ($(MCU), atmega644) |
FUSE_SETTINGS = -u -U lfuse:w:0xff:m -U hfuse:w:0xdf:m |
#FUSE_SETTINGS = -U lfuse:w:0xff:m -U hfuse:w:0xdf:m |
#FUSE_SETTINGS = -U lfuse:w:0xff:m -U hfuse:w:0xdf:m |
# -u bei neuen Controllern wieder einspielen |
HEX_NAME = MEGA644 |
endif |
102,7 → 102,7 |
|
########################################################################################################## |
# List C source files here. (C dependencies are automatically generated.) |
SRC = main.c uart.c printf_P.c timer0.c analog.c menu.c |
SRC = main.c uart.c printf_P.c timer0.c analog.c menu.c |
SRC += twimaster.c rc.c fc.c GPS.c spi.c led.c Spectrum.c |
SRC += mymath.c |
|
122,7 → 122,7 |
|
# List any extra directories to look for include files here. |
# Each directory must be seperated by a space. |
EXTRAINCDIRS = |
EXTRAINCDIRS = |
|
|
# Optional compiler flags. |
157,7 → 157,7 |
# for use in COFF files, additional information about filenames |
# and function names needs to be present in the assembler source |
# files -- see avr-libc docs [FIXME: not yet described there] |
ASFLAGS = -Wa,-adhlns=$(<:.S=.lst),-gstabs |
ASFLAGS = -Wa,-adhlns=$(<:.S=.lst),-gstabs |
|
|
|
185,7 → 185,7 |
|
# Programming support using avrdude. Settings and variables. |
|
# Programming hardware: alf avr910 avrisp bascom bsd |
# Programming hardware: alf avr910 avrisp bascom bsd |
# dt006 pavr picoweb pony-stk200 sp12 stk200 stk500 |
# |
# Type: avrdude -c ? |
201,7 → 201,7 |
#AVRDUDE_PORT = lpt1 # programmer connected to parallel port |
AVRDUDE_PORT = usb # programmer connected to USB |
|
#AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex |
#AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex |
AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex $(FUSE_SETTINGS) |
#AVRDUDE_WRITE_EEPROM = -U eeprom:w:$(TARGET).eep |
|
218,7 → 218,7 |
AVRDUDE_FLAGS += -V |
|
# Increase verbosity level. Please use this when submitting bug |
# reports about avrdude. See <http://savannah.nongnu.org/projects/avrdude> |
# reports about avrdude. See <http://savannah.nongnu.org/projects/avrdude> |
# to submit bug reports. |
#AVRDUDE_FLAGS += -v -v |
|
254,7 → 254,7 |
MSG_ERRORS_NONE = Errors: none |
MSG_BEGIN = -------- begin -------- |
MSG_END = -------- end -------- |
MSG_SIZE_BEFORE = Size before: |
MSG_SIZE_BEFORE = Size before: |
MSG_SIZE_AFTER = Size after: |
MSG_COFF = Converting to AVR COFF: |
MSG_EXTENDED_COFF = Converting to AVR Extended COFF: |
269,7 → 269,7 |
|
|
# Define all object files. |
OBJ = $(SRC:.c=.o) $(ASRC:.S=.o) |
OBJ = $(SRC:.c=.o) $(ASRC:.S=.o) |
|
# Define all listing files. |
LST = $(ASRC:.S=.lst) $(SRC:.c=.lst) |
310,7 → 310,7 |
|
|
# Display compiler version information. |
gccversion : |
gccversion : |
@$(CC) --version |
|
|
320,7 → 320,7 |
--change-section-address .data-0x800000 \ |
--change-section-address .bss-0x800000 \ |
--change-section-address .noinit-0x800000 \ |
--change-section-address .eeprom-0x810000 |
--change-section-address .eeprom-0x810000 |
|
|
coff: $(TARGET).elf |
337,7 → 337,7 |
|
|
|
# Program the device. |
# Program the device. |
program: $(TARGET).hex $(TARGET).eep |
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM) |
|
366,7 → 366,7 |
%.sym: %.elf |
@echo |
@echo $(MSG_SYMBOL_TABLE) $@ |
avr-nm -n $< > $@ |
# avr-nm -n $< > $@ |
|
|
|
425,8 → 425,8 |
$(REMOVE) $(SRC:.c=.d) |
|
|
# Automatically generate C source code dependencies. |
# (Code originally taken from the GNU make user manual and modified |
# Automatically generate C source code dependencies. |
# (Code originally taken from the GNU make user manual and modified |
# (See README.txt Credits).) |
# |
# Note that this will work with sh (bash) and sed that is shipped with WinAVR |