Commit Graph

786 Commits

Author SHA1 Message Date
Dean Camera 03cdb09071 Minor documentation improvements. 2013-03-18 19:24:55 +00:00
Dean Camera 6dd4d0a9f1 Fixed incorrect HID report descriptor generated for 16-bit axis ranges by the HID_DESCRIPTOR_MOUSE() and HID_DESCRIPTOR_JOYSTICK() macros (thanks to Guillaume Germaine) 2013-03-17 13:52:12 +00:00
Dean Camera e62e50c663 Add dummy handler for SCSI_CMD_START_STOP_UNIT in all project SCSI handling routines, to prevent ejection errors on *nix systems due to an unknown SCSI command. 2013-03-09 10:59:53 +00:00
Dean Camera fa2a8fca69 Fixed potential NULL pointer dereference in the HID Host mode Class Driver (thanks to Pavel Kuzmin). 2013-02-27 19:57:28 +00:00
Dean Camera cfa48f5987 Changed all *_SendByte() function prototypes to accept a void pointer for the input buffer (thanks to Simon Küppers) instead of a uint8_t pointer. 2013-02-24 15:46:58 +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 826a77e90c Fixed maximum allowed keyboard key code usage of 0x65 rather than 0xFF for the HID_DESCRIPTOR_KEYBOARD() macro (thanks to David Monro) 2012-10-14 13:58:08 +00:00
Dean Camera 9a04475c23 Fixed incorrect definitions of HID_KEYBOARD_LED_KANA, HID_KEYBOARD_SC_KEYPAD_EQUAL_SIGN and HID_KEYBOARD_SC_KEYPAD_EQUAL_SIGN_AS400 and added a missing definition for HID_KEYBOARD_SC_APPLICATION (thanks to David Monro). 2012-10-14 11:51:57 +00:00
Dean Camera eee252603b Minor documentation improvements. 2012-10-05 20:22:19 +00:00
Dean Camera 5f6235b195 Fix missing briefs in the documentation for several modules, fix up invalid documentation references. 2012-09-19 18:43:56 +00:00
Dean Camera e186907e39 Fixed lengthy timeouts in the USBtoSerial project if no application on the host is consuming data (thanks to Nicolas Saugnier).
Fixed lengthy automatic data flushing in the CDC and MIDI device class drivers.
2012-09-16 18:18:07 +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
Dean Camera 3bf7ce15d5 Fix up makefile .NOTPARALLEL heuristics so that linear building is only enforced if no object folder set and the "all" target is run. Rename library "ConfigDescriptor.c" file to "ConfigDescriptors.c" to ensure that object filenames are unique. 2012-07-10 19:33:39 +00:00
Dean Camera ef06eefc8b Add svn:eol-style property on all source files where it was missing. Fix line endings of all makefile, *.c and *.h files. 2012-06-21 20:27:00 +00:00
Dean Camera c4ebddd27a Add missing <math.h> include for the UC3 devices, hide CDC class driver stream functions for unsupported platforms. 2012-06-12 19:49:15 +00:00
Dean Camera c41bbf9fcc Add checks to the endpoint and pipe configure functions and fail if the requested endpoint or pipe number is above the maximum for that device. 2012-06-10 19:53:20 +00:00
Dean Camera fae71b5780 Minor correction to the UC3 USB clock division formula (thanks to Kim Blomqvist). 2012-06-10 15:59:09 +00:00
Dean Camera 21a6acff83 Add MAX_ENDPOINT_INDEX compile time option for the XMEGA devices. 2012-06-10 13:09:39 +00:00
Dean Camera 3808f5c36d Spell check source code, fix mistakes. 2012-06-09 20:33:56 +00:00
Dean Camera 6e29655b54 Update SVN line endings property on newer source files to native. 2012-06-07 20:49:47 +00:00
Dean Camera 082537f5bd Oops - really fix logic errors in USBMode.h. 2012-06-06 19:58:51 +00:00
Dean Camera 940145ca6d Fix errors in the SingleUSBModeTest build test. Fix logic errors in USBMode.h. 2012-06-06 19:39:38 +00:00
Dean Camera fab1678602 Fix typo in the UC3 host pipe driver. Improve library TAR export exclusion filetype filter. 2012-06-06 19:09:06 +00:00
Dean Camera 0d888458e1 Fix incorrect bank mask in Endpoint_ConfigureEndpoint() for the UC3 devices. 2012-06-02 19:34:10 +00:00
Dean Camera 5ce60f25e6 Ensure that USB_DEVICE_ONLY or USB_HOST_ONLY is properly set for devices that physically do not support a particular mode. Fix main LUFA library makefile default target. 2012-06-02 15:50:10 +00:00
Dean Camera 35564bb1a7 Fixed swapped Little Endian/Big Endian endpoint and pipe write code for the UC3 devices (thanks to Andrew Chu). 2012-05-26 16:02:20 +00:00
Dean Camera f235021abe Fix incorrect definition for the XMEGA Endpoint_BytesInEndpoint() function when used on OUT endpoints. 2012-05-26 15:06:00 +00:00
Dean Camera b181cf4fb8 Minor documentation improvements. 2012-05-20 15:35:01 +00:00
Dean Camera 82162c710c Additional fixes to the MIDI host driver due to not unfreezing/re-freezing pipes correctly (thanks to Michael Brown). 2012-05-20 13:04:26 +00:00
Dean Camera f2ae4dc255 Upgrade Doxygen configuration files for Doxygen 1.8.1, fix broken stylesheet and footer HTML, add explicit spacing into documentation code fragments to prevent Doxygen from removing empty lines in the output. 2012-05-20 10:55:59 +00:00
Dean Camera c9b3468f1e Add missing CPPCheck unusedFunction check suppressions on the USB template functions. 2012-05-19 22:14:06 +00:00
Dean Camera 380f014c4c Added build test to verify correct compilation of all bootloaders using all supported devices.
Fixed compile error with the unreleased ATMEGA32U6 device.
2012-05-13 13:06:11 +00:00
Dean Camera e5a7fa201e Add support for the ATXMEGA384C3. 2012-05-07 17:40:52 +00:00
Dean Camera 1007317c5f Fixed broken MIDI host driver MIDI_Host_ReceiveEventPacket() function due to not unfreezing the MIDI data IN pipe before use (thanks to Michael Brown). 2012-05-06 11:11:33 +00:00
Dean Camera 0e434c8f8f Add additional preprocessor sanity checks for the XMEGA platform based on the USB controller input clock speed. 2012-05-05 19:46:20 +00:00
Dean Camera 2d98e5499b Fixed possible deadlock in the CDC device driver if the USB connection is dropped while the CDC_REQ_SetLineEncoding control request is being processed by the stack (thanks to Jonathan Hudgins). 2012-05-05 19:43:06 +00:00
Dean Camera 46d511c021 Fixed incorrect DFU version number reported to the host in the DFU bootloader descriptors. Fixed incorrect version hundredths value encoding in VERSION_BCD() macro (thanks to Georg Glock). 2012-05-05 15:25:27 +00:00
Dean Camera e875d7cf9f Changed MIDI event structure MIDI_EventPacket_t to use a single field for the combined virtual cable index and command ID, to prevent bitfield packing issues on some architectures (thanks to Darren Gibbs). 2012-04-25 18:28:56 +00:00
Dean Camera c0841d98c5 Fixed incorrect reponse to GET STATUS requests in device mode if NO_DEVICE_SELF_POWER or NO_DEVICE_REMOTE_WAKEUP tokens are defined (thanks to Georg Glock). 2012-04-15 13:34:11 +00:00
Dean Camera 47f6a35013 Reintegrate the FullEPAddresses development branch into trunk. 2012-04-14 14:41:17 +00:00
Dean Camera 8f4f48d963 Add architecture guards to all architecture-specific files, so that they can be bulk-added to existing IDE projects without having to exclude unused architecture files. 2012-04-07 17:01:46 +00:00
Dean Camera 1cc62c9282 Oops - typos in alterations to HID_DESCRIPTOR_JOYSTICK(). 2012-03-29 19:52:18 +00:00
Dean Camera b3aaffb792 Removed variable axis support from the HID_DESCRIPTOR_JOYSTICK() macro due to OS incompatibilities, replaced with fixed 3-axis joystick report structure. 2012-03-29 19:41:05 +00:00
Dean Camera 00b6b0140f Re-enable cppcheck static analysis unused function checks after adding in special-case suppressions to the event stub functions. Add missing function prototypes to the AudioInput and AudioOutput class driver device demos. 2012-03-25 12:12:08 +00:00
Dean Camera f87aec2264 Fixed incorrect call to the user callback CALLBACK_Audio_Device_GetSetInterfaceProperty() in the Audio Class device driver (thanks to Tiit Ratsep). 2012-03-15 19:11:26 +00:00
Dean Camera 77adb2ba52 Audio Device Class driver changed to also require the index of the Audio Control interface within the device, for SET/GET/CUR/MIN/MAX/RES property adjustments. 2012-03-14 22:12:40 +00:00
Dean Camera 17f104cbe8 Fixed compile error for the UC3 architecture when INTERRUPT_CONTROL_ENDPOINT is specified (thanks to Andrus Aaslaid). 2012-03-06 14:50:59 +00:00
Dean Camera 8a9e30a0cb Fixed possible enumeration error if the user application selects the non-Control pipe between the Powered and Default states of the host state machine. 2012-02-26 15:01:36 +00:00
Dean Camera 0456dfeb88 Update main library documentation organisation for Doxygen 1.8.0. 2012-02-25 17:07:33 +00:00
Dean Camera e406140f11 Minor documentation fixes - change \note entries to \warning where appropriate and remove/update old documentation. 2012-02-24 20:25:36 +00:00
Dean Camera 4068efbd18 Remove potentially unaligned uint32_t access in HIDParser.c, replace with standard C bit shifts. 2012-02-20 18:47:25 +00:00
Dean Camera 84ff878fd7 Fix errors uncovered by the new build test compile warnings; fix UC3 pipe configuration function broken, redundant function prototypes and unused parameters. 2012-02-19 15:26:42 +00:00
Dean Camera 50ff97f378 All USB Class Driver configuration struct values are now non-const, to allow for run-time modifications if required before configuring an instance. 2012-02-19 15:24:05 +00:00
Dean Camera 1132488e8f Add build tests to verify correct compilation of as many modules as possible under as many architectures as possible.
Fix broken compilation of LUFA under C++ compilers when the Serial peripheral module header file is included in a C++ source file.

