Commit Graph

990 Commits

Author SHA1 Message Date
Hell
f6fe9db8ba Fix Serial_XMEGA.h syntax and define error 2014-08-13 17:55:05 +08: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
3d818fbb86 Add Serial_IsSendReady() and Serial_IsSendComplete() serial driver API functions. 2014-07-15 21:23:13 +10:00
Bert van Hall
ffb5f7e3b3 Fix missing report IDs in feature reports
As it is the case for input reports, the ID has to be sent for feature
reports when a device has multiple reports implemented.

Signed-off-by: Bert van Hall <bert.vanhall@avionic-design.de>
2014-06-19 14:38:49 +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
7768935889 Fix LED driver for the Arduino Leonardo board. 2014-04-30 20:36:49 +10:00
Dean Camera
45f0971da5 Merge pull request #23 from mondalaci/add-further-scancodes
Fix typos and add new macros for HID keyboard scancodes.
2014-04-07 13:44:53 +02:00
László Monda
c0e32775f3 Fix typos and add new macros for HID keyboard scancodes. 2014-04-06 19:27:40 +02:00
Dean Camera
d8f36aa7a8 More fixes for incorrect return types/values. 2014-03-09 15:38:27 +11:00
Dean Camera
261284f5e1 Fix incorrect error codes returned on pip config failure in the host class drivers. 2014-03-05 21:41:45 +11:00
László Monda
987cd32f65 Fix ring buffer example. 2014-02-01 20:48:33 +01: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
6eba84bf4b Fixed MIDI device class driver MIDI_Device_ReceiveEventPacket() for the XMEGA architecture. 2013-11-05 22:16:15 +01:00
Dean Camera
814d0b9098 Minor documentation fixes. 2013-10-27 23:15:20 +01:00
Dean Camera
3fc75f130b Minor documentation improvements. 2013-10-27 18:16:07 +01:00
Dean Camera
ab238601b9 Minor documentation corrections. 2013-10-06 22:33:32 +02:00
László Monda
ef1a4b750b Use spaces instead of tabs wherever necessary to fix indentation. 2013-09-24 11:19:42 +02:00
László Monda
c41512c1e8 Use spaces instead of tabs where necessary to fix indentation. 2013-09-24 11:09:36 +02:00
Dean Camera
716f356b21 Minor code style fix. 2013-09-05 17:44:57 +02:00
Dean Camera
aded8373cc Fixed error receiving PIMA events via the Still Image Host class driver. 2013-08-23 22:59:58 +02:00
Dean Camera
44bc433fb0 Fix code style in the HID parser module. 2013-08-23 21:42:51 +02:00
Dean Camera
179e18cf58 Prevent accessing past the UsageList bounds in the HID parser when dequeueing a usage. 2013-08-19 20:20:44 +02:00
Dean Camera
c02a2c5257 Use seperate ATTR_NON_NULL_PTR_ARG() decorators in the XMEGA TWI driver to prevent Doxygen from choking. 2013-08-13 21:46:41 +02:00
Dean Camera
7c57ad3858 Fix XMEGA TWI driver indentation and style to conform to the rest of the LUFA codebase. 2013-08-13 21:30:34 +02:00
Dean Camera
5fde9e0f0d Merge branch 'xmega-twi' of github.com:jamuraa/lufa into xmega-twi-integration 2013-08-13 21:04:40 +02:00
Dean Camera
ea58513558 Fixed re-enumeration issue of XMEGA architecture targets. 2013-08-13 21:01:42 +02:00
Dean Camera
a4a6958524 Fix broken USART SPI driver for the AVR8 architecture. 2013-08-12 16:27:06 +02:00
Michael Janssen
6dd0447c12 Bugfixes with the protocol.
- Bitmasks need to be equal, not just result in non-zero
 - Only read status once in case it changes under us
 - Logical and not binary and when checking for acks on sending
 - We need to stop the bus when receiving the last byte
 - Force the bus into idle mode when we are Initing
2013-08-06 23:33:06 -05:00
Michael Janssen
d557744503 Minor bugfixes / missed compile stuff. 2013-07-31 21:47:41 -05:00
Michael Janssen
a403b12b8d Fix NON-NULL attributes, add for TWI_t. 2013-07-24 11:16:55 -05:00
Michael Janssen
50e8fc615d TWI Master has a sub-structure 2013-07-24 11:12:03 -05:00
Michael Janssen
2d21e36dd9 Add TWI Peripheral driver for XMEGA 2013-07-24 11:07:46 -05: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
c6e1bf87b5 Minor documentation improvements. 2013-06-22 13:25:41 +02:00
Michael
4a4b9d3051 Add U2S board support
Includes board definition files and patch for AVRISPMKII to move the
reset line for pin compatibility.
http://sites.google.com/site/megau2s/
2013-06-22 11:58:25 +02:00
Dean Camera
f7b9ebea02 Update board Dataflash_Init() functions to automatically configure the appropriate communication interface. 2013-06-12 19:51:57 +02:00
Dean Camera
6d58628e85 Fix typos in the XMEGA board LED drivers, use a cleaner change and set implementation. 2013-06-12 18:43:06 +02:00
Dean Camera
7941245122 Ensure core library documentation sections use unique IDs. 2013-06-01 21:55:31 +02:00
Dean Camera
16037433a2 Added missing LEDs to the XMEGA A3BU Xplained and XMEGA C3 Xplained board LED drivers 2013-06-01 18:56:03 +02:00
Dean Camera
f5882b875e Fix HID descriptor mouse and joystick macros for integer multiples of 8 buttons. 2013-05-23 19:54:42 +02:00
Dean Camera
b5285c1411 Minor documentation improvements. 2013-05-22 22:33:35 +02:00
Dean Camera
10448970e5 Merge branch 'master' into XMEGA-Demo-Ports-ClockOnly 2013-05-20 00:06:37 +02:00
Dean Camera
fdf50e9411 Add support for the XMEGA C3 Xplained board. 2013-05-20 00:06:13 +02:00