aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/USB
Commit message (Collapse)AuthorAgeFilesLines
* The FAST_STREAM_TRANSFERS compile time option has been removed due to lack ↵Dean Camera2011-01-084-160/+0
| | | | | | of use and low cost/benefit ratio. Add GCC_FORCE_POINTER_ACCESS() macro use to the RingBuffer library header, to attempt to force GCC into producing more efficient code for manipulating the buffers.
* Update Doxygen documentation configuration file for the main project ↵Dean Camera2011-01-031-1/+3
| | | | documentation to the latest version. Add missing data structure documentation briefs.
* Update copyright year on all source files.Dean Camera2011-01-0177-154/+154
|
* Fixed incorrect byte ordering in the Audio_Device_WriteSample24 function ↵Dean Camera2010-12-311-1/+1
| | | | (thanks to WZab).
* Documentation improvements - put driver example code into its own section, ↵Dean Camera2010-12-2631-33/+33
| | | | fix incorrect and missing section names.
* Much more efficient algorithm for the Endpoint/Pipe configuration routine of ↵Dean Camera2010-12-242-79/+69
| | | | unordered endpoints/pipes - only reconfigure the endpoints and pipes above the newly configured endpoint/pipe, and don't cache existing endpoint/pipe configuration before use to save SRAM.
* Re-add in old Endpoint/Pipe workaround for unordered pipes - add new ↵Dean Camera2010-12-245-2/+109
| | | | ORDERED_EP_CONFIG compile time option to override the workaround and use the previous behaviour that imposes correct Endpoint/Pipe ordering but produces smaller compiled code.
* Fixed incorrect definition of the HID_KEYBOARD_SC_D constant in the HID ↵Dean Camera2010-12-131-2/+3
| | | | | | class driver (thanks to Opendous Inc.). Add extra comments to the ISPTarget.c source file in the AVRISP-MKII clone project.
* Fixed HID hpst class driver incorrectly binding to HID devices that do not ↵Dean Camera2010-12-021-1/+4
| | | | have an OUT endpoint.
* Refactored Host mode Class Driver *_Host_ConfigurePipes() routines to be ↵Dean Camera2010-12-0218-65/+240
| | | | | | more space efficient when compiled. Added new *_ENUMERROR_PipeConfigurationFailed error codes for the *_Host_ConfigurePipes() routines.
* Remove internal USB_Device_NibbleToASCII() function in favour of manually ↵Dean Camera2010-11-212-8/+4
| | | | inlined code to prevent compilation errors in -O0 optimisation level.
* Fix documentation reference error.Dean Camera2010-11-051-2/+2
|
* Renamed the EVENT_USB_Device_UnhandledControlRequest() event to ↵Dean Camera2010-11-0510-83/+74
| | | | EVENT_USB_Device_ControlRequest() as it is now fired before the library request handlers, not afterwards.
* Fixed USBtoSerial and XPLAINBridge demos discarding data from the PC if the ↵Dean Camera2010-11-032-2/+0
| | | | send buffer becomes full.
* Minor documentation improvements.Dean Camera2010-11-032-24/+24
|
* Fixed MIDI class driver send routines silently discarding packets if the ↵Dean Camera2010-11-032-18/+12
| | | | endpoint or pipe is busy (thanks to Robin Green).
* Fix XPLAINBridge code broken during the changes to the Rescue Clock ↵Dean Camera2010-11-028-104/+124
| | | | | | generation in the AVRISP-MKII clone project. Change over all low level host mode project's descriptor comparator routines to perform the descriptor casting in a temp variable to make the code clearer and easier to modify (despite being more verbose).
* Oops - typos in the naming of the NBUSYBK0 bits breaking the new busy bank ↵Dean Camera2010-10-292-3/+3
| | | | counting functions.
* Added new Pipe_GetBusyBanks(), Endpoint_GetBusyBanks() and ↵Dean Camera2010-10-292-0/+42
| | | | Endpoint_AbortPendingIN() functions.
* Added standard keyboard HID report scancode defines (thanks to László Monda).Dean Camera2010-10-282-14/+233
|
* Move Set Feature and Clear Feature control request feature selector values ↵Dean Camera2010-10-282-19/+22
| | | | into their own enum.
* Move RNDISConstants.h into the RNDIS class driver common definition header.Dean Camera2010-10-2814-139/+192
| | | | Add logical grouping of related #define values for better Doxygen documentation.
* Changed over www.fourwalledcubicle.com links to the new www.lufa-lib.org ↵Dean Camera2010-10-2878-78/+78
| | | | redirect domain, including the new aliased links for LUFA-related pages such as the various download/source control mirrors and support lists.
* Added new NO_CLASS_DRIVER_AUTOFLUSH compile time option to disable automatic ↵Dean Camera2010-10-278-24/+44
| | | | | | flushing of interfaces when the USB management tasks for each driver is called. The MIDI class drivers now automatically flushes the MIDI interface when the MIDI class driver's USBTask() function is called.
* Changed AudioInput and AudioOutput demos to reload the next sample via an ↵Dean Camera2010-10-261-2/+2
| | | | interrupt rather than polling the sample timer.
* Add descriptor class, subclass and protocol constants to the class drivers, ↵Dean Camera2010-10-2522-131/+237
| | | | | | | | modify all demos to use them where possible. Move out private/internal host class driver constants to the common class driver headers, so that they can be used in the Low Level host mode demos. Ensure all demos, projects and bootloaders use the class driver constants where possible to minimise code repetition.
* All USB class drivers are now automatically included when LUFA/Drivers/USB.h ↵Dean Camera2010-10-2446-220/+258
| | | | | | is included, and no longer need to be seperately included. All LowLevel demos changed to use the constants and types defined in the USB class drivers.
* Better algorithm to extract and convert the internal device serial number ↵Dean Camera2010-10-242-6/+6
| | | | | | into a string descriptor (if present). Fix incorrect warning text when an unsuitable F_CLOCK value is given.
* Renamed ENDPOINT_DOUBLEBANK_SUPPORTED() to ENDPOINT_BANKS_SUPPORTED() and ↵Dean Camera2010-10-132-21/+21
| | | | changed it to return the maximum number of supported banks for the given endpoint.
* Clean up excessive whitespace at the end of each line using the wspurify ↵Dean Camera2010-10-1382-1716/+1791
| | | | tool made by Laszlo Monda
* Fixed MIDI_Host_Flush() not aborting early when the specified MIDI host ↵Dean Camera2010-10-1217-85/+86
| | | | | | interface was not configured. Small documentation improvements to explicitly reference tokens in Doxygen, to ensure that they are converted to cross-reference links in the output files.
* Remove USB_MODE_* macros, replace with a semantically linked USB_Modes_t enum.Dean Camera2010-10-128-77/+73
| | | | | | | | Moved the USB device selection logic for ENDPOINT_TOTAL_ENDPOINTS further up in Endpoint.h to where the endpoint bank capabilities are determined, to reduce the total number of device-specific logic. Change USB_Host_WaitMS() to test and disable the HSOFI interrupt before resuming the bus, so that it does not fire before the delay loop has run. Add missing const qualifier to the parameter of USB_Host_ClearPipeStall().
* Fixed random enumeration failure while in device mode due to interrupts ↵Dean Camera2010-10-121-29/+28
| | | | causing the Set Address request to exceed maximum timings.
* Added new NO_SOF_EVENTS compile time option, enabled in the bootloaders to ↵Dean Camera2010-10-073-37/+53
| | | | reduce the compiled binary size.
* Cache the USB_DeviceState variable internally in the library core when ↵Dean Camera2010-10-063-19/+26
| | | | multiple checks are required in a single loop iteration, to reduce compiled code size.
* Fixed LowLevel JoystickHostWithParser demo not saving the chosen HID ↵Dean Camera2010-10-012-2/+2
| | | | | | interface's report descriptor size. Simplified low level Host demo configuration descriptor parser routines.
* Fix device mode for the U4 parts.Dean Camera2010-10-011-1/+1
|
* Whitespace corrections.Dean Camera2010-10-018-65/+68
| | | | Make Printer Host mode Class driver interface descriptor search routine pre-cast the current interface descriptor to simplify the value checks.
* Make Host mode Class drivers only set the class driver instance's state ↵Dean Camera2010-09-307-138/+74
| | | | values once a compatible interface has been found within the device.
* Fix incorrectly named configuration descriptor callback routines in the host ↵Dean Camera2010-09-304-14/+20
| | | | | | mode class drivers. Fix typo in MIDI low level device demo.
* Fix low level host mode demos not correctly fetching the next endpoint when ↵Dean Camera2010-09-3021-309/+457
| | | | | | an invalid interface is discarded. Update the pipe configuration routines in the host mode class drivers so that they use the same new code to enumerate compatible devices to increase reliability. Add support to the host mode class drivers for non-sequential (but non-overlapping with other interface) pipe numbers.
* Reverted Endpoint/Pipe non-sequential configuration hack, placed restriction ↵Dean Camera2010-09-309-175/+170
| | | | | | | | | | on the configuration order instead to ensure maximum reliability. Altered all low level device and host mode demos to ensure that endpoints and pipes are configured in ascending order properly. Rewrote all low level host mode demos' configuration descriptor parser code to ensure that pipes are enumerated in ascending order, and to ensure maximum compatibility with devices. Incremented all device mode demo's device descriptor revision numbers to ensure that any descriptor changes are re-fetched on machines which have enumerated previous versions.
* Changed default value for the reset polarity parameter in the AVRISP-MKII ↵Dean Camera2010-09-293-4/+16
| | | | | | project so that it defaults to active low drive. Fixed incorrect USB_DeviceState value when unconfiguring the device without an address set.
* Fix up incorrect version numbers in demo/project descriptors.Dean Camera2010-09-2810-62/+65
| | | | Add class name prefixes to missed constants in the class drivers to give all class driver elements a consistent namespace.
* Move out many of the common class driver constants into grouped enums, to ↵Dean Camera2010-09-2821-433/+596
| | | | | | | | make them more managable. Add new CDC descriptor structs to the CDC class driver, so that the CDC demos can use human readable field names. Rename prefix for Still Image Host class driver functions from "SImage_" to "SI_" to remain consistent with the rest of the driver.
* Fixed endpoint selection within the CALLBACK_HID_Device_CreateHIDReport() ↵Dean Camera2010-09-242-3/+4
| | | | | | callback function causing broken GET REPORT requests. Minor whitespace fixes.
* Reverted modifications to USBInterrupt.h that were intefering with correct ↵Dean Camera2010-09-222-11/+7
| | | | | | | | host mode operation. Fixed SUSPI interrupt not being cleared during device mode enumeration, causing accidental mis-fires on re-enumeration. Fixed JTAG_DEBUG_POINT() and JTAG_DEBUG_BREAK() macros not compiling under pure C99 standards mode.
* Oops - need to call USB_Attach() when reinitializing into USB Host mode, or ↵Dean Camera2010-09-211-1/+2
| | | | no devices will be detected.
* Fixed USB_Host_ClearPipeStall() incorrectly attempting to determine the ↵Dean Camera2010-09-212-4/+1
| | | | endpoint's direction from the currently selected pipe.
* Rename internal suspend and wake up USB interrupt macros so that they follow ↵Dean Camera2010-09-194-16/+14
| | | | the same naming scheme as the other USB ISR macros.