aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/USB/LowLevel/Host.h
Commit message (Collapse)AuthorAgeFilesLines
* Added new high level TWI packet read/write commands, altered behaviour of ↵Dean Camera2011-01-131-2/+2
| | | | | | the TWI_StartTransmission() function. Spell check source code files.
* Minor documentation improvements.Dean Camera2011-01-081-11/+11
|
* Update copyright year on all source files.Dean Camera2011-01-011-2/+2
|
* Changed over www.fourwalledcubicle.com links to the new www.lufa-lib.org ↵Dean Camera2010-10-281-1/+1
| | | | redirect domain, including the new aliased links for LUFA-related pages such as the various download/source control mirrors and support lists.
* Clean up excessive whitespace at the end of each line using the wspurify ↵Dean Camera2010-10-131-36/+37
| | | | tool made by Laszlo Monda
* Fixed MIDI_Host_Flush() not aborting early when the specified MIDI host ↵Dean Camera2010-10-121-5/+5
| | | | | | 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-121-1/+1
| | | | | | | | 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-071-19/+25
| | | | reduce the compiled binary size.
* Fixed USB_Host_ClearPipeStall() incorrectly attempting to determine the ↵Dean Camera2010-09-211-1/+1
| | | | endpoint's direction from the currently selected pipe.
* Added new USB_Device_GetFrameNumber() and USB_Host_GetFrameNumber() ↵Dean Camera2010-09-051-0/+27
| | | | | | | | 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).
* Convert over internal pseudo-function macros to true inline functions for ↵Dean Camera2010-07-221-151/+213
| | | | added type-safety and compile-checking.
* Add missing const qualifiers to class drivers.Dean Camera2010-07-211-4/+6
| | | | Indent core library function parameters so that there is only one parameter per line, to increase readability.
* Renamed SERIAL_STREAM_ASSERT() macro to STDOUT_ASSERT().Dean Camera2010-06-171-10/+10
| | | | Minor tweaks to the library documentation.
* Spell check code and manual pages. Remove custom Doxygen CSS stylesheet, as ↵Dean Camera2010-06-161-1/+1
| | | | the new 1.7 Doxygen's default stylesheet is much better.
* Fix spacing of the function parameter descriptions in the Doxygen documentation.Dean Camera2010-05-291-3/+3
|
* Add svn:eol-style property to source files, so that the line endings are ↵Dean Camera2010-05-081-428/+428
| | | | correctly converted to the target system's native end of line style.
* Relocate USBInterrupt.c/.h from the HighLevel USB driver directory to the ↵Dean Camera2010-04-281-1/+1
| | | | LowLevel directory as it is hardware-dependent.
* Add file-level brief documentation.Dean Camera2010-03-291-0/+9
| | | | Remove accidentally duplicated model-specific peripheral driver files.
* Fix incorrect LED mask name in the Webserver project.Dean Camera2010-03-091-2/+4
| | | | Fix missing text from the Host Mode States enum documentation.
* Fix incorrect error when directly including the LUFA internal USB library ↵Dean Camera2010-02-241-1/+1
| | | | components.
* Revert changes made for the partial port to the AVR32 architecture.Dean Camera2010-02-241-59/+33
|
* More porting of the USB core to the AVR32.Dean Camera2010-02-231-29/+49
|
* Start porting the USB core to the AVR32 UC3B.Dean Camera2010-02-231-4/+10
|
* Add more include protection macros to give the user warnings when they try ↵Dean Camera2010-02-111-1/+6
| | | | to manually include private driver header files, instead of the public driver headers.
* Update copyright year to 2010.Dean Camera2009-12-301-2/+2
|
* Fix MIT license language to make its intent clearer.Dean Camera2009-12-281-7/+7
|
* Add new USB_Host_GetDeviceStringDescriptor() convenience function.Dean Camera2009-12-061-0/+16
|
* Add double banking property to LUFA powered projects in the Projects ↵Dean Camera2009-11-061-1/+1
| | | | directory. Add guards to macro parameters to ensure that formulas passed as parameters don't mess up the internal macro structure.
* Renamed all library events to properly seperate out Device and Host mode ↵Dean Camera2009-08-051-3/+3
| | | | | | | | events. Changed the firing conditions for some events to ensure that events are fired by their own USB mode only. Remove VBUS events - not needed as the library takes care of VBUS detection and feedback on supported AVRs via the USB_Device_Connected and USB_Device_Disconnected events. Fixed incorrect Host state assignment in the incomplete BluetoothHost demo.
* Added new USB_DeviceState variable to keep track of the current Device mode ↵Dean Camera2009-07-211-17/+9
| | | | | | | | | | | | USB state. Added new Endpoint_ClearStatusStage() convenience function to assist with the status stages of control transfers. Removed vague USB_IsConnected global - test USB_DeviceState or USB_HostState explicitly to gain previous functionality. Removed USB_IsSuspended global - test USB_DeviceState against DEVICE_STATE_Suspended instead. Fixed possible enumeration errors from spinloops which may fail to exit if the USB connection is severed before the exit condition becomes true.
* Move unfinished SideShow source files to nested Lib directory for clarity.Dean Camera2009-07-201-2/+2
|
* Added new HOST_STATE_WaitForDeviceRemoval host state machine state for ↵Dean Camera2009-07-131-14/+97
| | | | | | non-blocking disabling of device communications until the device has been removed (for use when an error occurs or communications with the device have completed). Changed over all host mode demos to use the new state. Added verbose documentation for each of the USB Host state machine states.
* Added const modifiers to device mode class drivers.Dean Camera2009-06-281-4/+4
| | | | | | Added parameter directions to function parameter documentation. Added new experimental FAST_STREAM_FUNCTIONS compile time option to speed up stream transfers at the expense of a higher FLASH consumption (needs testing to verify improved throughput).
* Fix makefiles -- the auto-addition of -D switches to each LUFA compile time ↵Dean Camera2009-06-191-1/+1
| | | | option was faulty, due to GNUMake becomming confused by the spaces in the USE_STATIC_OPTIONS lines. Make user add in the switches explicitly instead.
* Added new USB_Host_ClearPipeStall() convenience function to clear a stall ↵Dean Camera2009-06-181-0/+25
| | | | | | | | | | condition on an attached device's endpoint. Added new USB_Host_GetDeviceDescriptor() convenience function to retrieve the attached device's Device descriptor. Make Pipe_ConfigurePipe() mask the given endpoint number against PIPE_EPNUM_MASK to ensure the endpoint IN direction bit is cleared to prevent endpoint type corruption. Fix documentation mentioning Pipe_GetCurrentToken() function when real name is Pipe_GetPipeToken().
* Added new USB_Host_SetDeviceConfiguration() convenience function. Change ↵Dean Camera2009-06-161-0/+13
| | | | over Low Level host demos to use the new routine.
* Rewritten event system to remove all macros, to make user code clearer.Dean Camera2009-05-181-3/+3
| | | | | | | | Fixed incorrect ENDPOINT_EPNUM_MASK mask preventing endpoints above EP3 from being selected (thanks to Jonathan Oakley). Removed STREAM_CALLBACK() macro - callbacks now use regular function definitions to clarify user code. Removed DESCRIPTOR_COMPARATOR() macro - comparators should now use regular function definitions to clarify user code.
* Moved USB Host state machine code out from USBTask.c and into Host.c, where ↵Dean Camera2009-05-131-1/+5
| | | | it more properly belongs.
* Fixed inability to enumerate any devices while in host mode (broken in a ↵Dean Camera2009-05-071-2/+2
| | | | previous commit).
* Changed PIPE_CONTROLPIPE_DEFAULT_SIZE from 8 to 64 to try to prevent ↵Dean Camera2009-05-041-4/+3
| | | | | | problems with faulty devices which do not respect the given wLength value when reading in the device descriptor. Further documentation improvements - removed file view from the main library documentation, replaced file references in the documentation with group references.
* Documentation enhancements to improve documentation cross-references.Dean Camera2009-04-221-7/+7
|
* Fixed incorrect HID interface class and subclass values in the Mouse and ↵Dean Camera2009-04-191-1/+1
| | | | | | | | KeyboardMouse demos (thanks to Brian Dickman). Capitolised the "Descriptor_Search" and "Descriptor_Search_Comp" prefixes of the values in the DSearch_Return_ErrorCodes_t and DSearch_Comp_Return_ErrorCodes_t enums. Minor documentation improvements.
* More documentation changes for better module-level documentation rather than ↵Dean Camera2009-04-171-7/+2
| | | | file-level documentation.
* Fixed GenericHIDHost demo report write routine incorrect for control type ↵Dean Camera2009-04-161-53/+93
| | | | | | | | | | | | | | | | | | requests (thanks to Andrei Krainev). Removed Endpoint_ClearCurrentBank() and Pipe_ClearCurrentBank() in favour of new Endpoint_ClearIN(), Endpoint_ClearOUT(), Endpoint_ClearControlIN(), Endpoint_ClearControlOUT(), Pipe_ClearIN(), Pipe_ClearOUT(), Pipe_ClearControlIN() and Pipe_ClearControlOUT() macros (done to allow for the detection of packets of zero length). Renamed *_ReadWriteAllowed() macros to *_IsReadWriteAllowed() to remain consistent with the rest of the LUFA API. Endpoint_IsSetupReceived() macro has been renamed to Endpoint_IsSETUPReceived(), Endpoint_ClearSetupReceived() macro has been renamed to Endpoint_ClearControlSETUP(), the Pipe_IsSetupSent() macro has been renamed to Pipe_IsSETUPSent() and the Pipe_ClearSetupSent() macro is no longer applicable and should be removed - changes made to compliment the new endpoint and pipe bank management API. Updated all demos, bootloaders and projects to use the new endpoint and pipe management APIs (thanks to Roman Thiel). Updated library doxygen documentation, added groups, changed documentation macro functions to real functions for clarity. Removed old endpoint and pipe aliased read/write/discard routines which did not have an explicit endian specifier for clarity. Removed the ButtLoadTag.h header file, as no one used for its intended purpose anyway.
* Removed all binary constants and replaced with decimal or hexadecimal ↵Dean Camera2009-04-051-1/+1
| | | | constants so that unpatched GCC compilers can still build the code without having to be itself patched and recompiled first.
* All comments in the library, bootloaders, demos and projects have now been ↵Dean Camera2009-04-011-3/+3
| | | | spell-checked and spelling mistakes/typos corrected.
* Moved all source to the trunk directory.Dean Camera2009-02-231-0/+245