aboutsummaryrefslogtreecommitdiff
path: root/LUFA/Drivers/USB/LowLevel/Host.h
AgeCommit message (Collapse)Author
2011-02-19Initial restructuring of the core USB driver module to support multiple ↵Dean
architectures in the future. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1672 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-02-19Add new ARCH option to the makefiles to (eventually) specify the target ↵Dean
device architecture. Update non-usb peripheral drivers to reflect future multiple architecture support. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1669 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-01-13Added new high level TWI packet read/write commands, altered behaviour of ↵Dean
the TWI_StartTransmission() function. Spell check source code files. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1633 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-01-08Minor documentation improvements.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1626 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-01-01Update copyright year on all source files.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1622 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-10-28Changed over www.fourwalledcubicle.com links to the new www.lufa-lib.org ↵Dean
redirect domain, including the new aliased links for LUFA-related pages such as the various download/source control mirrors and support lists. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1541 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-10-13Clean up excessive whitespace at the end of each line using the wspurify ↵Dean
tool made by Laszlo Monda git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1524 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-10-12Fixed MIDI_Host_Flush() not aborting early when the specified MIDI host ↵Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1523 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-10-12Remove USB_MODE_* macros, replace with a semantically linked USB_Modes_t enum.Dean
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(). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1521 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-10-07Added new NO_SOF_EVENTS compile time option, enabled in the bootloaders to ↵Dean
reduce the compiled binary size. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1516 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-09-21Fixed USB_Host_ClearPipeStall() incorrectly attempting to determine the ↵Dean
endpoint's direction from the currently selected pipe. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1491 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-09-05Added new USB_Device_GetFrameNumber() and USB_Host_GetFrameNumber() ↵Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1463 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-09-04Reduced HOST_DEVICE_SETTLE_DELAY_MS to 1000ms down from 1500ms to improve ↵Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1462 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-09-03Added board hardware driver support for the Olimex AVR-USB-162 development ↵Dean
board (thanks to Steve Fawcett). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1460 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-07-22Convert over internal pseudo-function macros to true inline functions for ↵Dean
added type-safety and compile-checking. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1404 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-07-21Add missing const qualifiers to class drivers.Dean
Indent core library function parameters so that there is only one parameter per line, to increase readability. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1398 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-06-17Renamed SERIAL_STREAM_ASSERT() macro to STDOUT_ASSERT().Dean
Minor tweaks to the library documentation. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1343 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-06-16Spell check code and manual pages. Remove custom Doxygen CSS stylesheet, as ↵Dean
the new 1.7 Doxygen's default stylesheet is much better. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1341 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-05-29Fix spacing of the function parameter descriptions in the Doxygen documentation.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1289 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-05-08Add svn:eol-style property to source files, so that the line endings are ↵Dean
correctly converted to the target system's native end of line style. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1248 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-04-28Relocate USBInterrupt.c/.h from the HighLevel USB driver directory to the ↵Dean
LowLevel directory as it is hardware-dependent. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1221 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-03-29Add file-level brief documentation.Dean
Remove accidentally duplicated model-specific peripheral driver files. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1180 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-03-09Fix incorrect LED mask name in the Webserver project.Dean
Fix missing text from the Host Mode States enum documentation. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1161 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-02-24Fix incorrect error when directly including the LUFA internal USB library ↵Dean
components. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1156 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-02-24Revert changes made for the partial port to the AVR32 architecture.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1155 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-02-23More porting of the USB core to the AVR32.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1153 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-02-23Start porting the USB core to the AVR32 UC3B.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1152 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-02-11Add more include protection macros to give the user warnings when they try ↵Dean
to manually include private driver header files, instead of the public driver headers. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1123 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-12-30Update copyright year to 2010.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1032 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-12-28Fix MIT license language to make its intent clearer.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1019 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-12-06Add new USB_Host_GetDeviceStringDescriptor() convenience function.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@952 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-11-06Add double banking property to LUFA powered projects in the Projects ↵Dean
directory. Add guards to macro parameters to ensure that formulas passed as parameters don't mess up the internal macro structure. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@883 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-08-05Renamed all library events to properly seperate out Device and Host mode ↵Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@718 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-07-21Added new USB_DeviceState variable to keep track of the current Device mode ↵Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@676 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-07-20Move unfinished SideShow source files to nested Lib directory for clarity.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@670 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-07-13Added new HOST_STATE_WaitForDeviceRemoval host state machine state for ↵Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@642 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-28Added const modifiers to device mode class drivers.Dean
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). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@636 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-19Fix makefiles -- the auto-addition of -D switches to each LUFA compile time ↵Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@616 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-18Added new USB_Host_ClearPipeStall() convenience function to clear a stall ↵Dean
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(). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@608 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-16Added new USB_Host_SetDeviceConfiguration() convenience function. Change ↵Dean
over Low Level host demos to use the new routine. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@603 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-05-18Rewritten event system to remove all macros, to make user code clearer.Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@554 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-05-13Moved USB Host state machine code out from USBTask.c and into Host.c, where ↵Dean
it more properly belongs. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@547 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-05-07Fixed inability to enumerate any devices while in host mode (broken in a ↵Dean
previous commit). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@538 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-05-04Changed PIPE_CONTROLPIPE_DEFAULT_SIZE from 8 to 64 to try to prevent ↵Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@533 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-04-22Documentation enhancements to improve documentation cross-references.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@522 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-04-19Fixed incorrect HID interface class and subclass values in the Mouse and ↵Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@515 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-04-17More documentation changes for better module-level documentation rather than ↵Dean
file-level documentation. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@513 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-04-16Fixed GenericHIDHost demo report write routine incorrect for control type ↵Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@507 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-04-05Removed all binary constants and replaced with decimal or hexadecimal ↵Dean
constants so that unpatched GCC compilers can still build the code without having to be itself patched and recompiled first. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@496 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-04-01All comments in the library, bootloaders, demos and projects have now been ↵Dean
spell-checked and spelling mistakes/typos corrected. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@492 d5102386-fcda-11dd-9fdb-3debd5008f28