aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Added board hardware driver support for the Arduino Uno development board.Dean Camera2010-09-283-4/+135
| | | | Fixed incorrect LEDs_ChangeLEDs() function in the Benito board LED driver.
* 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.
* Make device mode configure the control endpoint even before the bus has been ↵Dean Camera2010-09-191-12/+14
| | | | reset, so that the device will enumerate correctly on hosts that do not reset the device before initial use.
* More simplifications to USBController.c, fix errors and warnings when ↵Dean Camera2010-09-191-8/+12
| | | | compiled for the series 2 USB AVRs.
* Fix warning when not compiled for UID auto-selection mode.Dean Camera2010-09-191-0/+2
|
* Clean up USBController.c/.h to more clearly seperate out host and device ↵Dean Camera2010-09-193-135/+111
| | | | | | setup and reset paths. Make USBInterrupt.c process all pending USB host mode interrupts before resetting the bus, so that no interrupts are lost when in UID auto-selection mode.
* Ensure device address latch bit is not set at the same time as the new ↵Dean Camera2010-09-194-13/+25
| | | | | | | | address, as per datasheet. Minor documentation fixes. Fix broken USB host mode due to the USB frame counter not being updated during the early enumeration steps, causing USB_Host_DelayMS() to spinloop forever.
* Removed the EVENT_USB_InitFailure() event, as not specifying a USB mode to ↵Dean Camera2010-09-154-35/+2
| | | | USB_Init() now defaults the controller into UID selection mode.
* Fix incorrect documentation on the Get Descriptor standard request.Dean Camera2010-09-151-4/+6
|
* Fixed incorrect signature reported in the CDC class bootloader for the ↵Dean Camera2010-09-141-1/+1
| | | | ATMEGA32U2.
* Added board hardware driver support for the BUI development board.Dean Camera2010-09-1443-153/+286
|
* Added board hardware driver support for the UDIP development board.Dean Camera2010-09-146-7/+261
|
* Fixed SET FEATURE and CLEAR FEATURE control requests directed at an ↵Dean Camera2010-09-133-16/+16
| | | | unconfigured endpoint causing request timeouts.
* Minor documentation phrasing changes.Dean Camera2010-09-121-5/+5
|
* Added PRNT_Host_SendByte() and PRNT_Host_Flush() functions to the Host mode ↵Dean Camera2010-09-112-13/+95
| | | | | | Printer Class driver. Modified PRNT_Host_USBTask() to flush the output pipe on each call.
* Whitespace corrections.Dean Camera2010-09-094-41/+41
|
* Added class specific descriptor type defines with standard USB-IF element ↵Dean Camera2010-09-096-101/+460
| | | | naming.
* Added LEDs_ToggleLEDs() function to several board LED drivers which were ↵Dean Camera2010-09-0910-11/+21
| | | | | | missing it (thanks to Andrei Krainev). Simplify some of the LED driver functions to produce more compact code.
* Added new PRNT_Host_BytesReceived() and PRNT_Host_ReceiveByte() functions to ↵Dean Camera2010-09-072-13/+91
| | | | the Print Host Class driver.
* Must save and restore the endpoint/pipe interrupt enable flags during ↵Dean Camera2010-09-072-0/+8
| | | | reconfiguration of all endpoints/pipes in the Endpoint_ConfigureEndpoint() and Pipe_ConfigurePipe() routines.
* Fix bug in Pipe_ConfigurePipe() breaking already configured pipes that was ↵Dean Camera2010-09-051-7/+17
| | | | accidentally clearing the pipe's IN mode.
* Added new USB_Device_GetFrameNumber() and USB_Host_GetFrameNumber() ↵Dean Camera2010-09-059-26/+104
| | | | | | | | functions to retrieve the current USB frame number. Added new USB_Host_EnableSOFEvents(), USB_Host_DisableSOFEvents() and EVENT_USB_Host_StartOfFrame() for the user application handling of USB Start of Frame events while in USB Host mode. Changed over all demos, drivers and internal functions to use the current frame number over the Start of Frame flag where possible to free up the Start of Frame flag for interrupt use in the user application.
* Reduced HOST_DEVICE_SETTLE_DELAY_MS to 1000ms down from 1500ms to improve ↵Dean Camera2010-09-041-3/+4
| | | | device compatibility while in USB Host mode, as some devices will drop off the USB bus if no connection is made within a timeout period.
* Added board hardware driver support for the USBFOO development board.Dean Camera2010-09-044-0/+229
|
* Added board hardware driver support for the Olimex AVR-USB-162 development ↵Dean Camera2010-09-038-4/+249
| | | | board (thanks to Steve Fawcett).
* Clarify in the project documentation files what the each of the different ↵Dean Camera2010-08-311-4/+4
| | | | USB AVR device "series" comprises of.
* Fix incorrect ADC driver documentation for the parameters of ADC_Init(), fix ↵Dean Camera2010-08-311-30/+32
| | | | incorrect call to ADC_Init() in the TemperatureDatalogger project.
* Better documentation for the Endpoint_ConfigureEndpoint() and ↵Dean Camera2010-08-243-29/+55
| | | | Pipe_ConfigurePipe() functions.
* Fixed LowLevel PrinterHost demo not sending control requests to the attached ↵Dean Camera2010-08-241-4/+4
| | | | printer with the correct printer interface wIndex value.
* Changed the signature of the CALLBACK_USB_GetDescriptor() callback function ↵Dean Camera2010-08-242-3/+3
| | | | so that the descriptor pointer is const, to remove the need for extra casting inside the callback (thanks to Jonathan Kollasch).
* Fix Doxygen typos in Device.h.Dean Camera2010-08-241-3/+3
|
* Optimise Endpoint_ConfigureEndpoint_Prv() function to produce smaller code ↵Dean Camera2010-08-221-0/+11
| | | | when CONTROL_ONLY_DEVICE compile time token is defined.
* Split out endpoint and pipe stream functions into new EndpointStream.c/.h ↵Dean Camera2010-08-2214-1143/+1294
| | | | and PipeStream.c/.h files.
* 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.
* Added compile time error to the AVRISP-MKII project when built for the U4 ↵Dean Camera2010-08-221-0/+2
| | | | chips, as the default VTARGET detection ADC channel does not exist on these chips (thanks to Marco).