aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Host
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Fixed Mouse and Keyboard device demos not acting in accordance with the HID ↵Dean Camera2009-05-126-161/+10
| | | | | | specification for idle periods (thanks to Brian Dickman). Removed support for endpoint/pipe non-control interrupts; these did not act in the way users expected, and had many subtle issues.
* Renamed the the TotalHIDReports element of the HID descriptor structure in ↵Dean Camera2009-05-072-2/+2
| | | | the HID class demos to TotalReportDescriptors, to be more accurate of the element's function (thanks to Brian Dickman).
* Changed HWB board driver to Buttons driver, to allow for the support of ↵Dean Camera2009-05-062-5/+5
| | | | future boards with more than one mounted GPIO button.
* Changed PIPE_CONTROLPIPE_DEFAULT_SIZE from 8 to 64 to try to prevent ↵Dean Camera2009-05-048-8/+8
| | | | | | 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.
* Fix build errors in host demos due to usage of pipe error codes which have ↵Dean Camera2009-05-033-49/+49
| | | | now been renamed.
* Fix minor build errors.Dean Camera2009-05-011-1/+1
|
* Fixed SPI driver init function not clearing SPI2X bit when not needed.Dean Camera2009-04-264-48/+56
| | | | | | Fixed PREVENT ALLOW MEDIUM REMOVAL command issuing in the MassStorageHost demo using incorrect parameters (thanks to Mike Alex). Fixed MassStorageHost demo broken due to an incorrect if statement test in MassStore_GetReturnedStatus().
* Fixed USB_RemoteWakeupEnabled flag never being set (the REMOTE WAKEUP Set ↵Dean Camera2009-04-231-1/+1
| | | | | | Feature request was not being handled). Renamed the FEATURELESS_CONTROL_ONLY_DEVICE compile-time token to CONTROL_ONLY_DEVICE.
* USB_HostRequest renamed to USB_ControlRequest, entire control request header ↵Dean Camera2009-04-2212-17/+17
| | | | | | | | is now read into USB_ControlRequest in Device mode rather than having the library pass only partially read header data to the application. The USB_UnhandledControlPacket event has had its parameters removed, in favour of accessing the new USB_ControlRequest structure. The Endpoint control stream functions now correctly send a ZLP to the host when less data than requested is sent.