Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Erik Strand
lufa
Commits
aba7932a
Commit
aba7932a
authored
Mar 21, 2011
by
Dean Camera
Browse files
F_CLOCK changed to F_USB to be more descriptive, and applicable on future architecture ports.
parent
c7f4752d
Changes
77
Show whitespace changes
Inline
Side-by-side
Bootloaders/CDC/makefile
View file @
aba7932a
...
...
@@ -67,8 +67,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.
#
# 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.
...
...
@@ -76,7 +76,7 @@ F_CPU = 8000000
# 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
...
...
@@ -86,7 +86,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.
F_
CLOCK
=
$(F_CPU)
F_
USB
=
$(F_CPU)
# Starting byte address of the bootloader, as a byte address - computed via the formula
...
...
@@ -190,7 +190,7 @@ CSTANDARD = -std=c99
# 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
+=
-DBOOT_START_ADDR
=
$(BOOT_START)
UL
CDEFS
+=
$(LUFA_OPTS)
...
...
@@ -198,7 +198,7 @@ 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
+=
-DBOOT_START_ADDR
=
$(BOOT_START)
UL
ADEFS
+=
$(LUFA_OPTS)
...
...
@@ -206,7 +206,7 @@ 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
+=
-DBOOT_START_ADDR
=
$(BOOT_START)
UL
CPPDEFS
+=
$(LUFA_OPTS)
...
...
Bootloaders/DFU/makefile
View file @
aba7932a
...
...
@@ -67,8 +67,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.
#
# 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.
...
...
@@ -76,7 +76,7 @@ F_CPU = 8000000
# 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
...
...
@@ -86,7 +86,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.
F_
CLOCK
=
$(F_CPU)
F_
USB
=
$(F_CPU)
# Starting byte address of the bootloader, as a byte address - computed via the formula
...
...
@@ -185,7 +185,7 @@ CSTANDARD = -std=c99
# 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
+=
-DBOOT_START_ADDR
=
$(BOOT_START)
UL
CDEFS
+=
$(LUFA_OPTS)
...
...
@@ -193,7 +193,7 @@ 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
+=
-DBOOT_START_ADDR
=
$(BOOT_START)
UL
ADEFS
+=
$(LUFA_OPTS)
...
...
@@ -201,7 +201,7 @@ 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
+=
-DBOOT_START_ADDR
=
$(BOOT_START)
UL
CPPDEFS
+=
$(LUFA_OPTS)
...
...
Bootloaders/HID/makefile
View file @
aba7932a
...
...
@@ -67,8 +67,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.
#
# 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.
...
...
@@ -76,7 +76,7 @@ F_CPU = 8000000
# 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
...
...
@@ -86,7 +86,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.
F_
CLOCK
=
$(F_CPU)
F_
USB
=
$(F_CPU)
# Starting byte address of the bootloader, as a byte address - computed via the formula
...
...
@@ -185,7 +185,7 @@ CSTANDARD = -std=c99
# 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
+=
-DBOOT_START_ADDR
=
$(BOOT_START)
UL
CDEFS
+=
$(LUFA_OPTS)
...
...
@@ -193,7 +193,7 @@ 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
+=
-DBOOT_START_ADDR
=
$(BOOT_START)
UL
ADEFS
+=
$(LUFA_OPTS)
...
...
@@ -201,7 +201,7 @@ 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
+=
-DBOOT_START_ADDR
=
$(BOOT_START)
UL
CPPDEFS
+=
$(LUFA_OPTS)
...
...
Demos/Device/ClassDriver/AudioInput/makefile
View file @
aba7932a
...
...
@@ -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.
#
# 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.
...
...
@@ -88,7 +88,7 @@ F_CPU = 8000000
# 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
...
...
@@ -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.
F_
CLOCK
=
$(F_CPU)
F_
USB
=
$(F_CPU)
# Output format. (can be srec, ihex, binary)
...
...
@@ -185,20 +185,20 @@ CSTANDARD = -std=c99
# 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)
ADEFS
+=
-DF_
CLOCK
=
$(F_CLOCK
)
UL
ADEFS
+=
-DF_
USB
=
$(F_USB
)
UL
ADEFS
+=
-DBOARD
=
BOARD_
$(BOARD)
-DARCH
=
ARCH_
$(ARCH)
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)
-DARCH
=
ARCH_
$(ARCH)
CPPDEFS
+=
$(LUFA_OPTS)
#CPPDEFS += -D__STDC_LIMIT_MACROS
...
...
Demos/Device/ClassDriver/AudioOutput/makefile
View file @
aba7932a
...
...
@@ -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.
#
# 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.
...
...
@@ -88,7 +88,7 @@ F_CPU = 8000000
# 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
...
...
@@ -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.
F_
CLOCK
=
$(F_CPU)
F_
USB
=
$(F_CPU)
# Output format. (can be srec, ihex, binary)
...
...
@@ -186,20 +186,20 @@ CSTANDARD = -std=c99
# 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)
ADEFS
+=
-DF_
CLOCK
=
$(F_CLOCK
)
UL
ADEFS
+=
-DF_
USB
=
$(F_USB
)
UL
ADEFS
+=
-DBOARD
=
BOARD_
$(BOARD)
-DARCH
=
ARCH_
$(ARCH)
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)
-DARCH
=
ARCH_
$(ARCH)
CPPDEFS
+=
$(LUFA_OPTS)
#CPPDEFS += -D__STDC_LIMIT_MACROS
...
...
Demos/Device/ClassDriver/DualVirtualSerial/makefile
View file @
aba7932a
...
...
@@ -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.
#
# 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.
...
...
@@ -88,7 +88,7 @@ F_CPU = 8000000
# 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
...
...
@@ -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.
F_
CLOCK
=
$(F_CPU)
F_
USB
=
$(F_CPU)
# Output format. (can be srec, ihex, binary)
...
...
@@ -182,20 +182,20 @@ CSTANDARD = -std=c99
# 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)
ADEFS
+=
-DF_
CLOCK
=
$(F_CLOCK
)
UL
ADEFS
+=
-DF_
USB
=
$(F_USB
)
UL
ADEFS
+=
-DBOARD
=
BOARD_
$(BOARD)
-DARCH
=
ARCH_
$(ARCH)
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)
-DARCH
=
ARCH_
$(ARCH)
CPPDEFS
+=
$(LUFA_OPTS)
#CPPDEFS += -D__STDC_LIMIT_MACROS
...
...
Demos/Device/ClassDriver/GenericHID/makefile
View file @
aba7932a
...
...
@@ -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.
#
# 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.
...
...
@@ -88,7 +88,7 @@ F_CPU = 8000000
# 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
...
...
@@ -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.
F_
CLOCK
=
$(F_CPU)
F_
USB
=
$(F_CPU)
# Output format. (can be srec, ihex, binary)
...
...
@@ -182,20 +182,20 @@ CSTANDARD = -std=c99
# 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)
ADEFS
+=
-DF_
CLOCK
=
$(F_CLOCK
)
UL
ADEFS
+=
-DF_
USB
=
$(F_USB
)
UL
ADEFS
+=
-DBOARD
=
BOARD_
$(BOARD)
-DARCH
=
ARCH_
$(ARCH)
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)
-DARCH
=
ARCH_
$(ARCH)
CPPDEFS
+=
$(LUFA_OPTS)
#CPPDEFS += -D__STDC_LIMIT_MACROS
...
...
Demos/Device/ClassDriver/Joystick/makefile
View file @
aba7932a
...
...
@@ -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.
#
# 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.
...
...
@@ -88,7 +88,7 @@ F_CPU = 8000000
# 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
...
...
@@ -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.
F_
CLOCK
=
$(F_CPU)
F_
USB
=
$(F_CPU)
# Output format. (can be srec, ihex, binary)
...
...
@@ -182,20 +182,20 @@ CSTANDARD = -std=c99
# 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)
ADEFS
+=
-DF_
CLOCK
=
$(F_CLOCK
)
UL
ADEFS
+=
-DF_
USB
=
$(F_USB
)
UL
ADEFS
+=
-DBOARD
=
BOARD_
$(BOARD)
-DARCH
=
ARCH_
$(ARCH)
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)
-DARCH
=
ARCH_
$(ARCH)
CPPDEFS
+=
$(LUFA_OPTS)
#CPPDEFS += -D__STDC_LIMIT_MACROS
...
...
Demos/Device/ClassDriver/Keyboard/makefile
View file @
aba7932a
...
...
@@ -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.
#
# 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.
...
...
@@ -88,7 +88,7 @@ F_CPU = 8000000
# 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
...
...
@@ -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.
F_
CLOCK
=
$(F_CPU)
F_
USB
=
$(F_CPU)
# Output format. (can be srec, ihex, binary)
...
...
@@ -182,20 +182,20 @@ CSTANDARD = -std=c99
# 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)
ADEFS
+=
-DF_
CLOCK
=
$(F_CLOCK
)
UL
ADEFS
+=
-DF_
USB
=
$(F_USB
)
UL
ADEFS
+=
-DBOARD
=
BOARD_
$(BOARD)
-DARCH
=
ARCH_
$(ARCH)
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)
-DARCH
=
ARCH_
$(ARCH)
CPPDEFS
+=
$(LUFA_OPTS)
#CPPDEFS += -D__STDC_LIMIT_MACROS
...
...
Demos/Device/ClassDriver/KeyboardMouse/makefile
View file @
aba7932a
...
...
@@ -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.
#
# 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.
...
...
@@ -88,7 +88,7 @@ F_CPU = 8000000
# 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
...
...
@@ -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.
F_
CLOCK
=
$(F_CPU)
F_
USB
=
$(F_CPU)
# Output format. (can be srec, ihex, binary)
...
...
@@ -182,20 +182,20 @@ CSTANDARD = -std=c99
# 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)
ADEFS
+=
-DF_
CLOCK
=
$(F_CLOCK
)
UL
ADEFS
+=
-DF_
USB
=
$(F_USB
)
UL
ADEFS
+=
-DBOARD
=
BOARD_
$(BOARD)
-DARCH
=
ARCH_
$(ARCH)
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)
-DARCH
=
ARCH_
$(ARCH)
CPPDEFS
+=
$(LUFA_OPTS)
#CPPDEFS += -D__STDC_LIMIT_MACROS
...
...
Demos/Device/ClassDriver/KeyboardMouseMultiReport/makefile
View file @
aba7932a
...
...
@@ -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.
#
# 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.
...
...
@@ -88,7 +88,7 @@ F_CPU = 8000000
# 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
...
...
@@ -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.
F_
CLOCK
=
$(F_CPU)
F_
USB
=
$(F_CPU)
# Output format. (can be srec, ihex, binary)
...
...
@@ -182,20 +182,20 @@ CSTANDARD = -std=c99
# 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)
ADEFS
+=
-DF_
CLOCK
=
$(F_CLOCK
)
UL
ADEFS
+=
-DF_
USB
=
$(F_USB
)
UL
ADEFS
+=
-DBOARD
=
BOARD_
$(BOARD)
-DARCH
=
ARCH_
$(ARCH)
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)
-DARCH
=
ARCH_
$(ARCH)
CPPDEFS
+=
$(LUFA_OPTS)
#CPPDEFS += -D__STDC_LIMIT_MACROS
...
...
Demos/Device/ClassDriver/MIDI/makefile
View file @
aba7932a
...
...
@@ -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.
#
# 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.
...
...
@@ -88,7 +88,7 @@ F_CPU = 8000000
# 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
...
...
@@ -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.
F_
CLOCK
=
$(F_CPU)
F_
USB
=
$(F_CPU)
# Output format. (can be srec, ihex, binary)
...
...
@@ -182,20 +182,20 @@ CSTANDARD = -std=c99
# 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)
ADEFS
+=
-DF_
CLOCK
=
$(F_CLOCK
)
UL
ADEFS
+=
-DF_
USB
=
$(F_USB
)
UL
ADEFS
+=
-DBOARD
=
BOARD_
$(BOARD)
-DARCH
=
ARCH_
$(ARCH)
ADEFS
+=
$(LUFA_OPTS)