Permalink
Browse files

Add missing SVN eol-style property to files where it was missing.

git-svn-id: http://lufa-lib.googlecode.com/svn/tags/LUFA-110528-BETA@1887 d5102386-fcda-11dd-9fdb-3debd5008f28
  • Loading branch information...
1 parent 01f728d commit 19148784886b32d6a9cec165810533d226b79617 Dean committed Jul 15, 2011
Showing with 17,556 additions and 17,556 deletions.
  1. +156 −156 Bootloaders/HID/BootloaderHID.c
  2. +61 −61 Bootloaders/HID/BootloaderHID.h
  3. +70 −70 Bootloaders/HID/BootloaderHID.txt
  4. +186 −186 Bootloaders/HID/Descriptors.c
  5. +68 −68 Bootloaders/HID/Descriptors.h
  6. +1,566 −1,566 Bootloaders/HID/Doxygen.conf
  7. +703 −703 Bootloaders/HID/makefile
  8. +321 −321 Demos/Device/ClassDriver/VirtualSerialMassStorage/Descriptors.c
  9. +98 −98 Demos/Device/ClassDriver/VirtualSerialMassStorage/Descriptors.h
  10. +1,565 −1,565 Demos/Device/ClassDriver/VirtualSerialMassStorage/Doxygen.conf
  11. +105 −105 Demos/Device/ClassDriver/VirtualSerialMassStorage/LUFA VirtualSerialMassStorage.inf
  12. +534 −534 Demos/Device/ClassDriver/VirtualSerialMassStorage/Lib/DataflashManager.c
  13. +85 −85 Demos/Device/ClassDriver/VirtualSerialMassStorage/Lib/DataflashManager.h
  14. +347 −347 Demos/Device/ClassDriver/VirtualSerialMassStorage/Lib/SCSI.c
  15. +88 −88 Demos/Device/ClassDriver/VirtualSerialMassStorage/Lib/SCSI.h
  16. +213 −213 Demos/Device/ClassDriver/VirtualSerialMassStorage/VirtualSerialMassStorage.c
  17. +91 −91 Demos/Device/ClassDriver/VirtualSerialMassStorage/VirtualSerialMassStorage.h
  18. +86 −86 Demos/Device/ClassDriver/VirtualSerialMassStorage/VirtualSerialMassStorage.txt
  19. +719 −719 Demos/Device/ClassDriver/VirtualSerialMassStorage/makefile
  20. +437 −437 Demos/Device/Incomplete/TestAndMeasurement/TestAndMeasurement.c
  21. +704 −704 LUFA/CodeTemplates/makefile_template.avr8
  22. +482 −482 LUFA/CodeTemplates/makefile_template.uc3
  23. +81 −81 LUFA/Common/Architectures.h
  24. +466 −466 LUFA/Common/Endianness.h
  25. +124 −124 LUFA/Drivers/Board/ADAFRUITU4/LEDs.h
  26. +126 −126 LUFA/Drivers/Board/BLACKCAT/LEDs.h
  27. +103 −103 LUFA/Drivers/Board/EVK1101/Buttons.h
  28. +118 −118 LUFA/Drivers/Board/EVK1101/Joystick.h
  29. +137 −137 LUFA/Drivers/Board/EVK1101/LEDs.h
  30. +126 −126 LUFA/Drivers/Board/MAXIMUS/LEDs.h
  31. +92 −92 LUFA/Drivers/Board/MICROSIN162/Buttons.h
  32. +124 −124 LUFA/Drivers/Board/MICROSIN162/LEDs.h
  33. +91 −91 LUFA/Drivers/Board/MINIMUS/Buttons.h
  34. +126 −126 LUFA/Drivers/Board/MINIMUS/LEDs.h
  35. +124 −124 LUFA/Drivers/Board/SPARKFUN8U2/LEDs.h
  36. +99 −99 LUFA/Drivers/Misc/AT45DB321C.h
  37. +109 −109 LUFA/Drivers/Misc/AT45DB642D.h
  38. +267 −267 LUFA/Drivers/Misc/RingBuffer.h
  39. +140 −140 LUFA/Drivers/USB/Core/Device.h
  40. +111 −111 LUFA/Drivers/USB/Core/Endpoint.h
  41. +175 −175 LUFA/Drivers/USB/Core/Host.h
  42. +70 −70 LUFA/Drivers/USB/Core/OTG.h
  43. +126 −126 LUFA/Drivers/USB/Core/Pipe.h
  44. +47 −47 LUFA/Drivers/USB/Core/UC3/Device_UC3.c
  45. +219 −219 LUFA/Drivers/USB/Core/UC3/Device_UC3.h
  46. +141 −141 LUFA/Drivers/USB/Core/UC3/Endpoint_UC3.c
  47. +864 −864 LUFA/Drivers/USB/Core/UC3/Endpoint_UC3.h
  48. +355 −355 LUFA/Drivers/USB/Core/UC3/Host_UC3.c
  49. +423 −423 LUFA/Drivers/USB/Core/UC3/Host_UC3.h
  50. +144 −144 LUFA/Drivers/USB/Core/UC3/Pipe_UC3.c
  51. +916 −916 LUFA/Drivers/USB/Core/UC3/Pipe_UC3.h
  52. +201 −201 LUFA/Drivers/USB/Core/UC3/USBController_UC3.c
  53. +383 −383 LUFA/Drivers/USB/Core/UC3/USBController_UC3.h
  54. +202 −202 LUFA/Drivers/USB/Core/UC3/USBInterrupt_UC3.c
  55. +353 −353 LUFA/Drivers/USB/Core/UC3/USBInterrupt_UC3.h
  56. +70 −70 LUFA/Drivers/USB/Core/USBController.h
  57. +61 −61 LUFA/Drivers/USB/Core/USBInterrupt.h
  58. +329 −329 Projects/MIDIToneGenerator/Descriptors.c
  59. +83 −83 Projects/MIDIToneGenerator/Descriptors.h
  60. +245 −245 Projects/MIDIToneGenerator/MIDIToneGenerator.c
  61. +108 −108 Projects/MIDIToneGenerator/MIDIToneGenerator.h
  62. +73 −73 Projects/MIDIToneGenerator/MIDIToneGenerator.txt
  63. +719 −719 Projects/MIDIToneGenerator/makefile
