qmk_firmware/LUFA/Drivers/USB/Core/AVR8
Michael Hanselmann 25a02432e7 AVR8: Add option to keep 3.3V regulator enabled
The documentation contains example code[1] on how to restart into the
bootloader. In the process of preparing for the reset, USB is disabled
using “USB_Disable()”. For hardware making use of the AVR8's internal
3.3V regulator that call would also disable the regulator, resetting the
processor immediately rather than setting the boot key and letting the
watchdog reset the processor.

This patch adds a new flag to be given to “USB_Init()” or to be defined
in “USE_STATIC_OPTIONS” telling “USB_Disable()” to keep the regulator
enabled.

On November 1st, 2013 this issue was already mentioned on the mailing
list[2], but no fix came from that discussion.

[1]
<http://www.fourwalledcubicle.com/files/LUFA/Doc/130901/
html/_page__software_bootloader_start.html>

[2]
<https://groups.google.com/d/msg/lufa-support/uwrFpRQpJzU/e9I6UK5jMJQJ>

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
2013-12-20 00:04:51 +01:00
..
Template Update copyright year to 2013. 2013-01-03 11:37:33 +00:00
Device_AVR8.c Update copyright year to 2013. 2013-01-03 11:37:33 +00:00
Device_AVR8.h Suppress unused function parameter warnings in the USB driver. 2013-01-27 19:48:29 +00:00
Endpoint_AVR8.c Update copyright year to 2013. 2013-01-03 11:37:33 +00:00
Endpoint_AVR8.h Minor documentation corrections. 2013-10-06 22:33:32 +02:00
EndpointStream_AVR8.c Update copyright year to 2013. 2013-01-03 11:37:33 +00:00
EndpointStream_AVR8.h Update copyright year to 2013. 2013-01-03 11:37:33 +00:00
Host_AVR8.c Update copyright year to 2013. 2013-01-03 11:37:33 +00:00
Host_AVR8.h Minor documentation improvements. 2013-03-18 19:24:55 +00:00
OTG_AVR8.h Update copyright year to 2013. 2013-01-03 11:37:33 +00:00
Pipe_AVR8.c Fixed possible register corruption in USB Host mode on AVR8 devices when ORDERED_EP_CONFIG is used (thanks to Martin Aakerberg). 2013-04-21 19:06:34 +00:00
Pipe_AVR8.h Fix missing bitshift in the AVR8 Pipe_GetBoundEndpointAddress() function. 2013-05-14 16:31:29 +02:00
PipeStream_AVR8.c Update copyright year to 2013. 2013-01-03 11:37:33 +00:00
PipeStream_AVR8.h Update copyright year to 2013. 2013-01-03 11:37:33 +00:00
USBController_AVR8.c AVR8: Add option to keep 3.3V regulator enabled 2013-12-20 00:04:51 +01:00
USBController_AVR8.h AVR8: Add option to keep 3.3V regulator enabled 2013-12-20 00:04:51 +01:00
USBInterrupt_AVR8.c Fixed incorrect USB device state set when a suspended LUFA device is woken while addressed but not configured (thanks to Balaji Krishnan) 2013-07-15 20:47:43 +02:00
USBInterrupt_AVR8.h Update copyright year to 2013. 2013-01-03 11:37:33 +00:00