Commit 6e29655b authored by Dean Camera's avatar Dean Camera

Update SVN line endings property on newer source files to native.

parent 082537f5
# #
# LUFA Library # LUFA Library
# Copyright (C) Dean Camera, 2012. # Copyright (C) Dean Camera, 2012.
# #
# dean [at] fourwalledcubicle [dot] com # dean [at] fourwalledcubicle [dot] com
# www.lufa-lib.org # www.lufa-lib.org
# #
# #
# ============================================================================= # =============================================================================
# Board configuration map script, processed with the "BoardDriverTest" # Board configuration map script, processed with the "BoardDriverTest"
# makefile. This script file maps the possible LUFA target BOARD makefile # makefile. This script file maps the possible LUFA target BOARD makefile
# value in user projects to a specific architecture and device. This mapping is # value in user projects to a specific architecture and device. This mapping is
# then used by the makefile to build all possible drivers for that board, to # then used by the makefile to build all possible drivers for that board, to
# detect any missing or erroneous functions. To add a new board mapping, use # detect any missing or erroneous functions. To add a new board mapping, use
# the syntax: # the syntax:
# #
# BOARD DEFINE = {ARCH} : {MCU} : # BOARD DEFINE = {ARCH} : {MCU} :
# #
# And re-run the makefile. Note that each board may have only one target. # And re-run the makefile. Note that each board may have only one target.
# ============================================================================= # =============================================================================
# #
# #
BOARD_USER = AVR8 : at90usb1287 : BOARD_USER = AVR8 : at90usb1287 :
BOARD_NONE = AVR8 : at90usb1287 : BOARD_NONE = AVR8 : at90usb1287 :
BOARD_USBKEY = AVR8 : at90usb1287 : BOARD_USBKEY = AVR8 : at90usb1287 :
BOARD_STK525 = AVR8 : at90usb647 : BOARD_STK525 = AVR8 : at90usb647 :
BOARD_STK526 = AVR8 : at90usb162 : BOARD_STK526 = AVR8 : at90usb162 :
BOARD_RZUSBSTICK = AVR8 : at90usb1287 : BOARD_RZUSBSTICK = AVR8 : at90usb1287 :
BOARD_ATAVRUSBRF01 = AVR8 : at90usb1287 : BOARD_ATAVRUSBRF01 = AVR8 : at90usb1287 :
BOARD_BUMBLEB = AVR8 : at90usb162 : BOARD_BUMBLEB = AVR8 : at90usb162 :
BOARD_XPLAIN = AVR8 : at90usb1287 : BOARD_XPLAIN = AVR8 : at90usb1287 :
BOARD_XPLAIN_REV1 = AVR8 : at90usb1287 : BOARD_XPLAIN_REV1 = AVR8 : at90usb1287 :
BOARD_EVK527 = AVR8 : atmega32u4 : BOARD_EVK527 = AVR8 : atmega32u4 :
BOARD_TEENSY = AVR8 : at90usb162 : BOARD_TEENSY = AVR8 : at90usb162 :
BOARD_USBTINYMKII = AVR8 : at90usb162 : BOARD_USBTINYMKII = AVR8 : at90usb162 :
BOARD_BENITO = AVR8 : at90usb162 : BOARD_BENITO = AVR8 : at90usb162 :
BOARD_JMDBU2 = AVR8 : atmega32u2 : BOARD_JMDBU2 = AVR8 : atmega32u2 :
BOARD_OLIMEX162 = AVR8 : at90usb162 : BOARD_OLIMEX162 = AVR8 : at90usb162 :
BOARD_UDIP = AVR8 : atmega32u2 : BOARD_UDIP = AVR8 : atmega32u2 :
BOARD_BUI = AVR8 : at90usb646 : BOARD_BUI = AVR8 : at90usb646 :
BOARD_UNO = AVR8 : atmega8u2 : BOARD_UNO = AVR8 : atmega8u2 :
BOARD_CULV3 = AVR8 : atmega32u4 : BOARD_CULV3 = AVR8 : atmega32u4 :
BOARD_BLACKCAT = AVR8 : at90usb162 : BOARD_BLACKCAT = AVR8 : at90usb162 :
BOARD_MAXIMUS = AVR8 : at90usb162 : BOARD_MAXIMUS = AVR8 : at90usb162 :
BOARD_MINIMUS = AVR8 : atmega32u2 : BOARD_MINIMUS = AVR8 : atmega32u2 :
BOARD_ADAFRUITU4 = AVR8 : atmega32u4 : BOARD_ADAFRUITU4 = AVR8 : atmega32u4 :
BOARD_MICROSIN162 = AVR8 : atmega162 : BOARD_MICROSIN162 = AVR8 : atmega162 :
BOARD_USBFOO = AVR8 : atmega162 : BOARD_USBFOO = AVR8 : atmega162 :
BOARD_SPARKFUN8U2 = AVR8 : atmega8u2 : BOARD_SPARKFUN8U2 = AVR8 : atmega8u2 :
BOARD_EVK1101 = UC3 : uc3b0256 : BOARD_EVK1101 = UC3 : uc3b0256 :
BOARD_TUL = AVR8 : atmega32u4 : BOARD_TUL = AVR8 : atmega32u4 :
BOARD_EVK1100 = UC3 : uc3a0512 : BOARD_EVK1100 = UC3 : uc3a0512 :
BOARD_EVK1104 = UC3 : uc3a3256 : BOARD_EVK1104 = UC3 : uc3a3256 :
BOARD_A3BU_XPLAINED = XMEGA : atxmega256a3bu : BOARD_A3BU_XPLAINED = XMEGA : atxmega256a3bu :
BOARD_TEENSY2 = AVR8 : at90usb646 : BOARD_TEENSY2 = AVR8 : at90usb646 :
BOARD_USB2AX = AVR8 : atmega32u4 : BOARD_USB2AX = AVR8 : atmega32u4 :
BOARD_USB2AX_V3 = AVR8 : atmega32u4 : BOARD_USB2AX_V3 = AVR8 : atmega32u4 :
BOARD_MICROPENDOUS_32U2 = AVR8 : atmega32u2 : BOARD_MICROPENDOUS_32U2 = AVR8 : atmega32u2 :
BOARD_MICROPENDOUS_A = AVR8 : at90usb1287 : BOARD_MICROPENDOUS_A = AVR8 : at90usb1287 :
BOARD_MICROPENDOUS_1 = AVR8 : at90usb162 : BOARD_MICROPENDOUS_1 = AVR8 : at90usb162 :
BOARD_MICROPENDOUS_2 = AVR8 : atmega32u4 : BOARD_MICROPENDOUS_2 = AVR8 : atmega32u4 :
BOARD_MICROPENDOUS_3 = AVR8 : at90usb1287 : BOARD_MICROPENDOUS_3 = AVR8 : at90usb1287 :
BOARD_MICROPENDOUS_4 = AVR8 : at90usb1287 : BOARD_MICROPENDOUS_4 = AVR8 : at90usb1287 :
BOARD_MICROPENDOUS_DIP = AVR8 : at90usb1287 : BOARD_MICROPENDOUS_DIP = AVR8 : at90usb1287 :
BOARD_MICROPENDOUS_REV1 = AVR8 : at90usb1287 : BOARD_MICROPENDOUS_REV1 = AVR8 : at90usb1287 :
BOARD_MICROPENDOUS_REV2 = AVR8 : at90usb1287 : BOARD_MICROPENDOUS_REV2 = AVR8 : at90usb1287 :
BOARD_B1_XPLAINED = XMEGA : atxmega128b1 : BOARD_B1_XPLAINED = XMEGA : atxmega128b1 :
BOARD_MULTIO = AVR8 : at90usb162 : BOARD_MULTIO = AVR8 : at90usb162 :
BOARD_BIGMULTIO = AVR8 : atmega32u4 : BOARD_BIGMULTIO = AVR8 : atmega32u4 :
BOARD_DUCE = AVR8 : atmega32u2 : BOARD_DUCE = AVR8 : atmega32u2 :
BOARD_OLIMEX32U4 = AVR8 : atmega32u4 : BOARD_OLIMEX32U4 = AVR8 : atmega32u4 :
BOARD_OLIMEXT32U4 = AVR8 : atmega32u4 : BOARD_OLIMEXT32U4 = AVR8 : atmega32u4 :
# #
\ No newline at end of file
# #
# LUFA Library # LUFA Library
# Copyright (C) Dean Camera, 2012. # Copyright (C) Dean Camera, 2012.
# #
# dean [at] fourwalledcubicle [dot] com # dean [at] fourwalledcubicle [dot] com
# www.lufa-lib.org # www.lufa-lib.org
# #
# Makefile for the board driver build test. This # Makefile for the board driver build test. This
# test attempts to build a dummy project with all # test attempts to build a dummy project with all
# possible board targets using their respective # possible board targets using their respective
# compiler. # compiler.
# Path to the LUFA library core # Path to the LUFA library core
LUFA_PATH = ../../LUFA/ LUFA_PATH = ../../LUFA/
all: begin makeboardlist testboards clean end all: begin makeboardlist testboards clean end
begin: begin:
@echo Executing build test "BoardDriverTest". @echo Executing build test "BoardDriverTest".
@echo @echo
end: end:
@echo Build test "BoardDriverTest" complete. @echo Build test "BoardDriverTest" complete.
@echo @echo
makeboardlist: makeboardlist:
@grep "BOARD_" $(patsubst %/,%,$(LUFA_PATH))/Common/BoardTypes.h | cut -d'#' -f2 | cut -d' ' -f2 | grep "BOARD_" > BoardList.txt @grep "BOARD_" $(patsubst %/,%,$(LUFA_PATH))/Common/BoardTypes.h | cut -d'#' -f2 | cut -d' ' -f2 | grep "BOARD_" > BoardList.txt
testboards: testboards:
@echo "buildtest:" > BuildMakefile @echo "buildtest:" > BuildMakefile
@while read line; \ @while read line; \
do \ do \
build_cfg=`grep "$$line " BoardDeviceMap.cfg | grep -v "#" | cut -d'=' -f2- | sed 's/ //g'`; \ build_cfg=`grep "$$line " BoardDeviceMap.cfg | grep -v "#" | cut -d'=' -f2- | sed 's/ //g'`; \
\ \
build_board=$$line; \ build_board=$$line; \
build_arch=`echo $$build_cfg | cut -d':' -f1`; \ build_arch=`echo $$build_cfg | cut -d':' -f1`; \
build_mcu=`echo $$build_cfg | cut -d':' -f2`; \ build_mcu=`echo $$build_cfg | cut -d':' -f2`; \
\ \
if ( test -z "$$build_cfg" ); then \ if ( test -z "$$build_cfg" ); then \
echo "No matching information set for board $$build_board"; \ echo "No matching information set for board $$build_board"; \
else \ else \
echo "Found board configuration for $$build_board - $$build_arch, $$build_mcu"; \ echo "Found board configuration for $$build_board - $$build_arch, $$build_mcu"; \
\ \
printf "\t@echo Building dummy project for $$build_board...\n" >> BuildMakefile; \ printf "\t@echo Building dummy project for $$build_board...\n" >> BuildMakefile; \
printf "\t$(MAKE) -s -f makefile.test clean elf MCU=%s ARCH=%s BOARD=%s\n\n" $$build_mcu $$build_arch $$build_board >> BuildMakefile; \ printf "\t$(MAKE) -s -f makefile.test clean elf MCU=%s ARCH=%s BOARD=%s\n\n" $$build_mcu $$build_arch $$build_board >> BuildMakefile; \
fi; \ fi; \
done < BoardList.txt done < BoardList.txt
$(MAKE) -f BuildMakefile buildtest $(MAKE) -f BuildMakefile buildtest
clean: clean:
rm -f BuildMakefile rm -f BuildMakefile
rm -f BoardList.txt rm -f BoardList.txt
$(MAKE) -s -f makefile.test clean ARCH=AVR8 MCU=at90usb1287 $(MAKE) -s -f makefile.test clean ARCH=AVR8 MCU=at90usb1287
$(MAKE) -s -f makefile.test clean ARCH=XMEGA MCU=atxmega128a1u $(MAKE) -s -f makefile.test clean ARCH=XMEGA MCU=atxmega128a1u
$(MAKE) -s -f makefile.test clean ARCH=UC3 MCU=uc3a0256 $(MAKE) -s -f makefile.test clean ARCH=UC3 MCU=uc3a0256
%: %:
.PHONY: all begin end makeboardlist testboards clean .PHONY: all begin end makeboardlist testboards clean
# Include LUFA build script makefiles # Include LUFA build script makefiles
include $(LUFA_PATH)/Build/lufa.core.in include $(LUFA_PATH)/Build/lufa.core.in
# #
# LUFA Library # LUFA Library
# Copyright (C) Dean Camera, 2012. # Copyright (C) Dean Camera, 2012.
# #
# dean [at] fourwalledcubicle [dot] com # dean [at] fourwalledcubicle [dot] com
# www.lufa-lib.org # www.lufa-lib.org
# #
# -------------------------------------- # --------------------------------------
# LUFA Project Makefile. # LUFA Project Makefile.
# -------------------------------------- # --------------------------------------
MCU = MCU =
ARCH = ARCH =
BOARD = BOARD =
F_CPU = $(F_USB) F_CPU = $(F_USB)
F_USB = 8000000 F_USB = 8000000
OPTIMIZATION = 1 OPTIMIZATION = 1
TARGET = Test TARGET = Test
SRC = $(TARGET).c SRC = $(TARGET).c
LUFA_PATH = ../../LUFA/ LUFA_PATH = ../../LUFA/
CC_FLAGS = -Werror CC_FLAGS = -Werror
# Include LUFA build script makefiles # Include LUFA build script makefiles
include $(LUFA_PATH)/Build/lufa.build.in include $(LUFA_PATH)/Build/lufa.build.in
\ No newline at end of file
# #
# LUFA Library # LUFA Library
# Copyright (C) Dean Camera, 2012. # Copyright (C) Dean Camera, 2012.
# #
# dean [at] fourwalledcubicle [dot] com # dean [at] fourwalledcubicle [dot] com
# www.lufa-lib.org # www.lufa-lib.org
# #
# #
# ============================================================================= # =============================================================================
# Bootloader configuration map script, processed with the "BootloaderTest" # Bootloader configuration map script, processed with the "BootloaderTest"
# makefile. This script file defines the targets for each LUFA bootloader, # makefile. This script file defines the targets for each LUFA bootloader,
# which are then built as part of the build test to ensure that there are no # which are then built as part of the build test to ensure that there are no
# failures on all standard configurations. To add a new build target for a # failures on all standard configurations. To add a new build target for a
# bootloader to this script, use the format: # bootloader to this script, use the format:
# #
# BOOTLOADER = {ARCH} : {MCU} : {BOARD} : {FLASH SIZE KB} : {BOOT SIZE KB} : # BOOTLOADER = {ARCH} : {MCU} : {BOARD} : {FLASH SIZE KB} : {BOOT SIZE KB} :
# #
# And re-run the makefile. # And re-run the makefile.
# ============================================================================= # =============================================================================
# #
# #
# ------------ CDC Bootloader ------------- # ------------ CDC Bootloader -------------
CDC = AVR8 : at90usb1287 : NONE : 128 : 8 : CDC = AVR8 : at90usb1287 : NONE : 128 : 8 :
CDC = AVR8 : at90usb647 : NONE : 64 : 4 : CDC = AVR8 : at90usb647 : NONE : 64 : 4 :
CDC = AVR8 : at90usb1286 : NONE : 128 : 8 : CDC = AVR8 : at90usb1286 : NONE : 128 : 8 :
CDC = AVR8 : at90usb646 : NONE : 64 : 4 : CDC = AVR8 : at90usb646 : NONE : 64 : 4 :
CDC = AVR8 : atmega32u6 : NONE : 32 : 4 : CDC = AVR8 : atmega32u6 : NONE : 32 : 4 :
CDC = AVR8 : atmega32u4 : NONE : 32 : 4 : CDC = AVR8 : atmega32u4 : NONE : 32 : 4 :
CDC = AVR8 : atmega16u4 : NONE : 16 : 4 : CDC = AVR8 : atmega16u4 : NONE : 16 : 4 :
CDC = AVR8 : atmega32u2 : NONE : 32 : 4 : CDC = AVR8 : atmega32u2 : NONE : 32 : 4 :
CDC = AVR8 : atmega16u2 : NONE : 16 : 4 : CDC = AVR8 : atmega16u2 : NONE : 16 : 4 :
CDC = AVR8 : atmega8u2 : NONE : 8 : 4 : CDC = AVR8 : atmega8u2 : NONE : 8 : 4 :
CDC = AVR8 : at90usb162 : NONE : 16 : 4 : CDC = AVR8 : at90usb162 : NONE : 16 : 4 :
CDC = AVR8 : at90usb82 : NONE : 8 : 4 : CDC = AVR8 : at90usb82 : NONE : 8 : 4 :
# #
# ------------ DFU Bootloader ------------- # ------------ DFU Bootloader -------------
DFU = AVR8 : at90usb1287 : NONE : 128 : 8 : DFU = AVR8 : at90usb1287 : NONE : 128 : 8 :
DFU = AVR8 : at90usb647 : NONE : 64 : 4 : DFU = AVR8 : at90usb647 : NONE : 64 : 4 :
DFU = AVR8 : at90usb1286 : NONE : 128 : 8 : DFU = AVR8 : at90usb1286 : NONE : 128 : 8 :
DFU = AVR8 : at90usb646 : NONE : 64 : 4 : DFU = AVR8 : at90usb646 : NONE : 64 : 4 :
DFU = AVR8 : atmega32u6 : NONE : 32 : 4 : DFU = AVR8 : atmega32u6 : NONE : 32 : 4 :
DFU = AVR8 : atmega32u4 : NONE : 32 : 4 : DFU = AVR8 : atmega32u4 : NONE : 32 : 4 :
DFU = AVR8 : atmega16u4 : NONE : 16 : 4 : DFU = AVR8 : atmega16u4 : NONE : 16 : 4 :
DFU = AVR8 : atmega32u2 : NONE : 32 : 4 : DFU = AVR8 : atmega32u2 : NONE : 32 : 4 :
DFU = AVR8 : atmega16u2 : NONE : 16 : 4 : DFU = AVR8 : atmega16u2 : NONE : 16 : 4 :
DFU = AVR8 : atmega8u2 : NONE : 8 : 4 : DFU = AVR8 : atmega8u2 : NONE : 8 : 4 :
DFU = AVR8 : at90usb162 : NONE : 16 : 4 : DFU = AVR8 : at90usb162 : NONE : 16 : 4 :
DFU = AVR8 : at90usb82 : NONE : 8 : 4 : DFU = AVR8 : at90usb82 : NONE : 8 : 4 :
# #
# ------------ HID Bootloader ------------- # ------------ HID Bootloader -------------
HID = AVR8 : at90usb1287 : NONE : 128 : 4 : HID = AVR8 : at90usb1287 : NONE : 128 : 4 :
HID = AVR8 : at90usb647 : NONE : 64 : 4 : HID = AVR8 : at90usb647 : NONE : 64 : 4 :
HID = AVR8 : at90usb1286 : NONE : 128 : 4 : HID = AVR8 : at90usb1286 : NONE : 128 : 4 :
HID = AVR8 : at90usb646 : NONE : 64 : 4 : HID = AVR8 : at90usb646 : NONE : 64 : 4 :
HID = AVR8 : atmega32u6 : NONE : 32 : 4 : HID = AVR8 : atmega32u6 : NONE : 32 : 4 :
HID = AVR8 : atmega32u4 : NONE : 32 : 4 : HID = AVR8 : atmega32u4 : NONE : 32 : 4 :
HID = AVR8 : atmega16u4 : NONE : 16 : 4 : HID = AVR8 : atmega16u4 : NONE : 16 : 4 :
HID = AVR8 : atmega32u2 : NONE : 32 : 2 : HID = AVR8 : atmega32u2 : NONE : 32 : 2 :
HID = AVR8 : atmega16u2 : NONE : 16 : 2 : HID = AVR8 : atmega16u2 : NONE : 16 : 2 :
HID = AVR8 : atmega8u2 : NONE : 8 : 2 : HID = AVR8 : atmega8u2 : NONE : 8 : 2 :
HID = AVR8 : at90usb162 : NONE : 16 : 2 : HID = AVR8 : at90usb162 : NONE : 16 : 2 :
HID = AVR8 : at90usb82 : NONE : 8 : 2 : HID = AVR8 : at90usb82 : NONE : 8 : 2 :
# #
\ No newline at end of file
# #
# LUFA Library # LUFA Library
# Copyright (C) Dean Camera, 2012. # Copyright (C) Dean Camera, 2012.
# #
# dean [at] fourwalledcubicle [dot] com # dean [at] fourwalledcubicle [dot] com
# www.lufa-lib.org # www.lufa-lib.org
# #
# Makefile for the bootloader build test. This # Makefile for the bootloader build test. This
# test attempts to build all the bootloaders # test attempts to build all the bootloaders
# with all supported device configurations. # with all supported device configurations.
# Path to the LUFA library core # Path to the LUFA library core
LUFA_PATH = ../../LUFA/ LUFA_PATH = ../../LUFA/
all: begin testbootloaders clean end all: begin testbootloaders clean end
begin: begin:
@echo Executing build test "BootloaderTest". @echo Executing build test "BootloaderTest".
@echo @echo
end: end:
@echo Build test "BootloaderTest" complete. @echo Build test "BootloaderTest" complete.
@echo @echo
testbootloaders: testbootloaders:
@echo "buildtest:" > BuildMakefile @echo "buildtest:" > BuildMakefile
@while read line; \ @while read line; \
do \ do \
build_cfg=`echo $$line | grep -v "#" | sed 's/ //g'`; \ build_cfg=`echo $$line | grep -v "#" | sed 's/ //g'`; \
\ \
if ( test -n "$$build_cfg" ); then \ if ( test -n "$$build_cfg" ); then \
build_bootloader=`echo $$build_cfg | cut -d'=' -f1`; \ build_bootloader=`echo $$build_cfg | cut -d'=' -f1`; \
build_cfg=`echo $$build_cfg | cut -d'=' -f2-`; \ build_cfg=`echo $$build_cfg | cut -d'=' -f2-`; \
\ \
build_arch=`echo $$build_cfg | cut -d':' -f1`; \ build_arch=`echo $$build_cfg | cut -d':' -f1`; \
build_mcu=`echo $$build_cfg | cut -d':' -f2`; \ build_mcu=`echo $$build_cfg | cut -d':' -f2`; \
build_board=`echo $$build_cfg | cut -d':' -f3`; \ build_board=`echo $$build_cfg | cut -d':' -f3`; \
build_flashsize=`echo $$build_cfg | cut -d':' -f4`; \ build_flashsize=`echo $$build_cfg | cut -d':' -f4`; \
build_bootsize=`echo $$build_cfg | cut -d':' -f5`; \ build_bootsize=`echo $$build_cfg | cut -d':' -f5`; \
\ \
printf "Found bootloader configuration for bootloader '%s' (FLASH: %3s KB | BOOT: %3s KB | MCU: %12s / %4s)\n" $$build_bootloader $$build_flashsize $$build_bootsize $$build_mcu $$build_arch; \ printf "Found bootloader configuration for bootloader '%s' (FLASH: %3s KB | BOOT: %3s KB | MCU: %12s / %4s)\n" $$build_bootloader $$build_flashsize $$build_bootsize $$build_mcu $$build_arch; \
\ \
printf "\t@echo Building bootloader %s - %s - FLASH: %s KB, BOOT: %s KB\n" $$build_bootloader $$build_mcu $$build_flashsize $$build_bootsize >> BuildMakefile; \ printf "\t@echo Building bootloader %s - %s - FLASH: %s KB, BOOT: %s KB\n" $$build_bootloader $$build_mcu $$build_flashsize $$build_bootsize >> BuildMakefile; \
printf "\t$(MAKE) -s -C $(patsubst %/,%,$(LUFA_PATH))/../Bootloaders/%s/ clean elf ARCH=%s MCU=%s BOARD=%s FLASH_SIZE_KB=%s BOOT_SECTION_SIZE_KB=%s\n\n" $$build_bootloader $$build_arch $$build_mcu $$build_board $$build_flashsize $$build_bootsize >> BuildMakefile; \ printf "\t$(MAKE) -s -C $(patsubst %/,%,$(LUFA_PATH))/../Bootloaders/%s/ clean elf ARCH=%s MCU=%s BOARD=%s FLASH_SIZE_KB=%s BOOT_SECTION_SIZE_KB=%s\n\n" $$build_bootloader $$build_arch $$build_mcu $$build_board $$build_flashsize $$build_bootsize >> BuildMakefile; \
fi; \ fi; \
done < BootloaderDeviceMap.cfg done < BootloaderDeviceMap.cfg
$(MAKE) -f BuildMakefile buildtest $(MAKE) -f BuildMakefile buildtest
clean: clean:
rm -f BuildMakefile rm -f BuildMakefile
%: %:
.PHONY: all begin end testbootloaders clean .PHONY: all begin end testbootloaders clean
# Include LUFA build script makefiles # Include LUFA build script makefiles
include $(LUFA_PATH)/Build/lufa.core.in include $(LUFA_PATH)/Build/lufa.core.in
/* /*
LUFA Library LUFA Library
Copyright (C) Dean Camera, 2012. Copyright (C) Dean Camera, 2012.
dean [at] fourwalledcubicle [dot] com dean [at] fourwalledcubicle [dot] com
www.lufa-lib.org www.lufa-lib.org
*/ */
/* /*
Copyright 2012 Dean Camera (dean [at] fourwalledcubicle [dot] com) Copyright 2012 Dean Camera (dean [at] fourwalledcubicle [dot] com)
Permission to use, copy, modify, distribute, and sell this Permission to use, copy, modify, distribute, and sell this
software and its documentation for any purpose is hereby granted software and its documentation for any purpose is hereby granted
without fee, provided that the above copyright notice appear in without fee, provided that the above copyright notice appear in
all copies and that both that the copyright notice and this all copies and that both that the copyright notice and this
permission notice and warranty disclaimer appear in supporting permission notice and warranty disclaimer appear in supporting
documentation, and that the name of the author not be used in documentation, and that the name of the author not be used in
advertising or publicity pertaining to distribution of the advertising or publicity pertaining to distribution of the
software without specific, written prior permission. software without specific, written prior permission.
The author disclaim all warranties with regard to this The author disclaim all warranties with regard to this
software, including all implied warranties of merchantability software, including all implied warranties of merchantability
and fitness. In no event shall the author be liable for any and fitness. In no event shall the author be liable for any
special, indirect or consequential damages or any damages special, indirect or consequential damages or any damages
whatsoever resulting from loss of use, data or profits, whether whatsoever resulting from loss of use, data or profits, whether
in an action of contract, negligence or other tortious action, in an action of contract, negligence or other tortious action,
arising out of or in connection with the use or performance of arising out of or in connection with the use or performance of
this software. this software.
*/ */
.section .text .section .text
# Mandatory entry point for successful compilation and link # Mandatory entry point for successful compilation and link
.global main .global main
main: main:
# Mandatory callback needed for base compile of the USB driver # Mandatory callback needed for base compile of the USB driver
.global CALLBACK_USB_GetDescriptor .global CALLBACK_USB_GetDescriptor
CALLBACK_USB_GetDescriptor: CALLBACK_USB_GetDescriptor:
/* /*
LUFA Library LUFA Library
Copyright (C) Dean Camera, 2012. Copyright (C) Dean Camera, 2012.
dean [at] fourwalledcubicle [dot] com dean [at] fourwalledcubicle [dot] com
www.lufa-lib.org www.lufa-lib.org
*/ */
/* /*
Copyright 2012 Dean Camera (dean [at] fourwalledcubicle [dot] com) Copyright 2012 Dean Camera (dean [at] fourwalledcubicle [dot] com)
Permission to use, copy, modify, distribute, and sell this Permission to use, copy, modify, distribute, and sell this
software and its documentation for any purpose is hereby granted software and its documentation for any purpose is hereby granted
without fee, provided that the above copyright notice appear in