aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Host
Commit message (Collapse)AuthorAgeFilesLines
* Add partial project documentation to the incomplete PrinterHost demo.Dean Camera2009-07-196-61/+109
| | | | | | Change over Printer_GetDeviceID() to require a pointer to the destination buffer plus the buffer size, rather than using a pointer to a special structure. Make new Printer_SendData() function to hide the implementation of sending data to an attached printer, cleaning up the main demo source file body.
* Fix PrinterHost demo so that it will only enumerate printers with ↵Dean Camera2009-07-194-31/+45
| | | | Bidirectional protocol encapsulation. Change enumeration code to automatically select the correct alternate setting for the printer interface to select the bidirectional protocol.
* Fixed incorrect PIPE_EPNUM_MASK mask causing pipe failures on devices with ↵Dean Camera2009-07-192-5/+6
| | | | endpoint addresses of 8 and above (thanks to John Andrews).
* Magstripe Project: Ensure that empty tracks still print out a newline ↵Dean Camera2009-07-194-22/+59
| | | | | | seperator so that the host always knows what track data is being sent. Updates to PrinterHost demo to include some PCL test data plus fixes to the GetDeviceID routine.
* Added new TOTAL_NUM_CONFIGURATIONS option, removed ↵Dean Camera2009-07-161-0/+1
| | | | | | USE_SINGLE_DEVICE_CONFIGURATION compile time option (but silently convert it to USE_SINGLE_DEVICE_CONFIGURATION internally for compatibility). Added new USE_FLASH_DESCRIPTORS compile time option. By default, descriptors can now lie in mixed memory spaces (specified by a new parameter to the CALLBACK_USB_GetDescriptor() function) unless one of the USE_*_DESCRIPTORS compile time option is specified.
* Added compatibility list to the documentation of each individual demo.Dean Camera2009-07-139-0/+63
| | | | | | Documented FAST_STREAM_TRANSFERS compile time option. Reduced the TCP window size for the RNDIS demos (Class and LowLevel) to make them compatible with the AT90USB64x.
* Added new HOST_STATE_WaitForDeviceRemoval host state machine state for ↵Dean Camera2009-07-1311-61/+62
| | | | | | 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.
* Seperated out parts of the PrinterHost incomplete demo into a seperate Lib ↵Dean Camera2009-07-135-74/+178
| | | | | | subdirectory. Fixed Host mode to Device mode UID change not causing a USB Disconnect event when a device was connected.
* Fixed compilation error in incomplete BluetoothHost demo.Dean Camera2009-07-112-2/+2
|
* Added incomplete PrinterHost demo application.Dean Camera2009-07-1124-15/+1290
| | | | | | Seperated out Lib components of the incomplete BluetoothHost demo application out into a seperate Lib subfolder. Changed F_CLOCK entries in project makefiles to alias to F_CPU by default, as this is the most common case.
* Added const modifiers to device mode class drivers.Dean Camera2009-06-2810-48/+48
| | | | | | 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).
* Optimize vendor/product description string display code in MassStorageHost.Dean Camera2009-06-2649-20597/+17
| | | | | | | | Remove all Host mode class demos other than the CDCHost class driver demo, so that they can be re-added as they are made once the host mode class framework is designed. Fixed USB_Host_SendControlRequest() not re-suspending the USB bus when initial device ready-wait fails. Fixed USB Pad regulator not being disabled on some AVR models when the USB_OPT_REG_DISABLED option is used.
* Oops - SCSI INQUIRY data uses fixed-length, non-terminated strings -- need ↵Dean Camera2009-06-232-1/+11
| | | | to copy the strings to a temp buffer and terminate before using them in printf.
* MassStorageHost demo now retrieves Inquiry data from the device during ↵Dean Camera2009-06-233-2/+115
| | | | enumeration, and prints the device's Vendor and Product IDs.
* Fixed MassStorage demo not clearing the reset flag when a Mass Storage Reset ↵Dean Camera2009-06-231-0/+1
| | | | is issued while not processing a command.
* Pipe_ConfigurePipe() now automatically defaults IN pipes to accepting ↵Dean Camera2009-06-2310-22/+0
| | | | infinite IN requests, this can still be changed by calling the existing \ref Pipe_SetFiniteINRequests() function.
* Fixed CDCHost demo unfreezing IN pipes during configuration, rather than ↵Dean Camera2009-06-232-3/+7
| | | | | | during use. Changed Pipe stream functions to automatically set the pipe token, allowing them to be used on bidirectional pipes without having to explicitly call Pipe_SetPipeToken() beforehand.
* Trim unique serial number created by the USE_INTERNAL_SERIAL option to 12 ↵Dean Camera2009-06-211-1/+1
| | | | characters rather than 20 - apparently Windows will implode if a serial number is too long.
* Added USE_INTERNAL_SERIAL compile time option to automatically read out the ↵Dean Camera2009-06-201-1/+1
| | | | internal unique serial number as the device's serial number descriptor on supported AVR models.
* Fix makefiles -- the auto-addition of -D switches to each LUFA compile time ↵Dean Camera2009-06-1918-88/+88
| | | | 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.
* Move LUFA compile time options to a new section in the application makefiles ↵Dean Camera2009-06-1917-53/+142
| | | | for clarity.
* Extend USB_GetDeviceConfigDescriptor() routine to require the configuration ↵Dean Camera2009-06-1910-18/+19
| | | | number within the device to fetch, to add support for multi-configuration devices.
* Re-add in simple scheduler for compatibility with legacy code, mark all ↵Dean Camera2009-06-191-3/+11
| | | | scheduler related files as deprecated.
* Break device mode class driver interfaces into seperate config and state ↵Dean Camera2009-06-182-21/+33
| | | | structs which are then combined, for clarity. Move device mode class driver interfaces back into the device mode class driver headers from the common class headers to make room for host class interfaces.
* Added new USB_Host_ClearPipeStall() convenience function to clear a stall ↵Dean Camera2009-06-185-41/+6
| | | | | | | | | | 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().
* Remove hardcoded DOT path from all Doxygen config files.Dean Camera2009-06-1616-16/+16
| | | | Better documentation for the MissleLauncher project - add credit to PyLauncher project.
* Added new USB_Host_SetDeviceConfiguration() convenience function. Change ↵Dean Camera2009-06-168-243/+140
| | | | over Low Level host demos to use the new routine.
* Remove ConfigDescriptor.c/.h files from the ClassDriver Host demos, as they ↵Dean Camera2009-06-1532-2073/+21
| | | | will be obsoleted when the Host mode class drivers are complete. Add new StillImage stub class driver common header.
* Fixed broken HIDReportParser.c.Dean Camera2009-06-151-1/+1
|
* More Doxygen fixes - ensure no undocumented function parameters.Dean Camera2009-06-1516-16/+16
|
* Enhanced class drivers to use the same public/private section seperations as ↵Dean Camera2009-06-151-0/+6
| | | | other portions of the library.
* Add host mode USB Class driver stubs, add beginnings of a CDC host class driver.Dean Camera2009-06-1411-129/+57
| | | | | | Split out common defines/types from class drivers into a seperate common class driver directory. Make central USB Class driver dispatch headers, used for both device and host modes.
* Changed per-device controller preprocessor checks over to per-device series ↵Dean Camera2009-06-143-4/+11
| | | | | | for better device control. Fixed error in Endpoint.c using HSOFI rather than SOFI for counting elapsed milliseconds.
* Fixes to the MIDI device demos (ClassDriver, LowLevel); discard unused ↵Dean Camera2009-06-101-13/+0
| | | | read-in events from the host, use standard MIDI event structure in low level demo rather than sending individual bytes.
* Copy over schedulerless host demos to ClassDrivers directory, for later ↵Dean Camera2009-06-0966-0/+25137
| | | | modification to new Host mode USB class drivers.
* Deleted Host ClassDriver demos -- not yet started, faster to rebase new ↵Dean Camera2009-06-0969-25565/+13
| | | | | | 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.
* Converted Host mode demos to schedulerless. Fixed host mode broken due to ↵Dean Camera2009-06-0831-814/+386
| | | | earlier Start-of-frame event experiments.
* Add master device Host demo makefile.Dean Camera2009-06-0515-0/+2557
| | | | Copy and convert incomplete Bluetooth Host demo to the library.
* Delete host mode demos from the root Host demos folder.Dean Camera2009-06-0564-25165/+0
|
* Copy existing Host mode demos to new ClassDriver and LowLevel subfolders.Dean Camera2009-06-05134-0/+50770
|
* Remove outdated AVRStudio project files from demos, projects, bootloaders. ↵Dean Camera2009-06-058-8/+0
| | | | Fix makefiles of ClassDriver device demos.
* Commit of new class abstraction APIs for all device demos other than the ↵Dean Camera2009-06-013-5/+5
| | | | | | | | | | MIDI demo - not documented yet. Removed scheduler and memory allocation libraries. Added new EVENT_USB_StartOfFrame event in the library to indicate the start of each USB frame (when generated). Removed Tx interrupt from the USBtoSerial demo; now sends characters via polling to ensure more time for the Rx interrupt.
* Moved out each demos' functionality library files (e.g. Ring Buffer library) ↵Dean Camera2009-05-2210-5/+7
| | | | to /Lib directories for a better directory structure.
* Deleted StdDescriptors.c, renamed USB_GetDescriptor() to ↵Dean Camera2009-05-228-16/+8
| | | | CALLBACK_USB_GetDescriptor, moved ConfigDescriptor.c/.h from the LUFA/Drivers/USB/Class/ directory to LUFA/Drivers/USB/HighLevel/ in preperation for the new USB class APIs.
* Rewritten event system to remove all macros, to make user code clearer.Dean Camera2009-05-1840-188/+172
| | | | | | | | 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.
* Create a new function pointer type in StreamCallbacks.h for endpoint/pipe ↵Dean Camera2009-05-151-2/+2
| | | | stream callbacks, to make stream function prototypes clearer.
* Fix to previous patch (make CDCHost demo deallocate pipes when an invalid ↵Dean Camera2009-05-158-32/+44
| | | | | | CDC interface is skipped). Remove the saving of the USB_GetNextDescriptorComp() return value in all host demos, since it went unused anyway; replaced with a simple check against the success error code for clarity.
* Fixed CDCHost not clearing configured endpoints and resetting configured ↵Dean Camera2009-05-151-0/+8
| | | | endpoints mask when a partially enumerated invalid CDC interface is skipped.
* Removed all user pipe/endpoint interrupt APIs, added internal library ↵Dean Camera2009-05-141-6/+0
| | | | support for interrupt driven control endpoints when in device mode by defining INTERRUPT_CONTROL_ENDPOINT token and passing it to the compiler via the -D switch.
* Remove remainder of data pipe interrupt management code from the host demos.Dean Camera2009-05-123-21/+0
|