aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/USB/LowLevel
Commit message (Collapse)AuthorAgeFilesLines
* Fixed Pipe_IsEndpointBound() function not taking the endpoint's direction ↵Dean Camera2010-02-013-4/+22
| | | | | | into account. Re-added Pipe_IsEndpointBound() calls to the CDC and RNDIS host class drivers, not that the function has the correct behaviour for devices with bidirectional endpoints.
* Fix incorrect preprocessor checks in the PLL prescaler mask determination ↵Dean Camera2010-01-161-2/+2
| | | | code for the ATMEGA32U2.
* Fixed invalid USB controller PLL prescaler values for the ATMEGAxxU2 controllersDean Camera2010-01-151-2/+4
| | | | | | Fixed lack of support for the ATMEGA32U2 in the DFU and CDC class bootloaders Changed incomplete Webserver project over to using the uIP timer library.
* Update copyright year to 2010.Dean Camera2009-12-3014-28/+28
|
* Fix MIT license language to make its intent clearer.Dean Camera2009-12-2814-98/+98
|
* Ensure that unsupported SetFeature/ClearFeature request targets cause a ↵Dean Camera2009-12-213-7/+16
| | | | STALL back to the host.
* Added new NO_DEVICE_SELF_POWER and NO_DEVICE_REMOTE_WAKEUP compile time options.Dean Camera2009-12-205-28/+62
|
* Fixed USB_CurrentMode not being reset to USB_MODE_NONE when the USB ↵Dean Camera2009-12-181-1/+1
| | | | interface is shut down and both Host and Device modes can be used (thanks to Daniel Levy).
* Un-inline the SendAddress function in NVMTarget.c/.h of the AVRISP project.Dean Camera2009-12-172-15/+15
| | | | Add new HotmailNotifier project, which changes a LED's colour based on the user's unread email count as sent from Windows Live Messenger.
* Use -pedantic compile time option to find and correct several minor code errors.Dean Camera2009-12-132-11/+11
|
* Fix inverted bit-banged USART logic in the AVRISP project for PDI ↵Dean Camera2009-12-091-1/+1
| | | | programming. Add a delay to the clock toggling in the AVRISP project to ensure that the programming speed does not exceed 10MHz under any conditions to satisfy the limits in the datasheet for all target voltages. Fix incorrect pin being used as the DATA in in PDI programming mode.
* Fix incorrect definition of Endpoint_BytesInEndpoint() for the U4 parts.Dean Camera2009-12-091-2/+4
|
* Increase timeout of Mass Storage and Still Image host commands to 10 seconds ↵Dean Camera2009-12-091-1/+1
| | | | | | | | (up from 5) to account for slow-processing devices. Added brace guards to macros with parameters to prevent unintended changed evaluation of the macro expression. Minor code cleanups (remove redundant comments, fix spacing, etc.).
* Add new USB_Host_GetDeviceStringDescriptor() convenience function.Dean Camera2009-12-062-0/+32
|
* Fix double oops -- Host mode settle delay was still being ignored due to ↵Dean Camera2009-12-041-1/+1
| | | | inverted logic, HID Parser was assigning the usage Min/Max usage value to the report item's collection path rather than the report item itself.
* Oops - fix Host mode pre-enumeration settle delay being ignored leading to ↵Dean Camera2009-12-041-2/+0
| | | | failure to enumerate certain devices.
* Fixed USB driver failing to define the PLL prescaler mask for the ATMEGA8U2 ↵Dean Camera2009-11-291-2/+4
| | | | | | and ATMEGA16U2. Simplified the USB.h master include file's target validity checks.
* Added new RNDIS Host class driver and the beginnings of a RNDISEthernetHost ↵Dean Camera2009-11-261-5/+5
| | | | | | | | Class Driver demo. Fixed all Class drivers to ensure they have appropriate guards on each function to ensure the device is enumerated before running, fixed error codes on all guards to return "DeviceDisconnected" where possble. Renamed HOST_SENDCONTROL_DeviceDisconnect enum value to HOST_SENDCONTROL_DeviceDisconnected to be in line with the rest of the library enum error codes.
* Added new RNDISHost Host LowLevel demo. Fixed misnamed Pipe_SetPipeToken() ↵Dean Camera2009-11-254-8/+8
| | | | macro for setting a pipe's direction. Fixed CDCHost failing on devices with bidirectional endpoints.
* Fixed host state machine not enabling Auto VBUS mode when ↵Dean Camera2009-11-241-5/+6
| | | | HOST_DEVICE_SETTLE_DELAY_MS is set to zero.
* Fixed broken USB_GetNextDescriptor() function causing the descriptor to jump ↵Dean Camera2009-11-241-1/+1
| | | | | | ahead double the expected amount. Fixed Pipe_IsEndpointBound() not masking the given Endpoint Address against PIPE_EPNUM_MASK.
* The incomplete StandaloneProgrammer project now uses Host and Device Mass ↵Dean Camera2009-11-231-8/+4
| | | | | | | | | | | | storage classes, so that program data can either be loaded onto the device's Dataflash storage, or read off an attached USB memory stick. The USB target family and allowable USB mode tokens are now public and documented (USB_CAN_BE_*, USB_SERIES_*_AVR). The SCSI_Request_Sense_Response_t and SCSI_Inquiry_Response_t type defines are now part of the Mass Storage Class driver common defines, rather than being defined in the Host mode Class driver section only. The USB_MODE_HOST token is now defined even when host mode is not available. Added missing CDC_Host_CreateBlockingStream() function code to the CDC Host Class driver.
* Fixed Endpoint_Write_Control_Stream_* functions not sending a terminating IN ↵Dean Camera2009-11-202-1/+6
| | | | when the given data length is zero.
* Fix incorrect compiler error message when F_CLOCK is not defined by the user ↵Dean Camera2009-11-151-1/+1
| | | | (thanks to Dave Lyons).
* Corrections, improvements and additions to the incomplete RNDISHost demo.Dean Camera2009-11-131-1/+1
| | | | Change device demos which use the joystick to use the natural UP, DOWN, LEFT, RIGHT ordering in all demos when checking the joystick's position.
* Minor code cleanups for clarity.Dean Camera2009-11-111-15/+12
|
* Update CDC Class Driver character stream functions to use the correct ↵Dean Camera2009-11-107-35/+35
| | | | | | avr-libc return codes for errors and EOF. Fix pointer arithmetic on void byte buffers by explicitly typecasting the buffer pointers to uint8_t* before altering them.
* Spell check all source code variables, comments and strings.Dean Camera2009-11-093-3/+3
|
* Add optional pipe double banking support to the Host mode Class drivers.Dean Camera2009-11-071-2/+2
| | | | Descriptor processing routines now pass around void pointers rather than uint8_t pointers, as their destination datatype is know well known -- they are just streams of bytes until they are cast to the correct destination type by DESCRIPTOR_CAST.
* Add double banking property to LUFA powered projects in the Projects ↵Dean Camera2009-11-064-16/+16
| | | | directory. Add guards to macro parameters to ensure that formulas passed as parameters don't mess up the internal macro structure.
* Update DevChapter9.c - use the Endpoint_ClearStatusStage() function where ↵Dean Camera2009-11-041-19/+7
| | | | | | possible to reduce code size and (potentially) allow for centralized status stage timeouts. Fix Joystick device demo HID descriptors - buttons should be placed outside the Pointer collection.
* Add const attribute to class driver APIs.Dean Camera2009-11-031-1/+1
| | | | Add new manual pages detailing the advantages of LUFA over the official Atmel USB AVR stack, and reasons why LUFA should be used over a built-from-scratch USB stack.
* Moved USBtoSerial demo the Projects directory, as it is simply an expanded ↵Dean Camera2009-10-187-21/+43
| | | | CDC demo. Added const qualifier to Endpoint/Pipe stream write routines.
* Fix broken Endpoint/Pipe stream templates.Dean Camera2009-10-042-2/+2
| | | | Simplify AudioOutput demos, to reduce the number of cycles needed to process each incomming sample.
* Minor documentation fixups.Dean Camera2009-10-032-26/+26
|
* Removed mostly useless "TestApp" demo, as it was mainly useful only for ↵Dean Camera2009-09-301-1/+1
| | | | | | | | checking for sytax errors in the library. MIDI device demos now receive MIDI events from the host and display note ON messages via the board LEDs. Added beginnings of a MIDI class bootloader.
* Doxygen fixes to \param directives to give data direction in all projects. ↵Dean Camera2009-09-242-2/+2
| | | | Make HID item filtering routines clearer in the HID WithParser demos.
* Add const qualifiers to Host mode Class drivers.Dean Camera2009-09-212-2/+2
| | | | Fix KeyboardHost ClassDriver demo; boot protocol keyboard report structure in the Host Mode HID Class driver uses the full keycode array from the attached device.
* Added new Pipe_IsFrozen() macro to determine if the currently selected pipe ↵Dean Camera2009-09-202-1/+9
| | | | | | | | is frozen. Added new USB_GetHIDReportSize() function to the HID report parser to retrieve the size of a given report by its ID. More additions to the unfinished HID Host Class Driver.
* Remove USE_NONSTANDARD_DESCRIPTOR_NAMES compile time token, split out ↵Dean Camera2009-09-092-12/+3
| | | | | | standard descriptors into seperate USB_Descriptor_* and USB_StdDescriptor_* structures so that both can be used within the one project. Add guard to the HID Host Class driver SetProtocol command, to ensure that the device supports boot protocol mode before issuing the request.
* Add StillImage Host Class Driver functions for opening and closing sessions. ↵Dean Camera2009-09-022-2/+2
| | | | | | Ensure IsActive is set on the interface to allow device functions to run. Fix spelling of "Received" in all source files where it is misspelt "Recieved".
* Oops: Really disable building of Projects/Host/ClassDriver directory in the ↵Dean Camera2009-08-261-4/+8
| | | | | | | | Projects/Host/ makefile. Add more skeleton functions and definitions to the Mass Storage Host mode Class driver. Made Endpoint_Write_DWord_* functions echo the structure of the matching Endpoint routines for clarity.
* Optimized Endpoint_Read_Word_* and Pipe_Read_Word_* macros to reduce ↵Dean Camera2009-08-252-16/+32
| | | | | | compiled size. Fixed Programmer's Notepad project file to reflect new location of AVRISP project.
* Add LOAD ADDRESS command parsing to the V2 Protocol hander in the AVRISP ↵Dean Camera2009-08-202-21/+21
| | | | | | project. Fix up references to functions in the Endpoint/Pipe documentation.
* Fixed invalid data being returned when a GetStatus request is issued in ↵Dean Camera2009-08-181-0/+2
| | | | | | Device mode with an unhandled data recipient. Fix up Programmers Notepad Project file to show new Projects directory layout. Remove now moved AVRISP project from the Projects directory makefile.
* Added beginnings of a new AVRISP-MKII clone project.Dean Camera2009-08-171-0/+8
| | | | | | Added new Endpoint_SetEndpointDirection() macro to set the current endpoint direction for bidirectional endpoints. Renamed internal USB_INT_ENDPOINT_SETUP macro to USB_INT_RXSTPI to fit in with the rest of the interrupt vector macros.
* Added new EVENT_USB_Device_StartOfFrame() event, controlled by the new ↵Dean Camera2009-08-161-0/+15
| | | | USB_Device_EnableSOFEvents() and USB_Device_DisableSOFEvents() macros to give bus-synchronised millisecond interrupts when in USB device mode.
* Added CDC_Device_Flush() command to the CDC Device mode class driver.Dean Camera2009-08-131-4/+0
| | | | | | Minor updates to the unfinished SideShow demo for clarity. Added unfinished MassStorageHost class driver demo.
* Cleanups to RNDIS device demos. Fix issue in RNDIS demos where the memory ↵Dean Camera2009-08-071-11/+2
| | | | | | | | would become corrupted due to an incorrect bounds check when iterating over the port state table, causing random resets. Revert change to Template_Endpoint_Control_R.c, which broke control stream reads. Remove uneeded ADC.h include in the class driver AudioOutput demo.
* Make Endpoint control transfers more reliable; early-abort when an ↵Dean Camera2009-08-061-2/+11
| | | | | | incomplete packet is sent from the host (indicating end of transfer), add check for control reads to ensure that no more than wLength bytes are read from the interface. Condense sequential printf_P/puts_P calls to single printf_P calls for size and clarity.