Commit Graph

217 Commits

Author SHA1 Message Date
Dean Camera
1d2680b358 Update copyrights to 2015 (better late than never). 2015-05-17 13:14:29 +10:00
Dean Camera
41634c4530 Obsolete the old MACROS and MACROE convenience macros. 2014-09-14 11:45:02 +10:00
Dean Camera
4c06a9c88f Minor code style fixes, documentation improvements. 2014-07-22 19:25:41 +10:00
Bert van Hall
c499a0b755 Fix XMEGA USB prescaler calculation
The USB prescaler calculation for the CLK.USBCTRL register is changed to
give valid results and set the prescaler correctly.

Signed-off-by: Bert van Hall <bert.vanhall@avionic-design.de>
2014-07-22 10:41:55 +02:00
Dean Camera
b8f7dae24c Fix possible infinite loop in the control stream write template functions. 2014-06-08 15:33:29 +10:00
Dean Camera
b095177e20 Fix incorrect descriptor length when using USB_STRING_DESCRIPTOR macros. 2014-01-27 22:28:53 +11:00
Dean Camera
5789767889 Fix USB_STRING_DESCRIPTOR() macro reported length to account for the null-terminator. 2014-01-08 10:51:48 +11:00
Dean Camera
8328175482 Add USB_STRING_DESCRIPTOR_ARRAY() macro, update demos where required. 2014-01-08 10:41:16 +11:00
László Monda
28cadf077e Add USB_STRING_DESCRIPTOR and make the Keyboard demo use it. 2014-01-08 10:36:18 +11:00
Dean Camera
e368a89987 Update copyrights for 2014. 2014-01-04 10:45:02 +11:00
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
Dean Camera
e3cb0f48ef Use new VERSION_BCD() macro with explicit int arguments to fix edge cases with the previous floating point macro version. 2013-11-21 19:19:45 +01:00
Dean Camera
ab238601b9 Minor documentation corrections. 2013-10-06 22:33:32 +02:00
Dean Camera
ea58513558 Fixed re-enumeration issue of XMEGA architecture targets. 2013-08-13 21:01:42 +02:00
Dean Camera
7cd9e0dbc4 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
Dean Camera
0d80075387 Fix missing bitshift in the AVR8 Pipe_GetBoundEndpointAddress() function. 2013-05-14 16:31:29 +02:00
Dean Camera
707934d9cb Minor documentation improvements. 2013-05-12 12:04:58 +02:00
Dean Camera
214d5b39fc Fix Pipe_GetBoundEndpointAddress() returning bad values in some circumstances. 2013-05-10 21:48:42 +02:00
Dean Camera
7f5445c8c6 Revert incorrect XMEGA interrupt disable patch; all flags *except* the interrupt level should be cleared, and not the interrupt level itself. 2013-05-05 14:09:26 +00:00
Dean Camera
7464e40a4b Minor documentation improvements. 2013-05-04 20:54:32 +00:00
Dean Camera
15fb6351e5 Move USB mode enum into the top level USB controller header, as it is common to all architectures (even if not all modes are supported). 2013-04-28 11:31:28 +00:00
Dean Camera
8232721102 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
Dean Camera
b6a38164bd Reduce the amount of inlining of core Endpoint functions for XMEGA, to reduce the compiled code size (size/speed tradeoff). 2013-04-14 08:48:55 +00:00
Dean Camera
334f70aa80 Add some missing function attributes. 2013-04-11 17:39:00 +00:00
Dean Camera
7c3867da33 Added new CONCAT() and CONCAT_EXPANDED() convenience macros. 2013-04-06 22:07:54 +00:00
Dean Camera
654217548b Fix incorrect Interrupt disable function for the XMEGA architecture (thanks to Simon Küppers). 2013-03-23 21:53:56 +00:00
Dean Camera
03cdb09071 Minor documentation improvements. 2013-03-18 19:24:55 +00:00
Dean Camera
4bd36a9775 Reset XMEGA NVM read command to the symbolic NO_OPERATION constant rather than a hard-coded zero. 2013-02-13 19:50:30 +00:00
Dean Camera
300a05d6c6 Remove CPPCheck suppressions for unused functions, disable checking for them in the StaticAnalysisTest build test as it can't cope with GCC aliasing and mixed library/application code. 2013-02-05 20:57:49 +00:00
Dean Camera
da42e8840d Suppress unused function parameter warnings in the USB driver. 2013-01-27 19:48:29 +00:00
Dean Camera
fb18c315d0 Fix broken XMEGA USB support. 2013-01-27 19:35:40 +00:00
Dean Camera
22b04429e6 Fixed incorrectly issuing STALL response to unsupported control request SETUP packets, rather than in the data/status stage. 2013-01-27 13:07:48 +00:00
Dean Camera
a016942a3e Add missing include to the USB driver core mode header file. 2013-01-03 12:07:16 +00:00
Dean Camera
de0df8b162 Update copyright year to 2013. 2013-01-03 11:37:33 +00:00
Dean Camera
2608fd1dd4 Fixed hardware race condition that could cause failed device enumerations for AVR8 and UC3 architectures (thanks to Mike Beyhs).
Fixed incorrect Minimus board LED definitions (thanks to Joonas Lahtinen).

