projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ensure the DFU bootloader disables and clears the activity LED toggle timer when...
[pub/USBasp.git]
/
Projects
/
MissileLauncher
/
makefile
diff --git
a/Projects/MissileLauncher/makefile
b/Projects/MissileLauncher/makefile
index
e3e550e
..
dff825f
100644
(file)
--- a/
Projects/MissileLauncher/makefile
+++ b/
Projects/MissileLauncher/makefile
@@
-79,8
+79,8
@@
BOARD = USBKEY
# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
# automatically to create a 32-bit value in your source code.
#
# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
# automatically to create a 32-bit value in your source code.
#
-# This will be an integer division of F_
CLOCK
below, as it is sourced by
-# F_
CLOCK
after it has run through any CPU prescalers. Note that this value
+# This will be an integer division of F_
USB
below, as it is sourced by
+# F_
USB
after it has run through any CPU prescalers. Note that this value
# does not *change* the processor frequency - it should merely be updated to
# reflect the processor speed set externally so that the code can use accurate
# software delays.
# does not *change* the processor frequency - it should merely be updated to
# reflect the processor speed set externally so that the code can use accurate
# software delays.
@@
-88,7
+88,7
@@
F_CPU = 8000000
# Input clock frequency.
# Input clock frequency.
-# This will define a symbol, F_
CLOCK
, in all source code files equal to the
+# This will define a symbol, F_
USB
, in all source code files equal to the
# input clock frequency (before any prescaling is performed) in Hz. This value may
# differ from F_CPU if prescaling is used on the latter, and is required as the
# raw input clock is fed directly to the PLL sections of the AVR for high speed
# input clock frequency (before any prescaling is performed) in Hz. This value may
# differ from F_CPU if prescaling is used on the latter, and is required as the
# raw input clock is fed directly to the PLL sections of the AVR for high speed
@@
-98,7
+98,7
@@
F_CPU = 8000000
#
# If no clock division is performed on the input clock inside the AVR (via the
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
#
# If no clock division is performed on the input clock inside the AVR (via the
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
-F_
CLOCK
= $(F_CPU)
+F_
USB
= $(F_CPU)
# Output format. (can be srec, ihex, binary)
# Output format. (can be srec, ihex, binary)
@@
-120,10
+120,7
@@
LUFA_PATH = ../..
# LUFA library compile-time options and predefined tokens
# LUFA library compile-time options and predefined tokens
-LUFA_OPTS = -D USB_HOST_ONLY
-LUFA_OPTS += -D HOST_STATE_AS_GPIOR=0
-LUFA_OPTS += -D ORDERED_EP_CONFIG
-LUFA_OPTS += -D USE_STATIC_OPTIONS="(USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)"
+LUFA_OPTS = -D USE_LUFA_CONFIG_HEADER
# Create the LUFA source path variables by including the LUFA root makefile
# Create the LUFA source path variables by including the LUFA root makefile
@@
-167,7
+164,7
@@
DEBUG = dwarf-2
# Each directory must be seperated by a space.
# Use forward slashes for directory separators.
# For a directory that has spaces, enclose it in quotes.
# Each directory must be seperated by a space.
# Use forward slashes for directory separators.
# For a directory that has spaces, enclose it in quotes.
-EXTRAINCDIRS = $(LUFA_PATH)/
+EXTRAINCDIRS = $(LUFA_PATH)/
Config/
# Compiler flag to set the C Standard level.
# Compiler flag to set the C Standard level.
@@
-180,20
+177,20
@@
CSTANDARD = -std=c99
# Place -D or -U options here for C sources
CDEFS = -DF_CPU=$(F_CPU)UL
# Place -D or -U options here for C sources
CDEFS = -DF_CPU=$(F_CPU)UL
-CDEFS += -DF_
CLOCK=$(F_CLOCK
)UL
+CDEFS += -DF_
USB=$(F_USB
)UL
CDEFS += -DBOARD=BOARD_$(BOARD) -DARCH=ARCH_$(ARCH)
CDEFS += $(LUFA_OPTS)
# Place -D or -U options here for ASM sources
ADEFS = -DF_CPU=$(F_CPU)
CDEFS += -DBOARD=BOARD_$(BOARD) -DARCH=ARCH_$(ARCH)
CDEFS += $(LUFA_OPTS)
# Place -D or -U options here for ASM sources
ADEFS = -DF_CPU=$(F_CPU)
-ADEFS += -DF_
CLOCK=$(F_CLOCK
)UL
+ADEFS += -DF_
USB=$(F_USB
)UL
ADEFS += -DBOARD=BOARD_$(BOARD)
ADEFS += $(LUFA_OPTS)
# Place -D or -U options here for C++ sources
CPPDEFS = -DF_CPU=$(F_CPU)UL
ADEFS += -DBOARD=BOARD_$(BOARD)
ADEFS += $(LUFA_OPTS)
# Place -D or -U options here for C++ sources
CPPDEFS = -DF_CPU=$(F_CPU)UL
-CPPDEFS += -DF_
CLOCK=$(F_CLOCK
)UL
+CPPDEFS += -DF_
USB=$(F_USB
)UL
CPPDEFS += -DBOARD=BOARD_$(BOARD)
CPPDEFS += $(LUFA_OPTS)
#CPPDEFS += -D__STDC_LIMIT_MACROS
CPPDEFS += -DBOARD=BOARD_$(BOARD)
CPPDEFS += $(LUFA_OPTS)
#CPPDEFS += -D__STDC_LIMIT_MACROS
@@
-692,13
+689,24
@@
clean_list :
$(REMOVEDIR) .dep
doxygen:
$(REMOVEDIR) .dep
doxygen:
- @echo Generating Project Documentation...
- @doxygen Doxygen.conf
+ @echo Generating Project Documentation \($(TARGET)\)...
+ @if ( ( cat Doxygen.conf ; echo "HTML_STYLESHEET=$(LUFA_PATH)/LUFA/DoxygenPages/Style/Style.css" ) | doxygen - 2>&1 | grep -v "warning: ignoring unsupported tag" ;); then \
+ exit 1; \
+ fi;
@echo Documentation Generation Complete.
clean_doxygen:
rm -rf Documentation
@echo Documentation Generation Complete.
clean_doxygen:
rm -rf Documentation
+checksource:
+ @for f in $(SRC) $(CPPSRC) $(ASRC); do \
+ if [ -f $$f ]; then \
+ echo "Found Source File: $$f" ; \
+ else \
+ echo "Source File Not Found: $$f" ; \
+ fi; done
+
+
# Create object files directory
$(shell mkdir $(OBJDIR) 2>/dev/null)
# Create object files directory
$(shell mkdir $(OBJDIR) 2>/dev/null)
@@
-711,5
+719,4
@@
$(shell mkdir $(OBJDIR) 2>/dev/null)
.PHONY : all begin finish end sizebefore sizeafter gccversion \
build elf hex eep lss sym coff extcoff doxygen clean \
clean_list clean_doxygen program dfu flip flip-ee dfu-ee \
.PHONY : all begin finish end sizebefore sizeafter gccversion \
build elf hex eep lss sym coff extcoff doxygen clean \
clean_list clean_doxygen program dfu flip flip-ee dfu-ee \
-debug gdb-config
-
+debug gdb-config checksource