aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/USB/Class/Device
Commit message (Collapse)AuthorAgeFilesLines
...
* Refactored Host mode Class Driver *_Host_ConfigurePipes() routines to be ↵Dean Camera2010-12-024-4/+4
| | | | | | more space efficient when compiled. Added new *_ENUMERROR_PipeConfigurationFailed error codes for the *_Host_ConfigurePipes() routines.
* Renamed the EVENT_USB_Device_UnhandledControlRequest() event to ↵Dean Camera2010-11-056-6/+6
| | | | EVENT_USB_Device_ControlRequest() as it is now fired before the library request handlers, not afterwards.
* Fixed MIDI class driver send routines silently discarding packets if the ↵Dean Camera2010-11-031-9/+6
| | | | endpoint or pipe is busy (thanks to Robin Green).
* Changed over www.fourwalledcubicle.com links to the new www.lufa-lib.org ↵Dean Camera2010-10-2812-12/+12
| | | | 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-274-12/+20
| | | | | | 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.
* All USB class drivers are now automatically included when LUFA/Drivers/USB.h ↵Dean Camera2010-10-2412-37/+57
| | | | | | 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.
* Renamed ENDPOINT_DOUBLEBANK_SUPPORTED() to ENDPOINT_BANKS_SUPPORTED() and ↵Dean Camera2010-10-131-3/+3
| | | | 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-1312-272/+283
| | | | tool made by Laszlo Monda
* Fixed MIDI_Host_Flush() not aborting early when the specified MIDI host ↵Dean Camera2010-10-124-13/+13
| | | | | | 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.
* Fix low level host mode demos not correctly fetching the next endpoint when ↵Dean Camera2010-09-306-0/+24
| | | | | | 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-305-72/+151
| | | | | | | | | | 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.
* Fix up incorrect version numbers in demo/project descriptors.Dean Camera2010-09-281-1/+1
| | | | 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-285-20/+20
| | | | | | | | 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-241-2/+3
| | | | | | callback function causing broken GET REPORT requests. Minor whitespace fixes.
* Changed all Device mode LowLevel demos and Device Class drivers so that the ↵Dean Camera2010-08-225-31/+16
| | | | control request is acknowledged and any data transferred as quickly as possible without any processing inbetween sections, so that long callbacks or event handlers will not break communications with the host by exceeding the maximum control request stage timeout period.
* Moved calls to Device mode Class Driver events to after the request has been ↵Dean Camera2010-08-222-8/+11
| | | | | | acknowledged, so that long event handlers do do skew the timing of the control requests. Fixed USBtoSerial and Benito project SetLineEncoding calls failing if the USART is busy, due to the RX ISR delaying the control request handler.
* Clarify in the documentation that the Audio demos and driver is for the ↵Dean Camera2010-08-211-3/+3
| | | | Audio 1.0 specification, not the newer (and more advanced/less supported) 2.0 specification.
* Fix XPLAINBridge project discarding characters from the USB interface due to ↵Dean Camera2010-08-012-11/+12
| | | | | | | | | | | | | | a double read from the endpoint. Make XPLAINBridge and USBtoSerial projects more reliable by forcing a flush if the UART-to-USB buffer becomes nearly full. Reduce locking in the LightweightRingBuffer.h header files by only locking on the update of the buffer count, and require insertions and removals from each buffer to occur in only one execution thread. Fix CDC_*_ReceiveByte() returning 0 when the interface is not configured, instead of the new -1 error value. Fix CDC_Host_ReceiveByte() not re-freezing the pipe if no packet has been received. Remove redundant Pipe token set commands in the CDC and RNDIS host class drivers.
* More spell checking of all source files -- correct missed errors, switch to ↵Dean Camera2010-07-301-1/+1
| | | | EN-GB spelling dictionary.
* Altered the CDC Deivice and Host Class drivers' receive byte routines, so ↵Dean Camera2010-07-302-19/+27
| | | | | | that no data is indicated by a negative return value. Added auto flushing of OUT data to the CDC Host Class driver's USBTask function to automatically flush the send pipe buffer.
* Add missing const qualifiers to class drivers.Dean Camera2010-07-217-38/+66
| | | | Indent core library function parameters so that there is only one parameter per line, to increase readability.
* Fixed MIDI_Device_SendEventPacket() not correctly waiting for the endpoint ↵Dean Camera2010-07-201-1/+1
| | | | to become ready (thanks to Robin Green).
* Update makefiles to use the latest WinAVR/Atmel toolchain makefile template.Dean Camera2010-07-196-6/+6
| | | | Add new module source variables to the library core makefile, so that module sources can be added to a project's makefile on a per-module rather than per-file basis.
* Fixed HID device class driver still using PrevReportINBuffer for GetReport ↵Dean Camera2010-07-151-1/+1
| | | | control requests even when it has been set to NULL by the user application (thanks to Axel Rohde).
* Added const attributes to some of the class driver function parameters that ↵Dean Camera2010-07-137-16/+16
| | | | were missing it.
* Renamed SERIAL_STREAM_ASSERT() macro to STDOUT_ASSERT().Dean Camera2010-06-176-144/+144
| | | | Minor tweaks to the library documentation.
* Spell check code and manual pages. Remove custom Doxygen CSS stylesheet, as ↵Dean Camera2010-06-162-4/+4
| | | | the new 1.7 Doxygen's default stylesheet is much better.
* Change over Doxygen \note documentation to \pre where applicable.Dean Camera2010-06-153-32/+32
|
* Slight improvements to the reliability of the software UART in the ↵Dean Camera2010-06-121-1/+1
| | | | XPLAINBridge project.
* Add missing ATTR_NON_NULL_PTR_ARG and ATTR_ALWAYS_INLINE attributes to class ↵Dean Camera2010-06-084-18/+28
| | | | driver functions.
* More documentation fixes.Dean Camera2010-06-031-12/+12
|
* Minor documentation cleanups.Dean Camera2010-06-035-11/+11
|
* Fix spacing of the function parameter descriptions in the Doxygen documentation.Dean Camera2010-05-293-19/+19
|
* Add new ReportType parameter to the HID class driver device callback and ↵Dean Camera2010-05-092-16/+17
| | | | | | host report sending routines. Renamed internal Host mode Class driver descriptor comparator callback routines so that they all start with a uniform DCOMP_{Class Abbreviation}_ prefix.
* Add svn:eol-style property to source files, so that the line endings are ↵Dean Camera2010-05-0812-2786/+2786
| | | | correctly converted to the target system's native end of line style.
* Device mode class driver callbacks are now fired before the control request ↵Dean Camera2010-05-075-20/+15
| | | | | | status stage is sent to prevent the host from timing out if another request is immediately fired and the device has a lengthy callback routine. Inlined currently unused MIDI ProcessControlRequest routine.
* Added new EVENT_CDC_Device_BreakSent() event and CDC_Host_SendBreak() ↵Dean Camera2010-05-062-0/+21
| | | | function to the Device and Host CDC Class drivers.
* Ensure that the CDC class drivers return 0 if the number of unread bytes is ↵Dean Camera2010-05-061-3/+8
| | | | queried and the bank has become empty.
* The Audio_Device_IsSampleReceived() and Audio_Device_IsReadyForNextSample() ↵Dean Camera2010-04-292-31/+27
| | | | functions are now inline, to reduce overhead.
* Fixed HID Device Class Driver not allocating a temporary buffer when the ↵Dean Camera2010-04-202-4/+9
| | | | | | host requests a report via the control endpoint and the user has set the PrevReportINBuffer driver configuration element to NULL (thanks to Lars Noschinski). Clean up incomplete BluetoothHost debugging commands to use GCC extension to avoid NULL parameters when no formatting is required.
* Removed two-step endpoint/pipe bank clear and switch sequence for smaller, ↵Dean Camera2010-04-131-0/+1
| | | | | | | | faster endpoint/pipe code. Added spacing between multiple paragraphs in Doxygen \note sections. Removed call to the clock prescaler reset function in the Teensy bootloader to save space - the user application is accessed via a watchdog reset anyway, so the prescale reset would only affect the speed of the bootloader itself.
* Add briefs for the library core structures.Dean Camera2010-03-296-7/+31
|
* Add file-level brief documentation.Dean Camera2010-03-296-0/+42
| | | | Remove accidentally duplicated model-specific peripheral driver files.
* Revert changes made for the partial port to the AVR32 architecture.Dean Camera2010-02-241-5/+1
|
* More AVR32 achitecture ports.Dean Camera2010-02-241-1/+5
|
* Add more include protection macros to give the user warnings when they try ↵Dean Camera2010-02-1112-7/+48
| | | | to manually include private driver header files, instead of the public driver headers.
* Fix AVRISP-MKII clone project's TPI Chip Erase command processing - ensure ↵Dean Camera2010-02-081-4/+7
| | | | | | erase location is the high byte in the given address space, check NVMBUSY for completion rather than the NVM Bus Enable bit. Change If-Else chains over to switch statements in XPROGProtocol.c for clarity.
* Be doubly-certain that the incomming CDC class driver's endpoint/pipe is ↵Dean Camera2010-01-281-3/+10
| | | | flushed only once when the bank is empty.
* Fixed incorrect interface values in the VirtualSerialMouse and KeyboardMouse ↵Dean Camera2010-01-121-0/+17
| | | | | | demo class driver structures. Added caveat information to the CDC device class driver.
* Added support to the MIDI Class drivers for packed data, where multiple MIDI ↵Dean Camera2010-01-053-6/+46
| | | | events are packed into a single USB packet. Added new MIDI Class driver flush routines to override packing behaviour.