projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update UC3 platform driver support to use the bitmasks defined in the header files...
[pub/USBasp.git]
/
Bootloaders
/
HID
/
makefile
diff --git
a/Bootloaders/HID/makefile
b/Bootloaders/HID/makefile
index
6d8fbf5
..
dede899
100644
(file)
--- a/
Bootloaders/HID/makefile
+++ b/
Bootloaders/HID/makefile
@@
-67,8
+67,8
@@
BOARD = USBKEY
# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
\r
# automatically to create a 32-bit value in your source code.
\r
#
\r
# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
\r
# automatically to create a 32-bit value in your source code.
\r
#
\r
-# This will be an integer division of F_
CLOCK
below, as it is sourced by
\r
-# F_
CLOCK
after it has run through any CPU prescalers. Note that this value
\r
+# This will be an integer division of F_
USB
below, as it is sourced by
\r
+# F_
USB
after it has run through any CPU prescalers. Note that this value
\r
# does not *change* the processor frequency - it should merely be updated to
\r
# reflect the processor speed set externally so that the code can use accurate
\r
# software delays.
\r
# does not *change* the processor frequency - it should merely be updated to
\r
# reflect the processor speed set externally so that the code can use accurate
\r
# software delays.
\r
@@
-76,7
+76,7
@@
F_CPU = 8000000
\r
\r
# Input clock frequency.
\r
\r
\r
# Input clock frequency.
\r
-# This will define a symbol, F_
CLOCK
, in all source code files equal to the
\r
+# This will define a symbol, F_
USB
, in all source code files equal to the
\r
# input clock frequency (before any prescaling is performed) in Hz. This value may
\r
# differ from F_CPU if prescaling is used on the latter, and is required as the
\r
# raw input clock is fed directly to the PLL sections of the AVR for high speed
\r
# input clock frequency (before any prescaling is performed) in Hz. This value may
\r
# differ from F_CPU if prescaling is used on the latter, and is required as the
\r
# raw input clock is fed directly to the PLL sections of the AVR for high speed
\r
@@
-86,7
+86,7
@@
F_CPU = 8000000
#
\r
# If no clock division is performed on the input clock inside the AVR (via the
\r
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
\r
#
\r
# If no clock division is performed on the input clock inside the AVR (via the
\r
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
\r
-F_
CLOCK
= $(F_CPU)
\r
+F_
USB
= $(F_CPU)
\r
\r
\r
# Starting byte address of the bootloader, as a byte address - computed via the formula
\r
\r
\r
# Starting byte address of the bootloader, as a byte address - computed via the formula
\r
@@
-185,7
+185,7
@@
CSTANDARD = -std=c99
\r
# Place -D or -U options here for C sources
\r
CDEFS = -DF_CPU=$(F_CPU)UL
\r
\r
# Place -D or -U options here for C sources
\r
CDEFS = -DF_CPU=$(F_CPU)UL
\r
-CDEFS += -DF_
CLOCK=$(F_CLOCK
)UL
\r
+CDEFS += -DF_
USB=$(F_USB
)UL
\r
CDEFS += -DBOARD=BOARD_$(BOARD) -DARCH=ARCH_$(ARCH)
\r
CDEFS += -DBOOT_START_ADDR=$(BOOT_START)UL
\r
CDEFS += $(LUFA_OPTS)
\r
CDEFS += -DBOARD=BOARD_$(BOARD) -DARCH=ARCH_$(ARCH)
\r
CDEFS += -DBOOT_START_ADDR=$(BOOT_START)UL
\r
CDEFS += $(LUFA_OPTS)
\r
@@
-193,7
+193,7
@@
CDEFS += $(LUFA_OPTS)
\r
# Place -D or -U options here for ASM sources
\r
ADEFS = -DF_CPU=$(F_CPU)
\r
\r
# Place -D or -U options here for ASM sources
\r
ADEFS = -DF_CPU=$(F_CPU)
\r
-ADEFS += -DF_
CLOCK=$(F_CLOCK
)UL
\r
+ADEFS += -DF_
USB=$(F_USB
)UL
\r
ADEFS += -DBOARD=BOARD_$(BOARD)
\r
ADEFS += -DBOOT_START_ADDR=$(BOOT_START)UL
\r
ADEFS += $(LUFA_OPTS)
\r
ADEFS += -DBOARD=BOARD_$(BOARD)
\r
ADEFS += -DBOOT_START_ADDR=$(BOOT_START)UL
\r
ADEFS += $(LUFA_OPTS)
\r
@@
-201,7
+201,7
@@
ADEFS += $(LUFA_OPTS)
\r
# Place -D or -U options here for C++ sources
\r
CPPDEFS = -DF_CPU=$(F_CPU)UL
\r
\r
# Place -D or -U options here for C++ sources
\r
CPPDEFS = -DF_CPU=$(F_CPU)UL
\r
-CPPDEFS += -DF_
CLOCK=$(F_CLOCK
)UL
\r
+CPPDEFS += -DF_
USB=$(F_USB
)UL
\r
CPPDEFS += -DBOARD=BOARD_$(BOARD)
\r
CPPDEFS += -DBOOT_START_ADDR=$(BOOT_START)UL
\r
CPPDEFS += $(LUFA_OPTS)
\r
CPPDEFS += -DBOARD=BOARD_$(BOARD)
\r
CPPDEFS += -DBOOT_START_ADDR=$(BOOT_START)UL
\r
CPPDEFS += $(LUFA_OPTS)
\r
@@
-688,6
+688,15
@@
doxygen:
clean_doxygen:
\r
rm -rf Documentation
\r
\r
clean_doxygen:
\r
rm -rf Documentation
\r
\r
+checksource:
\r
+ @for f in $(SRC) $(CPPSRC) $(ASRC); do \
\r
+ if [ -f $$f ]; then \
\r
+ echo "Found Source File: $$f" ; \
\r
+ else \
\r
+ echo "Source File Not Found: $$f" ; \
\r
+ fi; done
\r
+
\r
+
\r
# Create object files directory
\r
$(shell mkdir $(OBJDIR) 2>/dev/null)
\r
\r
# Create object files directory
\r
$(shell mkdir $(OBJDIR) 2>/dev/null)
\r
\r
@@
-699,5
+708,5
@@
$(shell mkdir $(OBJDIR) 2>/dev/null)
# Listing of phony targets.
\r
.PHONY : all begin finish end sizebefore sizeafter gccversion \
\r
build elf hex eep lss sym coff extcoff doxygen clean \
\r
# Listing of phony targets.
\r
.PHONY : all begin finish end sizebefore sizeafter gccversion \
\r
build elf hex eep lss sym coff extcoff doxygen clean \
\r
-clean_list clean_doxygen program debug gdb-config
\r
+clean_list clean_doxygen program debug gdb-config
checksource
\r
\r
\r