aboutsummaryrefslogtreecommitdiff
path: root/LUFA/Drivers/USB/LowLevel/Template
AgeCommit message (Collapse)Author
2010-08-22Split out endpoint and pipe stream functions into new EndpointStream.c/.h ↵Dean
and PipeStream.c/.h files. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1449 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-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-05-03Added new ENDPOINT_*_BusSuspended error code to the Endpoint function, so ↵Dean
that the stream functions early-abort if the bus is suspended before or during a transfer. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1230 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-04-14Fixed Set/Clear Feature requests directed to a non-configured endpoint not ↵Dean
returning a stall to the host. Make TeensyHID bootloader use an 8 byte control endpoint to match the official Teensy, just in case Paul decides to authenticate on that attribute in the future. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1208 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-12-20Added new NO_DEVICE_SELF_POWER and NO_DEVICE_REMOTE_WAKEUP compile time options.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@994 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-11-25Added new RNDISHost Host LowLevel demo. Fixed misnamed Pipe_SetPipeToken() ↵Dean
macro for setting a pipe's direction. Fixed CDCHost failing on devices with bidirectional endpoints. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@917 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-11-20Fixed Endpoint_Write_Control_Stream_* functions not sending a terminating IN ↵Dean
when the given data length is zero. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@905 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-11-10Update CDC Class Driver character stream functions to use the correct ↵Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@891 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-10-18Moved USBtoSerial demo the Projects directory, as it is simply an expanded ↵Dean
CDC demo. Added const qualifier to Endpoint/Pipe stream write routines. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@868 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-10-04Fix broken Endpoint/Pipe stream templates.Dean
Simplify AudioOutput demos, to reduce the number of cycles needed to process each incomming sample. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@859 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-08-07Cleanups to RNDIS device demos. Fix issue in RNDIS demos where the memory ↵Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@728 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-08-06Make Endpoint control transfers more reliable; early-abort when an ↵Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@725 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-08-05Make Control Endpoint stream transfers more reliable by adding in early ↵Dean
aborts for unexpected new SETUP tokens, or unexpected status stage during control stream writes. Fix corruption in Device RNDIS demos TCP stack when too many connections attempted simultaneously, freezing the device when a page was re-fetched before the first connection was closed. Fix incorrect model compatibility information in the Host LowLevel demo overview text files. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@722 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-20Fixed PrinterHost demo Printer_GetDeviceID() routine not removing the Device ↵Dean
ID string length from the start of the returned array (thanks to John Andrews). Fixed error in new pipe stream function template system not setting the right device token for R/W operations (also thanks to John Andrews). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@663 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-07-13Added new EEPROM and FLASH buffer versions of the Endpoint and Pipe stream ↵Dean
functions. Changed Endpoint.c and Pipe.c to use a templated system to build the seperate functions, rather than duplicating each function's code many times. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@644 d5102386-fcda-11dd-9fdb-3debd5008f28