Fixed incorrect LED masks for received data display in the Device GenericHID demos (thanks to Denys Berkovskyy).
2013-01-03 10:53:47 +00:00
Dean Camera
7d037c7db8 Remove support for devices that were not put into production. 2013-01-03 10:49:44 +00:00
Dean Camera
72fc4a204d Clean up unnecessary CPPCheck static analysis suppression comments, force Doxygen and GCC compiler specific macros as being always undefined when performing a static analysis of the code. 2012-10-14 20:18:46 +00:00
Dean Camera
eee252603b Minor documentation improvements. 2012-10-05 20:22:19 +00:00
Dean Camera
cd40797a4d Fixed possible rounding in the VERSION_BCD() macros for some 0.01 step increments (thanks to Oliver Zander). 2012-09-12 17:23:53 +00:00
Dean Camera
7a51e97c3b Update LUFA core to be compatible with the AVR-GCC -Wswitch-default warning switch. 2012-09-09 14:00:03 +00:00
Dean Camera
b9f3ff39a4 Use an early-abort in the USB_DeviceTask() function rather than wrapping the entire implementation in a conditional. 2012-09-01 22:55:56 +00:00
Dean Camera
376160e2c0 Add human readable license information and add some missing module documentation briefs. 2012-09-01 22:08:59 +00:00
Dean Camera
44aea22949 Fixed logic hole breaking USB operations on a USB controller with only one supported USB mode and no USB_DEVICE_ONLY or USB_HOST_ONLY configuration token set. 2012-08-28 20:09:14 +00:00
Dean Camera
ff00644cb8 Minor documentation corrections. 2012-08-27 16:55:52 +00:00
Dean Camera
1cb60c1214 Spell-check latest trunk source code. 2012-08-18 14:54:37 +00:00
Dean Camera
7750783809 Minor documentation improvements. 2012-08-18 10:58:52 +00:00
Dean Camera
ffbb30e0f8 Added workaround for broken VBUS detection on AVR8 devices when a bootloader starts the application via a software jump without first turning off the OTG pad (thanks to Simon Inns) 2012-08-12 13:46:24 +00:00
Dean Camera
c90b9b507d Add missing UC3 architecture F_USB configuration checks. 2012-07-24 05:03:11 +00:00
Dean Camera
badbca5791 Fixed endianess issues in the RNDIS host class driver for UC3 devices (thanks to Andrew Chu). Fix broken build for UC3 devices when ORDERED_EP_CONFIG compile time option is set. 2012-07-22 13:32:39 +00:00
Dean Camera
5b8b5018f2 Minor documentation improvements. 2012-07-15 18:49:42 +00:00