aboutsummaryrefslogtreecommitdiff
path: root/Demos/OTG
AgeCommit message (Collapse)Author
2009-09-29Remove old OTG demo directory with useless TestApp demo. Add new DualRole ↵Dean
directory with new Class Driver powered Mouse dual role demonstration application showing a dual role device using the HID host/device Class drivers. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@847 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-09-09Remove USE_NONSTANDARD_DESCRIPTOR_NAMES compile time token, split out ↵Dean
standard descriptors into seperate USB_Descriptor_* and USB_StdDescriptor_* structures so that both can be used within the one project. Add guard to the HID Host Class driver SetProtocol command, to ensure that the device supports boot protocol mode before issuing the request. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@820 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-09-06Add in new invalid event hook check targets to project makefiles to produce ↵Dean
compilation errors when invalid event names are used in a project. Re-add in flip, flip-ee, dfu and dfu-ee targets to project makefiles (thanks to Opendous Inc.) Fix allowable F_CPU values comment in project makefiles. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@812 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-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-08-02Fix build error in TestApp demo caused by previous commit.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@713 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-08-02Rename TOTAL_NUM_CONFIGURATIONS to FIXED_NUM_CONFIGURATIONS, to match the ↵Dean
existing FIXED_CONTROL_ENDPOINT_SIZE compile time option. Add FIXED_NUM_CONFIGURATIONS to the descriptors of each project using the option. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@712 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-07-28Change project makefiles so that the current target settings and not just ↵Dean
the board selection is printed during the build process. Fix warning in AudioOutput demos when AUDIO_OUT_STEREO output mode is selected. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@694 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-07-20Change Doxygen configuration files to not produce 4096 directories for the ↵Dean
documentation files -- the LUFA components do not generate enough documentation files to justify the large performance hit of creating so many directories. Fix missing Doxygen documentation in the Class Driver Mass Storage Device demo. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@668 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-07-20Added error codes to most StillImageHost demo commands.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@659 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-07-19Don't send terminal RESET codes via serial - just set the foreground colour ↵Dean
and assume the user has the background set to something sane, so that the demos don't wipe out custom user terminal settings. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@658 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-07-19Use sane ANSI terminal escape codes for the Host mode demos, so that they do ↵Dean
not cause eye-searing, unreadable text on terminals which parse the escape codes properly. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@657 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-07-16Added new TOTAL_NUM_CONFIGURATIONS option, removed ↵Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@649 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-07-11Added incomplete PrinterHost demo application.Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@639 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-22Corrected the ADC driver for the ATMEGA16U4 and ATMEGA32U4 (thanks to ↵Dean
Opendous Inc.). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@625 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-19Move LUFA compile time options to a new section in the application makefiles ↵Dean
for clarity. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@615 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-16Remove hardcoded DOT path from all Doxygen config files.Dean
Better documentation for the MissleLauncher project - add credit to PyLauncher project. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@607 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-15More Doxygen fixes - ensure no undocumented function parameters.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@597 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-05Remove outdated AVRStudio project files from demos, projects, bootloaders. ↵Dean
Fix makefiles of ClassDriver device demos. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@573 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-04Fixed EVENT_USB_CDC_ControLineStateChanged() event not taking the CDC ↵Dean
interface structure as a parameter. Converted TestApp demo over to the new demo structure. More class driver documentation improvements. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@569 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-04Fix Doxygen errors in demos.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@567 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-01Commit of new class abstraction APIs for all device demos other than the ↵Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@562 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-05-22Deleted StdDescriptors.c, renamed USB_GetDescriptor() to ↵Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@558 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-17Removed DESCRIPTOR_ADDRESS() macro as it was largely supurflous and only ↵Dean
served to obfuscate code. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@553 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-05-12Fixed Mouse and Keyboard device demos not acting in accordance with the HID ↵Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@545 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-05-06Changed HWB board driver to Buttons driver, to allow for the support of ↵Dean
future boards with more than one mounted GPIO button. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@535 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-05-03More minor renaming of library enums and events to try to create a ↵Dean
consistent API. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@530 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-04-22USB_HostRequest renamed to USB_ControlRequest, entire control request header ↵Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@520 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-04-20Changed over all deprecated GCC structure tag initializers to the ↵Dean
standardized C99 format (thanks to Mike Alexander). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@517 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-04-19Spell checked non-source documentation pages.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@516 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-17Renamed Serial_Stream driver to SerialStream to remain consistent with the ↵Dean
rest of the library's naming scheme for files. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@511 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-04-16Partial commit: change references to Drivers/AT90USBXXX to Drivers/Peripheral.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@508 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-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
2009-03-20Seperated out OTG, Device and Host mode demos into seperate folders for ↵Dean
clarity. Adjusted makefiles so that the path to the LUFA library can be set in one place. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@475 d5102386-fcda-11dd-9fdb-3debd5008f28