Fix missing semicolon in the UC3 architecture host pipe functions.

Fix failed compilation for the XMEGA architecture if USB_DEVICE_ONLY us not specified.
2012-02-18 23:33:12 +00:00
Dean Camera 82fdedc192 Minor documentation improvements. 2012-02-11 22:35:06 +00:00
Dean Camera 81bd8f2f83 Clean up the Audio Device class driver control request Endpoint match logic. 2012-02-11 20:39:33 +00:00
Dean Camera 2180f57d17 Altered the HID class driver to only try to construct at maximum one packet per USB frame, to reduce CPU usage. 2012-02-09 20:30:27 +00:00
Dean Camera 385ffb6de3 Fix XMEGA architecture not correctly resetting the device address and endpoints in response to a USB bus reset from the host. 2012-02-09 20:27:03 +00:00
Dean Camera c60897df39 Allow serial strings to be generated on the older AVR8 devices which do not explicitly state they contain unique values in the datasheet, as this appears to be implemented in hardware. 2012-02-08 18:35:16 +00:00
Dean Camera fdab3aef86 Add (still preliminary) support for the ATXMEGA64A4 and ATXMEGA128A4. Fix minor error in the AVRISP-MKII clone project descriptors. 2012-02-05 21:59:35 +00:00
Dean Camera a677254026 Added INVERTED_VBUS_ENABLE_LINE and NO_AUTO_VBUS_MANAGEMENT compile time options (thanks to Opendous Inc.). 2012-02-05 15:19:01 +00:00
Dean Camera f1b6ddb710 Update file contributor copyrights for 2012. 2012-02-04 22:38:44 +00:00
Dean Camera 2c806f6cee Update file header copyrights for 2012. 2012-02-04 22:32:30 +00:00
Dean Camera 64e9361298 Minor corrections to the XMEGA USB controller implementation. 2012-02-04 22:16:34 +00:00
Dean Camera a436fbb612 Minor documentation improvements. 2012-02-02 20:17:22 +00:00
Dean Camera fc4d3ab400 Minor documentation improvements. 2012-02-01 21:28:25 +00:00
Dean Camera a147cee95f Added new CALLBACK_Audio_Device_GetSetInterfaceProperty() callback to the Audio Device Class driver. 2012-01-28 18:07:35 +00:00
Dean Camera 3038ea1c6e USB_CONFIG_ATTR_BUSPOWERED constant renamed to USB_CONFIG_ATTR_RESERVED, as this was misnamed (thanks to NXP Semiconductors). 2012-01-02 05:43:23 +00:00
Dean Camera f201f6697b Run wspurify script on /trunk/ and /branches/ C source files, to remove any trailing whitespace at the end of each line. 2011-12-23 01:51:39 +00:00
Dean Camera 676de74d9b Don't validate the Device Descriptor's vendor ID when validating that a device is an Android Accessory device; the Product ID and (later) Accessory protocol support is enough to probe AOA class support without having to maintain a list of Android device manufacture VID values. 2011-12-14 02:52:42 +00:00
Dean Camera 84a739ae72 Minor XMEGA USB driver fixes. 2011-12-13 03:40:51 +00:00
Dean Camera ec3e47a7d0 Change PIPE_PIPENUM_MASK from 0x07 to the more generic 0x0F to allow for full pipe address support in USB host architectures other than the current AVR8 devices. Minor documentation improvements. 2011-12-11 03:04:16 +00:00
Dean Camera 0c59d5993e Altered the Mass Storage Host class driver so that SCSI data STALLs from the attached device can be recovered from automatically without having to reset the Mass Storage interface.
Altered the Mass Storage Host LowLevel demo so that SCSI data STALLs from the attached device can be recovered from automatically without having to reset the Mass Storage interface.
2011-12-01 08:39:43 +00:00
Dean Camera 70f3d8e933 Add support for the Paranoid Studio USB2AX boards (hardware revisions 1-3). 2011-11-28 23:43:58 +00:00
Dean Camera cdd4e11fa8 Oops - fix incorrect value of AOA_CSCP_AOADataSubclass in the Android Open Accessory class driver. 2011-11-24 21:35:22 +00:00
Dean Camera 38d7cdf803 Minor Doxygen documentation improvements.
Add missing ATTR_NON_NULL_PTR_ARG and const decorations.
2011-11-24 11:59:52 +00:00
Dean Camera 3b99abb5fc Add new USB_Host_GetDescriptor() function. Alter the USB_Host_GetDeviceDescriptor() and USB_Host_GetDeviceStringDescriptor() convenience functions so that they wrap the new function. 2011-11-24 11:46:04 +00:00
Dean Camera e915d968a5 Added new USB_Host_GetDeviceConfiguration() and USB_Host_GetInterfaceAltSetting() functions. 2011-11-24 11:33:10 +00:00
Dean Camera 7f8dbb4908 Convert the LowLevel AndroidAccessory demo to use the new class driver constants to reduce code duplication.
Add missing Doxygen documentation.
2011-11-24 01:31:31 +00:00
Dean Camera 8b5aa61601 Add new Android Open Accessory class driver to the library core and add a new Android Open Accessory Host ClassDriver demo. 2011-11-24 01:24:01 +00:00