From d877743108a6c3d93288ea8125ad4054962c14c6 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Mon, 30 Jul 2012 17:17:40 +0000 Subject: [PATCH] Tag the LUFA 120730 release. --- Bootloaders/CDC/BootloaderAPI.c | 2 + Bootloaders/CDC/BootloaderAPITable.S | 72 +- Bootloaders/CDC/BootloaderCDC.c | 23 +- Bootloaders/CDC/BootloaderCDC.h | 2 +- Bootloaders/CDC/Descriptors.c | 26 +- Bootloaders/CDC/Doxygen.conf | 10 +- Bootloaders/CDC/LUFA CDC Bootloader.inf | 84 +- Bootloaders/CDC/makefile | 50 +- Bootloaders/DFU/BootloaderAPI.c | 2 + Bootloaders/DFU/BootloaderAPITable.S | 70 +- Bootloaders/DFU/BootloaderDFU.c | 40 +- Bootloaders/DFU/BootloaderDFU.h | 2 +- Bootloaders/DFU/BootloaderDFU.txt | 3 +- Bootloaders/DFU/Descriptors.c | 26 +- Bootloaders/DFU/Doxygen.conf | 10 +- Bootloaders/DFU/makefile | 50 +- Bootloaders/HID/BootloaderHID.c | 2 +- Bootloaders/HID/BootloaderHID.h | 8 +- Bootloaders/HID/Doxygen.conf | 10 +- Bootloaders/HID/makefile | 41 +- Bootloaders/makefile | 38 +- BuildTests/BoardDriverTest/BoardDeviceMap.cfg | 145 +- BuildTests/BoardDriverTest/makefile | 131 +- BuildTests/BoardDriverTest/makefile.avr8 | 723 ------ BuildTests/BoardDriverTest/makefile.test | 25 + BuildTests/BoardDriverTest/makefile.uc3 | 486 ---- BuildTests/BoardDriverTest/makefile.xmega | 705 ------ .../BootloaderTest/BootloaderDeviceMap.cfg | 184 +- BuildTests/BootloaderTest/makefile | 122 +- BuildTests/ModuleTest/Dummy.S | 82 +- BuildTests/ModuleTest/Modules.h | 114 +- BuildTests/ModuleTest/Test_C.c | 60 +- BuildTests/ModuleTest/Test_CPP.cpp | 60 +- BuildTests/ModuleTest/makefile | 123 +- BuildTests/ModuleTest/makefile.avr8 | 742 ------ BuildTests/ModuleTest/makefile.test | 66 + BuildTests/ModuleTest/makefile.uc3 | 513 ---- BuildTests/ModuleTest/makefile.xmega | 733 ------ BuildTests/SingleUSBModeTest/Dummy.S | 83 +- BuildTests/SingleUSBModeTest/Test.c | 64 +- BuildTests/SingleUSBModeTest/makefile | 101 +- BuildTests/SingleUSBModeTest/makefile.avr8 | 724 ------ BuildTests/SingleUSBModeTest/makefile.test | 67 + BuildTests/SingleUSBModeTest/makefile.uc3 | 487 ---- BuildTests/SingleUSBModeTest/makefile.xmega | 706 ------ BuildTests/StaticAnalysisTest/makefile | 88 +- BuildTests/makefile | 43 +- .../ClassDriver/AudioInput/AudioInput.c | 4 +- .../ClassDriver/AudioInput/Doxygen.conf | 10 +- Demos/Device/ClassDriver/AudioInput/makefile | 17 +- .../ClassDriver/AudioOutput/AudioOutput.c | 4 +- .../ClassDriver/AudioOutput/Doxygen.conf | 10 +- Demos/Device/ClassDriver/AudioOutput/makefile | 17 +- .../DualVirtualSerial/Doxygen.conf | 10 +- .../LUFA DualVirtualSerial.inf | 84 +- .../ClassDriver/DualVirtualSerial/makefile | 17 +- .../ClassDriver/GenericHID/Doxygen.conf | 10 +- Demos/Device/ClassDriver/GenericHID/makefile | 17 +- .../Device/ClassDriver/Joystick/Doxygen.conf | 10 +- Demos/Device/ClassDriver/Joystick/makefile | 17 +- .../Device/ClassDriver/Keyboard/Doxygen.conf | 10 +- Demos/Device/ClassDriver/Keyboard/makefile | 17 +- .../ClassDriver/KeyboardMouse/Doxygen.conf | 10 +- .../Device/ClassDriver/KeyboardMouse/makefile | 17 +- .../KeyboardMouseMultiReport/Doxygen.conf | 10 +- .../KeyboardMouseMultiReport/makefile | 17 +- Demos/Device/ClassDriver/MIDI/Doxygen.conf | 10 +- Demos/Device/ClassDriver/MIDI/makefile | 17 +- .../ClassDriver/MassStorage/Doxygen.conf | 10 +- Demos/Device/ClassDriver/MassStorage/makefile | 17 +- .../MassStorageKeyboard/Doxygen.conf | 10 +- .../ClassDriver/MassStorageKeyboard/makefile | 17 +- Demos/Device/ClassDriver/Mouse/Doxygen.conf | 10 +- Demos/Device/ClassDriver/Mouse/makefile | 17 +- .../ClassDriver/RNDISEthernet/Doxygen.conf | 10 +- .../ClassDriver/RNDISEthernet/Lib/TCP.c | 74 +- .../ClassDriver/RNDISEthernet/Lib/TCP.h | 10 +- .../Device/ClassDriver/RNDISEthernet/makefile | 17 +- .../ClassDriver/VirtualSerial/Doxygen.conf | 10 +- .../VirtualSerial/LUFA VirtualSerial.inf | 84 +- .../Device/ClassDriver/VirtualSerial/makefile | 17 +- .../VirtualSerialMassStorage/Doxygen.conf | 10 +- .../LUFA VirtualSerialMassStorage.inf | 84 +- .../VirtualSerialMassStorage/makefile | 17 +- .../VirtualSerialMouse/Doxygen.conf | 10 +- .../LUFA VirtualSerialMouse.inf | 84 +- .../ClassDriver/VirtualSerialMouse/makefile | 17 +- Demos/Device/ClassDriver/makefile | 65 +- Demos/Device/Incomplete/Sideshow/makefile | 20 +- .../TestAndMeasurement/Descriptors.h | 166 +- .../TestAndMeasurement/TestAndMeasurement.c | 8 +- .../TestAndMeasurement/TestAndMeasurement.h | 296 +-- .../Incomplete/TestAndMeasurement/makefile | 19 +- Demos/Device/LowLevel/AudioInput/Doxygen.conf | 10 +- Demos/Device/LowLevel/AudioInput/makefile | 17 +- .../Device/LowLevel/AudioOutput/Doxygen.conf | 10 +- Demos/Device/LowLevel/AudioOutput/makefile | 17 +- .../LowLevel/DualVirtualSerial/Doxygen.conf | 10 +- .../LUFA DualVirtualSerial.inf | 84 +- .../LowLevel/DualVirtualSerial/makefile | 17 +- Demos/Device/LowLevel/GenericHID/Doxygen.conf | 10 +- Demos/Device/LowLevel/GenericHID/makefile | 17 +- Demos/Device/LowLevel/Joystick/Doxygen.conf | 10 +- Demos/Device/LowLevel/Joystick/makefile | 17 +- Demos/Device/LowLevel/Keyboard/Doxygen.conf | 10 +- Demos/Device/LowLevel/Keyboard/makefile | 17 +- .../LowLevel/KeyboardMouse/Descriptors.h | 1 - .../LowLevel/KeyboardMouse/Doxygen.conf | 10 +- .../LowLevel/KeyboardMouse/KeyboardMouse.c | 2 +- Demos/Device/LowLevel/KeyboardMouse/makefile | 17 +- Demos/Device/LowLevel/MIDI/Doxygen.conf | 10 +- Demos/Device/LowLevel/MIDI/makefile | 17 +- .../Device/LowLevel/MassStorage/Doxygen.conf | 10 +- Demos/Device/LowLevel/MassStorage/makefile | 17 +- Demos/Device/LowLevel/Mouse/Doxygen.conf | 10 +- Demos/Device/LowLevel/Mouse/makefile | 17 +- .../LowLevel/RNDISEthernet/Doxygen.conf | 10 +- Demos/Device/LowLevel/RNDISEthernet/Lib/TCP.c | 72 +- Demos/Device/LowLevel/RNDISEthernet/Lib/TCP.h | 10 +- Demos/Device/LowLevel/RNDISEthernet/makefile | 17 +- .../LowLevel/VirtualSerial/Doxygen.conf | 10 +- .../VirtualSerial/LUFA VirtualSerial.inf | 84 +- Demos/Device/LowLevel/VirtualSerial/makefile | 17 +- Demos/Device/LowLevel/makefile | 57 +- .../ClassDriver/MouseHostDevice/Doxygen.conf | 10 +- .../ClassDriver/MouseHostDevice/makefile | 17 +- Demos/DualRole/ClassDriver/makefile | 33 +- Demos/DualRole/makefile | 2 +- .../AndroidAccessoryHost.c | 462 ++-- .../AndroidAccessoryHost.h | 154 +- .../AndroidAccessoryHost/Doxygen.conf | 10 +- .../ClassDriver/AndroidAccessoryHost/makefile | 17 +- .../ClassDriver/AudioInputHost/Doxygen.conf | 10 +- .../Host/ClassDriver/AudioInputHost/makefile | 17 +- .../ClassDriver/AudioOutputHost/Doxygen.conf | 10 +- .../Host/ClassDriver/AudioOutputHost/makefile | 17 +- .../JoystickHostWithParser/Doxygen.conf | 10 +- .../JoystickHostWithParser/makefile | 17 +- .../ClassDriver/KeyboardHost/Doxygen.conf | 10 +- Demos/Host/ClassDriver/KeyboardHost/makefile | 17 +- .../KeyboardHostWithParser/Doxygen.conf | 10 +- .../KeyboardHostWithParser/makefile | 17 +- Demos/Host/ClassDriver/MIDIHost/Doxygen.conf | 10 +- Demos/Host/ClassDriver/MIDIHost/MIDIHost.c | 2 +- Demos/Host/ClassDriver/MIDIHost/makefile | 17 +- .../ClassDriver/MassStorageHost/Doxygen.conf | 10 +- .../Host/ClassDriver/MassStorageHost/makefile | 17 +- Demos/Host/ClassDriver/MouseHost/Doxygen.conf | 10 +- Demos/Host/ClassDriver/MouseHost/makefile | 17 +- .../MouseHostWithParser/Doxygen.conf | 10 +- .../ClassDriver/MouseHostWithParser/makefile | 17 +- .../Host/ClassDriver/PrinterHost/Doxygen.conf | 10 +- Demos/Host/ClassDriver/PrinterHost/makefile | 17 +- .../RNDISEthernetHost/Doxygen.conf | 10 +- .../ClassDriver/RNDISEthernetHost/makefile | 17 +- .../ClassDriver/StillImageHost/Doxygen.conf | 10 +- .../Host/ClassDriver/StillImageHost/makefile | 17 +- .../VirtualSerialHost/Doxygen.conf | 10 +- .../ClassDriver/VirtualSerialHost/makefile | 17 +- Demos/Host/ClassDriver/makefile | 61 +- .../AndroidAccessoryHost/Doxygen.conf | 10 +- .../LowLevel/AndroidAccessoryHost/makefile | 17 +- .../Host/LowLevel/AudioInputHost/Doxygen.conf | 10 +- Demos/Host/LowLevel/AudioInputHost/makefile | 17 +- .../LowLevel/AudioOutputHost/Doxygen.conf | 10 +- Demos/Host/LowLevel/AudioOutputHost/makefile | 17 +- .../Host/LowLevel/GenericHIDHost/Doxygen.conf | 10 +- Demos/Host/LowLevel/GenericHIDHost/makefile | 17 +- .../JoystickHostWithParser/Doxygen.conf | 10 +- .../LowLevel/JoystickHostWithParser/makefile | 17 +- Demos/Host/LowLevel/KeyboardHost/Doxygen.conf | 10 +- Demos/Host/LowLevel/KeyboardHost/makefile | 17 +- .../KeyboardHostWithParser/Doxygen.conf | 10 +- .../LowLevel/KeyboardHostWithParser/makefile | 17 +- Demos/Host/LowLevel/MIDIHost/Doxygen.conf | 10 +- Demos/Host/LowLevel/MIDIHost/makefile | 17 +- .../LowLevel/MassStorageHost/Doxygen.conf | 10 +- .../MassStorageHost/Lib/MassStoreCommands.c | 2 +- Demos/Host/LowLevel/MassStorageHost/makefile | 17 +- Demos/Host/LowLevel/MouseHost/Doxygen.conf | 10 +- Demos/Host/LowLevel/MouseHost/makefile | 17 +- .../LowLevel/MouseHostWithParser/Doxygen.conf | 10 +- .../LowLevel/MouseHostWithParser/makefile | 17 +- Demos/Host/LowLevel/PrinterHost/Doxygen.conf | 10 +- .../Host/LowLevel/PrinterHost/PrinterHost.txt | 3 + Demos/Host/LowLevel/PrinterHost/makefile | 17 +- .../LowLevel/RNDISEthernetHost/Doxygen.conf | 10 +- .../Host/LowLevel/RNDISEthernetHost/makefile | 17 +- .../Host/LowLevel/StillImageHost/Doxygen.conf | 10 +- Demos/Host/LowLevel/StillImageHost/makefile | 17 +- .../LowLevel/VirtualSerialHost/Doxygen.conf | 10 +- .../Host/LowLevel/VirtualSerialHost/makefile | 17 +- Demos/Host/LowLevel/makefile | 62 +- LUFA.pnproj | 2 +- .../HID_EEPROM_Loader/HID_EEPROM_Loader.c | 61 + LUFA/Build/HID_EEPROM_Loader/makefile | 40 + LUFA/Build/lufa.avrdude.in | 54 - LUFA/Build/lufa.build.in | 182 -- LUFA/Build/lufa.core.in | 73 - LUFA/Build/lufa.doxygen.in | 52 - LUFA/Build/lufa.sources.in | 86 - LUFA/Build/lufa_atprogram.mk | 101 + LUFA/Build/lufa_avrdude.mk | 84 + LUFA/Build/lufa_build.mk | 296 +++ LUFA/Build/lufa_core.mk | 152 ++ LUFA/Build/lufa_cppcheck.mk | 104 + LUFA/Build/{lufa.dfu.in => lufa_dfu.mk} | 164 +- LUFA/Build/lufa_doxygen.mk | 81 + LUFA/Build/lufa_hid.mk | 88 + LUFA/Build/lufa_sources.mk | 116 + LUFA/CodeTemplates/LUFAConfig.h | 1 + LUFA/CodeTemplates/makefile_template | 69 +- LUFA/CodeTemplates/makefile_template.avr8 | 715 ------ LUFA/CodeTemplates/makefile_template.uc3 | 489 ---- LUFA/CodeTemplates/makefile_template.xmega | 707 ------ LUFA/Common/ArchitectureSpecific.h | 20 +- LUFA/Common/Attributes.h | 2 +- LUFA/Common/BoardTypes.h | 3 + LUFA/Common/Common.h | 3 +- LUFA/Doxygen.conf | 13 +- LUFA/DoxygenPages/BuildSystem.txt | 846 +++++++ LUFA/DoxygenPages/ChangeLog.txt | 11 +- LUFA/DoxygenPages/CompileTimeTokens.txt | 4 + LUFA/DoxygenPages/CompilingApps.txt | 4 +- LUFA/DoxygenPages/ConfiguringApps.txt | 77 +- LUFA/DoxygenPages/DevelopingWithLUFA.txt | 1 + LUFA/DoxygenPages/DeviceSupport.txt | 7 +- LUFA/DoxygenPages/ExportingLibrary.txt | 212 +- LUFA/DoxygenPages/FutureChanges.txt | 2 - LUFA/DoxygenPages/Groups.txt | 5 - LUFA/DoxygenPages/KnownIssues.txt | 84 +- LUFA/DoxygenPages/LUFAPoweredProjects.txt | 7 + LUFA/DoxygenPages/MigrationInformation.txt | 5 +- LUFA/DoxygenPages/ProgrammingApps.txt | 9 +- LUFA/DoxygenPages/Style/Style.css | 2245 +++++++++-------- LUFA/Drivers/Board/AVR8/BIGMULTIO/LEDs.h | 322 +-- .../Drivers/Board/AVR8/MICROPENDOUS/Buttons.h | 414 +-- LUFA/Drivers/Board/AVR8/MICROPENDOUS/LEDs.h | 4 +- LUFA/Drivers/Board/AVR8/MULTIO/LEDs.h | 322 +-- LUFA/Drivers/Board/AVR8/OLIMEX32U4/LEDs.h | 6 +- .../Drivers/Board/AVR8/OLIMEXISPMK2/Buttons.h | 103 + LUFA/Drivers/Board/AVR8/OLIMEXISPMK2/LEDs.h | 143 ++ LUFA/Drivers/Board/AVR8/OLIMEXT32U4/LEDs.h | 6 +- LUFA/Drivers/Board/AVR8/USB2AX/Buttons.h | 224 +- LUFA/Drivers/Board/AVR8/USB2AX/LEDs.h | 390 +-- LUFA/Drivers/Board/Buttons.h | 4 +- LUFA/Drivers/Board/Joystick.h | 2 +- LUFA/Drivers/Board/LEDs.h | 6 +- LUFA/Drivers/Board/UC3/EVK1101/Buttons.h | 2 +- LUFA/Drivers/Peripheral/AVR8/ADC_AVR8.h | 2 +- .../Drivers/USB/Class/AndroidAccessoryClass.h | 150 +- .../Common/AndroidAccessoryClassCommon.h | 254 +- .../USB/Class/Device/AudioClassDevice.h | 4 +- .../Drivers/USB/Class/Device/CDCClassDevice.h | 4 +- .../USB/Class/Device/MIDIClassDevice.h | 2 +- .../Class/Host/AndroidAccessoryClassHost.c | 842 +++---- .../Class/Host/AndroidAccessoryClassHost.h | 626 ++--- LUFA/Drivers/USB/Class/Host/CDCClassHost.h | 4 +- LUFA/Drivers/USB/Class/Host/HIDClassHost.h | 2 +- LUFA/Drivers/USB/Class/Host/MIDIClassHost.h | 2 +- LUFA/Drivers/USB/Class/Host/RNDISClassHost.c | 4 +- .../USB/Core/AVR8/EndpointStream_AVR8.c | 546 ++-- .../USB/Core/AVR8/EndpointStream_AVR8.h | 1294 +++++----- LUFA/Drivers/USB/Core/AVR8/Endpoint_AVR8.h | 7 +- LUFA/Drivers/USB/Core/AVR8/PipeStream_AVR8.c | 442 ++-- LUFA/Drivers/USB/Core/AVR8/PipeStream_AVR8.h | 882 +++---- LUFA/Drivers/USB/Core/AVR8/Pipe_AVR8.c | 3 + .../USB/Core/AVR8/USBController_AVR8.h | 2 +- ...ConfigDescriptor.c => ConfigDescriptors.c} | 2 +- ...ConfigDescriptor.h => ConfigDescriptors.h} | 2 +- LUFA/Drivers/USB/Core/Events.h | 4 +- LUFA/Drivers/USB/Core/HostStandardReq.h | 2 +- LUFA/Drivers/USB/Core/StdDescriptors.h | 2 +- .../Drivers/USB/Core/UC3/EndpointStream_UC3.c | 466 ++-- .../Drivers/USB/Core/UC3/EndpointStream_UC3.h | 866 +++---- LUFA/Drivers/USB/Core/UC3/Endpoint_UC3.c | 2 +- LUFA/Drivers/USB/Core/UC3/Endpoint_UC3.h | 13 +- LUFA/Drivers/USB/Core/UC3/PipeStream_UC3.c | 332 +-- LUFA/Drivers/USB/Core/UC3/PipeStream_UC3.h | 702 +++--- LUFA/Drivers/USB/Core/UC3/Pipe_UC3.c | 7 +- LUFA/Drivers/USB/Core/UC3/Pipe_UC3.h | 2 +- LUFA/Drivers/USB/Core/UC3/USBController_UC3.c | 2 +- LUFA/Drivers/USB/Core/UC3/USBController_UC3.h | 12 +- LUFA/Drivers/USB/Core/USBMode.h | 5 + .../USB/Core/XMEGA/EndpointStream_XMEGA.c | 546 ++-- .../USB/Core/XMEGA/EndpointStream_XMEGA.h | 1294 +++++----- LUFA/Drivers/USB/Core/XMEGA/Endpoint_XMEGA.h | 14 +- .../USB/Core/XMEGA/USBController_XMEGA.c | 2 +- .../USB/Core/XMEGA/USBController_XMEGA.h | 2 +- LUFA/Drivers/USB/USB.h | 4 +- LUFA/License.txt | 7 + LUFA/Platform/Platform.h | 80 + LUFA/Platform/UC3/ClockManagement.h | 41 +- LUFA/Platform/UC3/InterruptManagement.h | 16 +- LUFA/Platform/XMEGA/ClockManagement.h | 8 +- LUFA/Version.h | 4 +- LUFA/makefile | 32 +- Maintenance/AS4Template.aps | 2 +- Maintenance/makefile | 219 +- Projects/AVRISP-MKII/AVRISPDescriptors.c | 8 +- Projects/AVRISP-MKII/AVRISPDescriptors.h | 2 + Projects/AVRISP-MKII/Doxygen.conf | 10 +- Projects/AVRISP-MKII/Lib/ISP/ISPTarget.c | 2 +- Projects/AVRISP-MKII/makefile | 17 +- Projects/Benito/Benito Programmer.inf | 84 +- Projects/Benito/Doxygen.conf | 10 +- Projects/Benito/makefile | 17 +- Projects/HIDReportViewer/Doxygen.conf | 10 +- Projects/HIDReportViewer/makefile | 17 +- Projects/LEDNotifier/Doxygen.conf | 10 +- Projects/LEDNotifier/LUFA LED Notifier.inf | 84 +- Projects/LEDNotifier/makefile | 17 +- Projects/MIDIToneGenerator/Doxygen.conf | 10 +- Projects/MIDIToneGenerator/makefile | 17 +- Projects/Magstripe/Doxygen.conf | 10 +- Projects/Magstripe/Lib/CircularBitBuffer.h | 2 +- Projects/Magstripe/Lib/MagstripeHW.h | 2 +- Projects/Magstripe/makefile | 17 +- Projects/MediaController/Doxygen.conf | 10 +- Projects/MediaController/makefile | 17 +- Projects/MissileLauncher/Doxygen.conf | 10 +- Projects/MissileLauncher/makefile | 17 +- Projects/RelayBoard/Doxygen.conf | 10 +- Projects/RelayBoard/makefile | 17 +- Projects/SerialToLCD/Doxygen.conf | 10 +- Projects/SerialToLCD/Lib/HD44780.c | 2 +- Projects/SerialToLCD/Lib/HD44780.h | 2 +- Projects/SerialToLCD/SerialToLCD.c | 2 +- Projects/SerialToLCD/SerialToLCD.txt | 194 +- Projects/SerialToLCD/makefile | 70 +- Projects/TempDataLogger/Doxygen.conf | 10 +- .../TempDataLogger/Lib/DataflashManager.h | 2 +- Projects/TempDataLogger/TempDataLogger.c | 2 +- .../DataLoggerSettings.Designer.cs | 2 +- .../TempLogHostApp/DataLoggerSettings.cs | 4 +- .../TempLogHostApp/Properties/AssemblyInfo.cs | 2 +- .../TempDataLogger/TempLogHostApp/README.txt | 2 + Projects/TempDataLogger/makefile | 17 +- Projects/USBtoSerial/Doxygen.conf | 10 +- Projects/USBtoSerial/LUFA USBtoSerial.inf | 84 +- Projects/USBtoSerial/makefile | 17 +- Projects/Webserver/Doxygen.conf | 10 +- Projects/Webserver/Lib/DataflashManager.h | 2 +- Projects/Webserver/Lib/uip/uip.c | 4 +- Projects/Webserver/makefile | 17 +- Projects/XPLAINBridge/Doxygen.conf | 10 +- Projects/XPLAINBridge/LUFA XPLAIN Bridge.inf | 84 +- Projects/XPLAINBridge/makefile | 28 +- Projects/makefile | 62 +- README.txt | 3 + makefile | 15 +- 351 files changed, 12981 insertions(+), 18709 deletions(-) delete mode 100644 BuildTests/BoardDriverTest/makefile.avr8 create mode 100644 BuildTests/BoardDriverTest/makefile.test delete mode 100644 BuildTests/BoardDriverTest/makefile.uc3 delete mode 100644 BuildTests/BoardDriverTest/makefile.xmega delete mode 100644 BuildTests/ModuleTest/makefile.avr8 create mode 100644 BuildTests/ModuleTest/makefile.test delete mode 100644 BuildTests/ModuleTest/makefile.uc3 delete mode 100644 BuildTests/ModuleTest/makefile.xmega delete mode 100644 BuildTests/SingleUSBModeTest/makefile.avr8 create mode 100644 BuildTests/SingleUSBModeTest/makefile.test delete mode 100644 BuildTests/SingleUSBModeTest/makefile.uc3 delete mode 100644 BuildTests/SingleUSBModeTest/makefile.xmega create mode 100644 LUFA/Build/HID_EEPROM_Loader/HID_EEPROM_Loader.c create mode 100644 LUFA/Build/HID_EEPROM_Loader/makefile delete mode 100644 LUFA/Build/lufa.avrdude.in delete mode 100644 LUFA/Build/lufa.build.in delete mode 100644 LUFA/Build/lufa.core.in delete mode 100644 LUFA/Build/lufa.doxygen.in delete mode 100644 LUFA/Build/lufa.sources.in create mode 100644 LUFA/Build/lufa_atprogram.mk create mode 100644 LUFA/Build/lufa_avrdude.mk create mode 100644 LUFA/Build/lufa_build.mk create mode 100644 LUFA/Build/lufa_core.mk create mode 100644 LUFA/Build/lufa_cppcheck.mk rename LUFA/Build/{lufa.dfu.in => lufa_dfu.mk} (52%) create mode 100644 LUFA/Build/lufa_doxygen.mk create mode 100644 LUFA/Build/lufa_hid.mk create mode 100644 LUFA/Build/lufa_sources.mk delete mode 100644 LUFA/CodeTemplates/makefile_template.avr8 delete mode 100644 LUFA/CodeTemplates/makefile_template.uc3 delete mode 100644 LUFA/CodeTemplates/makefile_template.xmega create mode 100644 LUFA/DoxygenPages/BuildSystem.txt create mode 100644 LUFA/Drivers/Board/AVR8/OLIMEXISPMK2/Buttons.h create mode 100644 LUFA/Drivers/Board/AVR8/OLIMEXISPMK2/LEDs.h rename LUFA/Drivers/USB/Core/{ConfigDescriptor.c => ConfigDescriptors.c} (99%) rename LUFA/Drivers/USB/Core/{ConfigDescriptor.h => ConfigDescriptors.h} (99%) create mode 100644 LUFA/Platform/Platform.h diff --git a/Bootloaders/CDC/BootloaderAPI.c b/Bootloaders/CDC/BootloaderAPI.c index 60b2d94b2..bac078f50 100644 --- a/Bootloaders/CDC/BootloaderAPI.c +++ b/Bootloaders/CDC/BootloaderAPI.c @@ -38,12 +38,14 @@ void BootloaderAPI_ErasePage(const uint32_t Address) { boot_page_erase_safe(Address); + boot_spm_busy_wait(); boot_rww_enable(); } void BootloaderAPI_WritePage(const uint32_t Address) { boot_page_write_safe(Address); + boot_spm_busy_wait(); boot_rww_enable(); } diff --git a/Bootloaders/CDC/BootloaderAPITable.S b/Bootloaders/CDC/BootloaderAPITable.S index a8e38861d..060a7abea 100644 --- a/Bootloaders/CDC/BootloaderAPITable.S +++ b/Bootloaders/CDC/BootloaderAPITable.S @@ -1,6 +1,6 @@ /* LUFA Library - Copyright (C) Dean Camera, 2011. + Copyright (C) Dean Camera, 2012. dean [at] fourwalledcubicle [dot] com www.lufa-lib.org @@ -28,41 +28,44 @@ this software. */ -; Bootloader API Jump Table -.section .apitable, "ax" - ; Trampolines to actual API implementations if the target address is outside the ; range of a rjmp instruction (can happen with large bootloader sections) -.org 0 -BootloaderAPI_ErasePage_Trampoline: - jmp BootloaderAPI_ErasePage -BootloaderAPI_WritePage_Trampoline: - jmp BootloaderAPI_WritePage -BootloaderAPI_FillWord_Trampoline: - jmp BootloaderAPI_FillWord -BootloaderAPI_ReadSignature_Trampoline: - jmp BootloaderAPI_ReadSignature -BootloaderAPI_ReadFuse_Trampoline: - jmp BootloaderAPI_ReadFuse -BootloaderAPI_ReadLock_Trampoline: - jmp BootloaderAPI_ReadLock -BootloaderAPI_WriteLock_Trampoline: - jmp BootloaderAPI_WriteLock -BootloaderAPU_UNUSED1: - ret -BootloaderAPU_UNUSED2: - ret -BootloaderAPU_UNUSED3: - ret -BootloaderAPU_UNUSED4: - ret -BootloaderAPU_UNUSED5: - ret +.section .apitable_trampolines, "ax" +.global BootloaderAPI_Trampolines +BootloaderAPI_Trampolines: + + BootloaderAPI_ErasePage_Trampoline: + jmp BootloaderAPI_ErasePage + BootloaderAPI_WritePage_Trampoline: + jmp BootloaderAPI_WritePage + BootloaderAPI_FillWord_Trampoline: + jmp BootloaderAPI_FillWord + BootloaderAPI_ReadSignature_Trampoline: + jmp BootloaderAPI_ReadSignature + BootloaderAPI_ReadFuse_Trampoline: + jmp BootloaderAPI_ReadFuse + BootloaderAPI_ReadLock_Trampoline: + jmp BootloaderAPI_ReadLock + BootloaderAPI_WriteLock_Trampoline: + jmp BootloaderAPI_WriteLock + BootloaderAPU_UNUSED1: + ret + BootloaderAPU_UNUSED2: + ret + BootloaderAPU_UNUSED3: + ret + BootloaderAPU_UNUSED4: + ret + BootloaderAPU_UNUSED5: + ret + + ; API function jump table -.org (96 - 32) +.section .apitable_jumptable, "ax" .global BootloaderAPI_JumpTable BootloaderAPI_JumpTable: + rjmp BootloaderAPI_ErasePage_Trampoline rjmp BootloaderAPI_WritePage_Trampoline rjmp BootloaderAPI_FillWord_Trampoline @@ -76,10 +79,13 @@ BootloaderAPI_JumpTable: rjmp BootloaderAPU_UNUSED4 ; UNUSED ENTRY 4 rjmp BootloaderAPU_UNUSED5 ; UNUSED ENTRY 5 + + ; Bootloader table signatures and information -.org (96 - 8) -BootloaderAPI_Signatures: +.section .apitable_signatures, "ax" .global BootloaderAPI_Signatures +BootloaderAPI_Signatures: + .long BOOT_START_ADDR ; Start address of the bootloader - .word 0xCDC1 ; Signature for the CDC class bootloader, V1 + .word 0xDFB1 ; Signature for the DFU class bootloader, V1 .word 0xDCFB ; Signature for a LUFA class bootloader diff --git a/Bootloaders/CDC/BootloaderCDC.c b/Bootloaders/CDC/BootloaderCDC.c index ef68e148c..af778c76f 100644 --- a/Bootloaders/CDC/BootloaderCDC.c +++ b/Bootloaders/CDC/BootloaderCDC.c @@ -61,7 +61,7 @@ static bool RunBootloader = true; * low when the application attempts to start via a watchdog reset, the bootloader will re-start. If set to the value * \ref MAGIC_BOOT_KEY the special init function \ref Application_Jump_Check() will force the application to start. */ -uint32_t MagicBootKey ATTR_NO_INIT; +uint16_t MagicBootKey ATTR_NO_INIT; /** Special startup routine to check if the bootloader was started via a watchdog reset, and if the magic application @@ -70,8 +70,29 @@ uint32_t MagicBootKey ATTR_NO_INIT; */ void Application_Jump_Check(void) { + bool JumpToApplication = false; + + #if ((BOARD == BOARD_XPLAIN) || (BOARD == BOARD_XPLAIN_REV1)) + /* Disable JTAG debugging */ + JTAG_DISABLE(); + + /* Enable pull-up on the JTAG TCK pin so we can use it to select the mode */ + PORTF |= (1 << 4); + Delay_MS(10); + + /* If the TCK pin is not jumpered to ground, start the user application instead */ + JumpToApplication |= ((PINF & (1 << 4)) != 0); + + /* Re-enable JTAG debugging */ + JTAG_ENABLE(); + #endif + /* If the reset source was the bootloader and the key is correct, clear it and jump to the application */ if ((MCUSR & (1 << WDRF)) && (MagicBootKey == MAGIC_BOOT_KEY)) + JumpToApplication |= true; + + /* If a request has been made to jump to the user application, honor it */ + if (JumpToApplication) { /* Turn off the watchdog */ MCUSR &= ~(1<