aboutsummaryrefslogtreecommitdiff
path: root/Demos/Host/LowLevel/MassStorageHost/Lib
AgeCommit message (Collapse)Author
2012-06-09Spell check source code, fix mistakes.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2322 d5102386-fcda-11dd-9fdb-3debd5008f28
2012-02-29Update StaticAnalysisTest to check for missing header files. Fix found ↵Dean
incorrect header file paths in the demos and projects. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2076 d5102386-fcda-11dd-9fdb-3debd5008f28
2012-02-04Update file contributor copyrights for 2012.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2026 d5102386-fcda-11dd-9fdb-3debd5008f28
2012-02-04Update file header copyrights for 2012.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2025 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-12-23Run wspurify script on /trunk/ and /branches/ C source files, to remove any ↵dean
trailing whitespace at the end of each line. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2007 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-12-01Altered the Mass Storage Host class driver so that SCSI data STALLs from the ↵Dean
attached device can be recovered from automatically without having to reset the Mass Storage interface. Altered the Mass Storage Host LowLevel demo so that SCSI data STALLs from the attached device can be recovered from automatically without having to reset the Mass Storage interface. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2001 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-11-28Remove unnecessary ErrorCode variable initializations from the LowLevel Host ↵Dean
mode demos. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1995 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-08-24Renamed USB_Host_ClearPipeStall() to USB_Host_ClearEndpointStall() as the ↵Dean
function works on an endpoint address within the attached device, and not a Pipe within the host. Updated MS_Host_ResetMSInterface() to now perform a full Mass Storage reset sequence to prevent data corruption in the event of a device lock up or timeout (thanks to David Lyons). Add parenthesis around the library Endianness macros that do nothing on a particular architecture to prevent operator precedence issues depending on usage. Minor documentation corrections. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1914 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-07-11Minor demo/project documentation and style fixes.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1853 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-01-10Altered all endpoint/pipe stream transfers so that the new BytesProcessed ↵Dean
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). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1628 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-25Add descriptor class, subclass and protocol constants to the class drivers, ↵Dean
modify all demos to use them where possible. Move out private/internal host class driver constants to the common class driver headers, so that they can be used in the Low Level host mode demos. Ensure all demos, projects and bootloaders use the class driver constants where possible to minimise code repetition. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1538 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-10-24All USB class drivers are now automatically included when LUFA/Drivers/USB.h ↵Dean
is included, and no longer need to be seperately included. All LowLevel demos changed to use the constants and types defined in the USB class drivers. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1537 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-09-30Reverted Endpoint/Pipe non-sequential configuration hack, placed restriction ↵Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1502 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-09-28Move out many of the common class driver constants into grouped enums, to ↵Dean
make them more managable. Add new CDC descriptor structs to the CDC class driver, so that the CDC demos can use human readable field names. Rename prefix for Still Image Host class driver functions from "SImage_" to "SI_" to remain consistent with the rest of the driver. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1497 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-08-20Added new SCSI_ASENSE_NOT_READY_TO_READY_CHANGE constant to the Mass Storage ↵Dean
class driver, to indicate when a previously not ready removable medium has now become ready for the host's use (thanks to Martin Degelsegger) git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1442 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-07-26Rename reserved members of all structs so that they are uniformly named ↵Dean
across all demos/projects/bootloaders. Added start of the Incomplete TMC demo's command parser code. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1411 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-07-21Update all demos, projects and bootloaders to indent all function ↵Dean
parameters, one per line, for better readability. Add missing const qualifiers to the demos. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1400 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-06-03More documentation fixes.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1313 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-06-03Minor documentation cleanups.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1312 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
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-09Increase timeout of Mass Storage and Still Image host commands to 10 seconds ↵Dean
(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.). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@957 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-12-04Fixed Mass Storage Host Class driver and Low Level demo not clearing the ↵Dean
error condition if an attached device returns a STALL to a GET MAX LUN request (thanks to Martin Luxen). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@951 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-11-09Spell check all source code variables, comments and strings.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@889 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-10-08Application documentation/comment cleanup.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@862 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-08-27Condensed SCSI command functions in the LowLevel Mass Storage Host demo, to ↵Dean
save on FLASH space. Fixed issue in AVRISP project where the target RESET line was being toggled before it was tristated, causing problems synchronising to some targets (thanks to Mike Alex). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@787 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-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-23MassStorageHost demo now retrieves Inquiry data from the device during ↵Dean
enumeration, and prints the device's Vendor and Product IDs. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@630 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-23Fixed MassStorage demo not clearing the reset flag when a Mass Storage Reset ↵Dean
is issued while not processing a command. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@629 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-09Deleted Host ClassDriver demos -- not yet started, faster to rebase new ↵Dean
ClassDriver demos from the newly schedulerless LowLevel host demos rather than re-convert each demo from the previous scheduler-based implementations. Fixes to MassStorageHost demo to improve compatibility with more USB drives. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@585 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-08Converted Host mode demos to schedulerless. Fixed host mode broken due to ↵Dean
earlier Start-of-frame event experiments. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@580 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-05Copy existing Host mode demos to new ClassDriver and LowLevel subfolders.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@576 d5102386-fcda-11dd-9fdb-3debd5008f28