aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/USB/LowLevel
Commit message (Collapse)AuthorAgeFilesLines
* Added new ADC_GET_CHANNEL_MASK() convenience macro to the ADC driver.Dean Camera2011-01-161-2/+8
|
* Added new high level TWI packet read/write commands, altered behaviour of ↵Dean Camera2011-01-132-3/+3
| | | | | | the TWI_StartTransmission() function. Spell check source code files.
* Call USB_USBTask() in the Endpoint stream functions between packets if ↵Dean Camera2011-01-102-8/+0
| | | | INTERRUPT_CONTROL_ENDPOINT is not set. Remove calls to USB_USBTask in the Mass Storage class driver stream read/write continuation checks, since this is now done inside the stream function.
* Altered all endpoint/pipe stream transfers so that the new BytesProcessed ↵Dean Camera2011-01-102-0/+8
| | | | | | | | | | parameter now points to a location where the number of bytes in the transfer that have been completed can be stored (or NULL if entire transaction should be performed in one chunk). Added new Endpoint_Null_Stream() and Pipe_Null_stream() functions. Removed the NO_STREAM_CALLBACKS compile time option due to the new partial stream transfer feature replacing it. Fixed errors in the incomplete Test and Measurement device demo preventing proper operation (thanks to Pavel Plotnikov).
* Minor documentation improvements.Dean Camera2011-01-086-82/+85
|
* Update copyright year on all source files.Dean Camera2011-01-0113-26/+26
|
* 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.
* 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-281-1/+1
|
* Move RNDISConstants.h into the RNDIS class driver common definition header.Dean Camera2010-10-284-6/+30
| | | | 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-2813-13/+13
| | | | redirect domain, including the new aliased links for LUFA-related pages such as the various download/source control mirrors and support lists.
* Better algorithm to extract and convert the internal device serial number ↵Dean Camera2010-10-241-1/+1
| | | | | | 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-131-18/+18
| | | | 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-1313-370/+383
| | | | tool made by Laszlo Monda
* Fixed MIDI_Host_Flush() not aborting early when the specified MIDI host ↵Dean Camera2010-10-122-6/+6
| | | | | | 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-127-75/+71
| | | | | | | | 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().
* 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-061-3/+5
| | | | multiple checks are required in a single loop iteration, to reduce compiled code size.
* Fix device mode for the U4 parts.Dean Camera2010-10-011-1/+1
|
* Reverted Endpoint/Pipe non-sequential configuration hack, placed restriction ↵Dean Camera2010-09-304-103/+19
| | | | | | | | | | 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-292-3/+12
| | | | | | project so that it defaults to active low drive. Fixed incorrect USB_DeviceState value when unconfiguring the device without an address set.
* Fixed endpoint selection within the CALLBACK_HID_Device_CreateHIDReport() ↵Dean Camera2010-09-241-1/+1
| | | | | | 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-193-14/+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-193-11/+23
| | | | | | | | 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-153-25/+2
| | | | USB_Init() now defaults the controller into UID selection mode.
* Fixed SET FEATURE and CLEAR FEATURE control requests directed at an ↵Dean Camera2010-09-131-3/+3
| | | | unconfigured endpoint causing request timeouts.
* 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-056-12/+70
| | | | | | | | 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 Olimex AVR-USB-162 development ↵Dean Camera2010-09-031-3/+3
| | | | board (thanks to Steve Fawcett).
* Better documentation for the Endpoint_ConfigureEndpoint() and ↵Dean Camera2010-08-243-29/+55
| | | | Pipe_ConfigurePipe() functions.
* Changed the signature of the CALLBACK_USB_GetDescriptor() callback function ↵Dean Camera2010-08-241-1/+1
| | | | 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-229-1403/+40
| | | | and PipeStream.c/.h files.
* 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).
* Fixed critical pipe/endpoint memory allocation issue where the bank memory ↵Dean Camera2010-08-202-17/+75
| | | | address space could be silently overlapped in the USB controller if the endpoints or pipes were allocated in anything other than ascending order (thanks to Martin Degelsegger).
* Removed complicated logic for the Endpoint_ConfigureEndpoint() function to ↵Dean Camera2010-08-093-140/+111
| | | | | | use inlined or function called versions depending of if the given bank size is a compile time constant, as the compiler does a better job of optimizing with basic code. Changed over all device demos to use a clearer algorithm for the configuring of the application's endpoints.
* More spell checking of all source files -- correct missed errors, switch to ↵Dean Camera2010-07-301-1/+1
| | | | EN-GB spelling dictionary.
* Use static inline intermediatary functions in Endpoint.h to handle the ↵Dean Camera2010-07-271-14/+36
| | | | masking for the private endpoint configuration routine, instead of performing the masking in the Endpoint_ConfigureEndpoint() macro.