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]
/
Demos
/
Device
/
ClassDriver
/
VirtualSerialMassStorage
/
makefile
diff --git
a/Demos/Device/ClassDriver/VirtualSerialMassStorage/makefile
b/Demos/Device/ClassDriver/VirtualSerialMassStorage/makefile
index
658e8db
..
21b1d7f
100644
(file)
--- a/
Demos/Device/ClassDriver/VirtualSerialMassStorage/makefile
+++ b/
Demos/Device/ClassDriver/VirtualSerialMassStorage/makefile
@@
-79,8
+79,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
@@
-88,7
+88,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
@@
-98,7
+98,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
# Output format. (can be srec, ihex, binary)
\r
\r
\r
# Output format. (can be srec, ihex, binary)
\r
@@
-184,20
+184,20
@@
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 += $(LUFA_OPTS)
\r
\r
\r
# Place -D or -U options here for ASM sources
\r
ADEFS = -DF_CPU=$(F_CPU)
\r
CDEFS += -DBOARD=BOARD_$(BOARD) -DARCH=ARCH_$(ARCH)
\r
CDEFS += $(LUFA_OPTS)
\r
\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 += $(LUFA_OPTS)
\r
\r
# Place -D or -U options here for C++ sources
\r
CPPDEFS = -DF_CPU=$(F_CPU)UL
\r
ADEFS += -DBOARD=BOARD_$(BOARD)
\r
ADEFS += $(LUFA_OPTS)
\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 += $(LUFA_OPTS)
\r
#CPPDEFS += -D__STDC_LIMIT_MACROS
\r
CPPDEFS += -DBOARD=BOARD_$(BOARD)
\r
CPPDEFS += $(LUFA_OPTS)
\r
#CPPDEFS += -D__STDC_LIMIT_MACROS
\r
@@
-703,6
+703,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
@@
-715,5
+724,4
@@
$(shell mkdir $(OBJDIR) 2>/dev/null)
.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 dfu flip flip-ee dfu-ee \
\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 dfu flip flip-ee dfu-ee \
\r
-debug gdb-config
\r
-
\r
+debug gdb-config checksource
\r