@@ -1,156 +1,156 @@
-/*
- LUFA Library
- Copyright (C) Dean Camera, 2011.
-
- dean [at] fourwalledcubicle [dot] com
- www.lufa-lib.org
-*/
-
-/*
- Copyright 2011 Dean Camera (dean [at] fourwalledcubicle [dot] com)
-
- Permission to use, copy, modify, distribute, and sell this
- software and its documentation for any purpose is hereby granted
- without fee, provided that the above copyright notice appear in
- all copies and that both that the copyright notice and this
- permission notice and warranty disclaimer appear in supporting
- documentation, and that the name of the author not be used in
- advertising or publicity pertaining to distribution of the
- software without specific, written prior permission.
-
- The author disclaim all warranties with regard to this
- software, including all implied warranties of merchantability
- and fitness. In no event shall the author be liable for any
- special, indirect or consequential damages or any damages
- whatsoever resulting from loss of use, data or profits, whether
- in an action of contract, negligence or other tortious action,
- arising out of or in connection with the use or performance of
- this software.
-*/
-
-/** \file
- *
- * Main source file for the HID class bootloader. This file contains the complete bootloader logic.
- */
-
-#include "BootloaderHID.h"
-
-/** Flag to indicate if the bootloader should be running, or should exit and allow the application code to run
- * via a soft reset. When cleared, the bootloader will abort, the USB interface will shut down and the application
- * started via a forced watchdog reset.
- */
-static bool RunBootloader = true;
-
-/** Main program entry point. This routine configures the hardware required by the bootloader, then continuously
- * runs the bootloader processing routine until instructed to soft-exit.
- */
-int main(void)
-{
- /* Setup hardware required for the bootloader */
- SetupHardware();
-
- /* Enable global interrupts so that the USB stack can function */
- sei();
-
- while (RunBootloader)
- USB_USBTask();
-
- /* Disconnect from the host - USB interface will be reset later along with the AVR */
- USB_Detach();
-
- /* Enable the watchdog and force a timeout to reset the AVR */
- wdt_enable(WDTO_250MS);
-
- for (;;);
-}
-
-/** Configures all hardware required for the bootloader. */
-void SetupHardware(void)
-{
- /* Disable watchdog if enabled by bootloader/fuses */
- MCUSR &= ~(1 << WDRF);
- wdt_disable();
-
- /* Relocate the interrupt vector table to the bootloader section */
- MCUCR = (1 << IVCE);
- MCUCR = (1 << IVSEL);
-
- /* Initialize USB subsystem */
- USB_Init();
-}
-
-/** Event handler for the USB_ConfigurationChanged event. This configures the device's endpoints ready
- * to relay data to and from the attached USB host.
- */
-void EVENT_USB_Device_ConfigurationChanged(void)
-{
- /* Setup HID Report Endpoint */
- Endpoint_ConfigureEndpoint(HID_IN_EPNUM, EP_TYPE_INTERRUPT,
- ENDPOINT_DIR_IN, HID_IN_EPSIZE,
- ENDPOINT_BANK_SINGLE);
-}
-
-/** Event handler for the USB_ControlRequest event. This is used to catch and process control requests sent to
- * the device from the USB host before passing along unhandled control requests to the library for processing
- * internally.
- */
-void EVENT_USB_Device_ControlRequest(void)
-{
- /* Ignore any requests that aren't directed to the HID interface */
- if ((USB_ControlRequest.bmRequestType & (CONTROL_REQTYPE_TYPE | CONTROL_REQTYPE_RECIPIENT)) !=
- (REQTYPE_CLASS | REQREC_INTERFACE))
- {
- return;
- }
-
- /* Process HID specific control requests */
- switch (USB_ControlRequest.bRequest)
- {
- case HID_REQ_SetReport:
- Endpoint_ClearSETUP();
-
- /* Wait until the command has been sent by the host */
- while (!(Endpoint_IsOUTReceived()));
-
- /* Read in the write destination address */
- uint16_t PageAddress = Endpoint_Read_16_LE();
-
- /* Check if the command is a program page command, or a start application command */
- if (PageAddress == COMMAND_STARTAPPLICATION)
- {
- RunBootloader = false;
- }
- else
- {
- /* Erase the given FLASH page, ready to be programmed */
- boot_page_erase(PageAddress);
- boot_spm_busy_wait();
-
- /* Write each of the FLASH page's bytes in sequence */
- for (uint8_t PageWord = 0; PageWord < (SPM_PAGESIZE / 2); PageWord++)
- {
- /* Check if endpoint is empty - if so clear it and wait until ready for next packet */
- if (!(Endpoint_BytesInEndpoint()))
- {
- Endpoint_ClearOUT();
- while (!(Endpoint_IsOUTReceived()));
- }
-
- /* Write the next data word to the FLASH page */
- boot_page_fill(PageAddress + ((uint16_t)PageWord << 1), Endpoint_Read_16_LE());
- }
-
- /* Write the filled FLASH page to memory */
- boot_page_write(PageAddress);
- boot_spm_busy_wait();
-
- /* Re-enable RWW section */
- boot_rww_enable();
- }
-
- Endpoint_ClearOUT();
-
- Endpoint_ClearStatusStage();
- break;
- }
-}
+/*
+ LUFA Library
+ Copyright (C) Dean Camera, 2011.
+
+ dean [at] fourwalledcubicle [dot] com
+ www.lufa-lib.org
+*/
+
+/*
+ Copyright 2011 Dean Camera (dean [at] fourwalledcubicle [dot] com)
+
+ Permission to use, copy, modify, distribute, and sell this
+ software and its documentation for any purpose is hereby granted
+ without fee, provided that the above copyright notice appear in
+ all copies and that both that the copyright notice and this
+ permission notice and warranty disclaimer appear in supporting
+ documentation, and that the name of the author not be used in
+ advertising or publicity pertaining to distribution of the
+ software without specific, written prior permission.
+
+ The author disclaim all warranties with regard to this
+ software, including all implied warranties of merchantability
+ and fitness. In no event shall the author be liable for any
+ special, indirect or consequential damages or any damages
+ whatsoever resulting from loss of use, data or profits, whether
+ in an action of contract, negligence or other tortious action,
+ arising out of or in connection with the use or performance of
+ this software.
+*/
+
+/** \file
+ *
+ * Main source file for the HID class bootloader. This file contains the complete bootloader logic.
+ */
+
+#include "BootloaderHID.h"
+
+/** Flag to indicate if the bootloader should be running, or should exit and allow the application code to run
+ * via a soft reset. When cleared, the bootloader will abort, the USB interface will shut down and the application
+ * started via a forced watchdog reset.
+ */
+static bool RunBootloader = true;
+
+/** Main program entry point. This routine configures the hardware required by the bootloader, then continuously
+ * runs the bootloader processing routine until instructed to soft-exit.
+ */
+int main(void)
+{
+ /* Setup hardware required for the bootloader */
+ SetupHardware();
+
+ /* Enable global interrupts so that the USB stack can function */
+ sei();
+
+ while (RunBootloader)
+ USB_USBTask();
+
+ /* Disconnect from the host - USB interface will be reset later along with the AVR */
+ USB_Detach();
+
+ /* Enable the watchdog and force a timeout to reset the AVR */
+ wdt_enable(WDTO_250MS);
+
+ for (;;);
+}
+
+/** Configures all hardware required for the bootloader. */
+void SetupHardware(void)
+{
+ /* Disable watchdog if enabled by bootloader/fuses */
+ MCUSR &= ~(1 << WDRF);
+ wdt_disable();
+
+ /* Relocate the interrupt vector table to the bootloader section */
+ MCUCR = (1 << IVCE);
+ MCUCR = (1 << IVSEL);
+
+ /* Initialize USB subsystem */
+ USB_Init();
+}
+
+/** Event handler for the USB_ConfigurationChanged event. This configures the device's endpoints ready
+ * to relay data to and from the attached USB host.
+ */
+void EVENT_USB_Device_ConfigurationChanged(void)
+{
+ /* Setup HID Report Endpoint */
+ Endpoint_ConfigureEndpoint(HID_IN_EPNUM, EP_TYPE_INTERRUPT,
+ ENDPOINT_DIR_IN, HID_IN_EPSIZE,
+ ENDPOINT_BANK_SINGLE);
+}
+
+/** Event handler for the USB_ControlRequest event. This is used to catch and process control requests sent to
+ * the device from the USB host before passing along unhandled control requests to the library for processing
+ * internally.
+ */
+void EVENT_USB_Device_ControlRequest(void)
+{
+ /* Ignore any requests that aren't directed to the HID interface */
+ if ((USB_ControlRequest.bmRequestType & (CONTROL_REQTYPE_TYPE | CONTROL_REQTYPE_RECIPIENT)) !=
+ (REQTYPE_CLASS | REQREC_INTERFACE))
+ {
+ return;
+ }
+
+ /* Process HID specific control requests */
+ switch (USB_ControlRequest.bRequest)
+ {
+ case HID_REQ_SetReport:
+ Endpoint_ClearSETUP();
+
+ /* Wait until the command has been sent by the host */
+ while (!(Endpoint_IsOUTReceived()));
+
+ /* Read in the write destination address */
+ uint16_t PageAddress = Endpoint_Read_16_LE();
+
+ /* Check if the command is a program page command, or a start application command */
+ if (PageAddress == COMMAND_STARTAPPLICATION)
+ {
+ RunBootloader = false;
+ }
+ else
+ {
+ /* Erase the given FLASH page, ready to be programmed */
+ boot_page_erase(PageAddress);
+ boot_spm_busy_wait();
+
+ /* Write each of the FLASH page's bytes in sequence */
+ for (uint8_t PageWord = 0; PageWord < (SPM_PAGESIZE / 2); PageWord++)
+ {
+ /* Check if endpoint is empty - if so clear it and wait until ready for next packet */
+ if (!(Endpoint_BytesInEndpoint()))
+ {
+ Endpoint_ClearOUT();
+ while (!(Endpoint_IsOUTReceived()));
+ }
+
+ /* Write the next data word to the FLASH page */
+ boot_page_fill(PageAddress + ((uint16_t)PageWord << 1), Endpoint_Read_16_LE());
+ }
+
+ /* Write the filled FLASH page to memory */
+ boot_page_write(PageAddress);
+ boot_spm_busy_wait();
+
+ /* Re-enable RWW section */
+ boot_rww_enable();
+ }
+
+ Endpoint_ClearOUT();
+
+ Endpoint_ClearStatusStage();
+ break;
+ }
+}
Oops, something went wrong.

0 comments on commit 1914878

Please sign in to comment.