aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/USB
Commit message (Collapse)AuthorAgeFilesLines
* Updated all host mode demos and projects to use the ↵Dean Camera2011-07-0827-449/+301
| | | | | | | | | | | | | | EVENT_USB_Host_DeviceEnumerationComplete() event callback for device configuration instead of manual host state machine manipulations in the main application task. Added new USB_Host_ConfigurationNumber global variable to indicate the selected configuration in an attached device. Renamed global state variables that are specific to a certain USB mode to clearly indicate which mode the variable relates to, by changing the USB_* prefix to USB_Device_* or USB_Host_*. Removed the HOST_STATE_WaitForDeviceRemoval and HOST_STATE_Suspended host state machine states, as these are no longer required. Altered the USB_Host_SetDeviceConfiguration() function to update the new USB_Host_ConfigurationNumber global as required. Moved out the Host mode standard request convenience/helper functions from the architecture specific Host driver files to the architecture agnostic HostStandardReq.c driver file.
* Tighten up the implementations of the USB_Device_SetDeviceAddress(), ↵Dean Camera2011-07-064-61/+61
| | | | | | USB_Controller_Reset() and USB_PLL_On() functions for the AVR8 devices. Minor corrections to the documentation of the USB_Control_Request_t enum.
* Fix HID_Host_SetIdlePeriod() function to send the correct request type to ↵Dean Camera2011-07-052-3/+3
| | | | the device, remove reference to unavailable (and not needed) local variable.
* Add missing function parameter to the new HID_Host_SetIdlePeriod() function.Dean Camera2011-07-041-1/+2
|
* Add missing function parameter to the new HID_Host_SetIdlePeriod() function.Dean Camera2011-07-042-2/+4
|
* Added new HID_Host_SetIdlePeriod() function to the HID Host Class driver.Dean Camera2011-07-042-0/+26
|
* Merge over core library changes from the MultiArchDemos branch.Dean Camera2011-06-293-3/+6
|
* Minor internal macro renaming for the UC3 devices.Dean Camera2011-06-206-14/+14
|
* Fixed compile error when FIXED_CONTROL_ENDPOINT_SIZE compile time option was ↵Dean Camera2011-06-2018-5/+165
| | | | | | disabled, and a USE_*_DESCRIPTORS compile time option was not enabled on the AVR8s. Add C++ compatibility to some header files currently missing extern "C" linkage.
* Make the HID Report Parser Get/Set Report Item routines fail if a NULL ↵Dean Camera2011-06-201-0/+6
| | | | | | pointer to a report item is given. Minor visual enhancement to the HIDReportViewer project.
* Code style fixes for the Device mode USB Audio Class driver to make it more ↵Dean Camera2011-06-191-2/+8
| | | | in line with the style of the other library Device Class drivers.
* Add missing SVN eol-style properties to source files to prevent mixed ↵Dean Camera2011-06-162-657/+657
| | | | end-of-line characters.
* Rename new Audio class driver functions, callbacks and events to ensure that ↵Dean Camera2011-06-164-25/+28
| | | | they contain the USB mode (Device or Host) in the function names.
* Add macro guards to the templated C files to prevent compile errors if they ↵Dean Camera2011-06-148-2/+272
| | | | are mistakenly compiled as regular source files in a LUFA project.
* Rename Audio Host Class driver internal descriptor matching routines to be ↵Dean Camera2011-06-142-10/+10
| | | | in line with the rest of the class driver function names.
* Ensure that only the requested Audio class pipes are mapped to endpoints ↵Dean Camera2011-06-132-5/+9
| | | | | | within the device for a specific Audio Host Class driver instance. Fix const-correctness of the Audio Host Class driver.
* Fix bugs in the Host mode Audio class driver.Dean Camera2011-06-122-8/+20
|
* Fix errors in the library Host mode Audio Class driver.Dean Camera2011-06-092-9/+10
|
* Fix compile errors when both Host and Device modes are enabled.Dean Camera2011-06-093-3/+3
|
* Add new Audio Class Driver Host demos.Dean Camera2011-06-092-10/+39
| | | | | | Fix errors in the new Audio Host mode Class Driver, which would have prevented data from being sent or received properly by the device. Add microphone/square wave generation compile time switch to the Low Level AudioOutput Host demo.
* Pipe_BoundEndpointNumber() has been renamed to ↵Dean Camera2011-06-088-37/+80
| | | | | | Pipe_GetBoundEndpointAddress(), and now returns the correct endpoint direction as part of the endpoint address. Add Audio_GetSetEndpointProperty() function to the Host mode Audio class driver.
* Remove warnings in the documentation for the library class drivers about ↵Dean Camera2011-06-0814-66/+8
| | | | sequential pipe/endpoint allocation, as by default this is no longer as issue (unless ORDERED_EP_CONFIG is specified).
* Added new Host mode Audio Class driver.Dean Camera2011-06-087-8/+602
| | | | Added new EVENT_Audio_StreamStartStopChange() event to the Audio Device Class driver to detect stream start/stop events.
* Fix compile errors when compiling for the AVR32 UC3 target.Dean Camera2011-06-082-0/+2
|
* Fix errors in the Audio device demos and class driver regarding multiple ↵Dean Camera2011-06-072-17/+17
| | | | sample frequency support.
* Massive corrections to the project documentation and code comments, thanks ↵Dean Camera2011-06-0516-33/+33
| | | | to Russian translation services provided by Andrey from Microsin.ru.
* Added new callback to the Audio Class driver to allow for endpoint control ↵Dean Camera2011-06-034-15/+126
| | | | | | | | | | | | manipulations such as data sample rates. Modified the Class Driver AudioInput and AudioOutput demos to support multiple sample rates. Fixed KeyboardHost and KeyboardHostWithParser demos displaying incorrect values when numerical keys were pressed. Fix broken LowLevel audio demo descriptors. Minor documentation fixes.
* Spell check library source code files.Dean Camera2011-06-0111-17/+17
|
* Fixed incorrect signature in the CDC and DFU class bootloaders for the ↵Dean Camera2011-06-011-1/+1
| | | | | | | | ATMEGA8U2. Minor documentation cleanups. Modify the incomplete AudioInputHost demo for mono audio output.
* Added new incomplete AudioOutputHost Host LowLevel demo.Dean Camera2011-05-301-0/+1
|
* Altered the definition of the USB_Audio_Descriptor_Format_t descriptor so ↵Dean Camera2011-05-305-17/+22
| | | | that the user is now responsible for supplying the supported audio sampling rates, to allow for multiple audio interfaces with different numbers of supported rates and/or continuous sample rates.
* Added new incomplete AudioInputHost Host LowLevel demo.Dean Camera2011-05-292-2/+25
| | | | | | Added missing Audio class control request definitions. Added support for the Audio class GET STATUS request so that it is correctly ACKed when sent by the host.
* Add new USB_Host_SetInterfaceAltSetting() convenience function.Dean Camera2011-05-275-13/+65
|
* Fix incorrect macro guard in the UC3 EndpointStream header file.Dean Camera2011-05-261-2/+2
| | | | Fix incorrect project name in the Projects/ folder makefile.
* Copy out the EndpointStream and PipeStream functions to each architecture, ↵Dean Camera2011-05-2619-1063/+2550
| | | | so that each architecture can optimise the stream functions according to the available hardware (such as DMA, where available).
* Fix broken Doxygen documentation.Dean Camera2011-05-191-7/+7
|
* Add new RNDIS_Host_IsPacketReceived(), RNDIS_Device_ReadPacket() and ↵Dean Camera2011-05-185-70/+140
| | | | | | RNDIS_Device_WritePacket() functions to the Device RNDIS Class Driver. Modify RNDIS demos to suit the simplified Ethernet_Frame_Info_t structure.
* Fixed possible invalid program execution when in host mode if corrupt ↵Dean Camera2011-05-146-22/+55
| | | | | | | | descriptor lengths are supplied by the attached device. Minor code cleanups to add const and reformat where missing, as well as abstract out the internal device signature start address into a macro, so that it can be altered to suit particular devices within a single architecture if needed. Add missing documentation to the USB_Device_States_t enum.
* Minor documentation fixes.Dean Camera2011-05-081-2/+2
|
* Add __VA_ARGS__ support to the LUFA supplied ISR macro. Add proper result ↵Dean Camera2011-04-255-17/+23
| | | | | | | | | | typecasting to the SWAPENDIAN_* macros. Switch to using -1 on the UC3 target to obtain a register mask with all bits set (for clearing interrupts and status flags). Fix incorrect USB controller mode on the UC3 when a fixed mode is specified as a compile time option due to AVR32_USBB.USBCON.uide being set by default. Make USB_Descriptor_String_t use a uint16_t for Unicode strings on all targets except the AVR8 (retained for backwards compatibility).
* Fix reversed descriptions for the AVR8 USB pad regulator enable/disable ↵Dean Camera2011-04-202-3/+4
| | | | masks (thanks to Omar).
* Replace cast-as-char* byte access of multibyte variables with proper shifts ↵Dean Camera2011-04-131-2/+2
| | | | and masks to preserve endianness across different architectures.
* Add missing function attributes to the pipe/endpoint functions for all ↵Dean Camera2011-04-1212-11/+17
| | | | | | architectures. Perform endianness correction in the HID report parser for big-endian platforms.
* Remove redundant type information for bitfield elements, other than the ↵Dean Camera2011-04-107-55/+56
| | | | | | signed/unsignedness of the element. Change type of USB_SelectedPipe and USB_SelectedEndpoint for the AVR32 UC3 architecture to uint32_t to reduce the compiled code size.
* Move global interrupt enable/disable functions out to Common.h and document ↵Dean Camera2011-04-087-79/+13
| | | | them.
* Correct UC3 global interrupt functions.Dean Camera2011-04-083-4/+5
| | | | | | Replace all calls and references to _delay_ms() in the code with the architecture-agnostic Delay_MS() function. Improve code generation for the Delay_MS() function on the AVR8 architecture when called with a constant input.
* Add in a new common Delay_MS() function, which provides a blocking delay for ↵Dean Camera2011-04-0811-56/+133
| | | | | | | | all architectures. Remove use of avr-libc specific ATOMIC_BLOCK, replace with a new per-architecture set of inline functions to retrieve and manipulate the global interrupt enable bit for each architecture. Add in documentation for the USB controller common interrupt routine which must be linked to the interrupt controller in the user application on the AVR32 UC3 architecture.
* Oops - fix misnamed function call in Pipe_Discard_Stream().Dean Camera2011-04-041-1/+1
|
* Oops - fix incorrect variable name in the updated Pipe_Write_8() function.Dean Camera2011-04-041-1/+1
|
* Renamed all low level Endpoint_Read_*, Endpoint_Write_* and ↵Dean Camera2011-04-0415-288/+286
| | | | | | Endpoint_Discard_* functions to use the number of bits instead of a symbolic size (Byte, Word, DWord) so that the function names are applicable and correct across all architectures. Renamed all low level Pipe_Read_*, Pipe_Write_* and Pipe_Discard_* functions to use the number of bits instead of a symbolic size (Byte, Word, DWord) so that the function names are applicable and correct across all architectures.