Dean Camera [Fri, 26 Jun 2009 11:43:56 +0000 (11:43 +0000)]
Reduce struct name pollution - group typedef struct names by class driver name where appropriate.
Dean Camera [Fri, 26 Jun 2009 10:25:59 +0000 (10:25 +0000)]
Rename some of the library documentation files.
Dean Camera [Fri, 26 Jun 2009 10:24:54 +0000 (10:24 +0000)]
Split Getting Started page of the documentation into its own section.
Dean Camera [Fri, 26 Jun 2009 09:58:43 +0000 (09:58 +0000)]
Optimize vendor/product description string display code in MassStorageHost.
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.
Dean Camera [Tue, 23 Jun 2009 09:38:22 +0000 (09:38 +0000)]
Oops - SCSI INQUIRY data uses fixed-length, non-terminated strings -- need to copy the strings to a temp buffer and terminate before using them in printf.
Dean Camera [Tue, 23 Jun 2009 09:01:23 +0000 (09:01 +0000)]
MassStorageHost demo now retrieves Inquiry data from the device during enumeration, and prints the device's Vendor and Product IDs.
Dean Camera [Tue, 23 Jun 2009 08:45:46 +0000 (08:45 +0000)]
Fixed MassStorage demo not clearing the reset flag when a Mass Storage Reset is issued while not processing a command.
Dean Camera [Tue, 23 Jun 2009 08:03:09 +0000 (08:03 +0000)]
Pipe_ConfigurePipe() now automatically defaults IN pipes to accepting infinite IN requests, this can still be changed by calling the existing \ref Pipe_SetFiniteINRequests() function.
Dean Camera [Tue, 23 Jun 2009 07:55:18 +0000 (07:55 +0000)]
Fixed CDCHost demo unfreezing IN pipes during configuration, rather than 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.
Dean Camera [Mon, 22 Jun 2009 11:32:51 +0000 (11:32 +0000)]
Add demos/bootloaders/projects overview to the manual.
Dean Camera [Mon, 22 Jun 2009 10:23:47 +0000 (10:23 +0000)]
Corrected the ADC driver for the ATMEGA16U4 and ATMEGA32U4 (thanks to Opendous Inc.).
Dean Camera [Sun, 21 Jun 2009 13:52:21 +0000 (13:52 +0000)]
Optimize unique serial number reading code for size -- remove atoi/toupper references, replace with hand-rolled code as the input has known size constraints.
Dean Camera [Sun, 21 Jun 2009 11:09:12 +0000 (11:09 +0000)]
Add NO_INTERNAL_SERIAL compile time option to bootloaders to prevent them from having unneccesary size increases from unused code.
Dean Camera [Sun, 21 Jun 2009 09:22:31 +0000 (09:22 +0000)]
Added new USE_INTERNAL_SERIAL define for using the unique serial numbers in some AVR models as the USB device's serial number, added NO_INTERNAL_SERIAL compile time option to turn off new serial number reading code. Updated Mass Storage and CDC based demos to use the new device serial number if the device it is compiled for supports it.
Dean Camera [Sun, 21 Jun 2009 08:04:10 +0000 (08:04 +0000)]
Trim unique serial number created by the USE_INTERNAL_SERIAL option to 12 characters rather than 20 - apparently Windows will implode if a serial number is too long.
Dean Camera [Sun, 21 Jun 2009 05:04:18 +0000 (05:04 +0000)]
Re-add signature byte defines to the DFU and CDC class bootloaders -- the SIGNATURE_x defines in the AVR device header files only exist in a newer version of avr-libc than is in the Debian repositories, causing build issues on Linux.
Dean Camera [Sun, 21 Jun 2009 04:48:05 +0000 (04:48 +0000)]
Add new temp LUFA project logo to the manual.
Dean Camera [Sat, 20 Jun 2009 11:43:26 +0000 (11:43 +0000)]
Added USE_INTERNAL_SERIAL compile time option to automatically read out the internal unique serial number as the device's serial number descriptor on supported AVR models.
Dean Camera [Fri, 19 Jun 2009 07:29:02 +0000 (07:29 +0000)]
Clean up RNDIS demo type define names.
Dean Camera [Fri, 19 Jun 2009 05:08:04 +0000 (05:08 +0000)]
Fix makefiles -- the auto-addition of -D switches to each LUFA compile time 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.
Dean Camera [Fri, 19 Jun 2009 04:34:35 +0000 (04:34 +0000)]
Move LUFA compile time options to a new section in the application makefiles for clarity.
Dean Camera [Fri, 19 Jun 2009 03:37:47 +0000 (03:37 +0000)]
Extend USB_GetDeviceConfigDescriptor() routine to require the configuration number within the device to fetch, to add support for multi-configuration devices.
Dean Camera [Fri, 19 Jun 2009 03:21:03 +0000 (03:21 +0000)]
Re-add in simple scheduler for compatibility with legacy code, mark all scheduler related files as deprecated.
Dean Camera [Thu, 18 Jun 2009 10:55:04 +0000 (10:55 +0000)]
Fix broken MagStripe project.
Dean Camera [Thu, 18 Jun 2009 10:49:19 +0000 (10:49 +0000)]
Oops - restore deleted MissileLauncher project, fix all spelling errors for "missile". TODO: Learn how to actually spell.
Dean Camera [Thu, 18 Jun 2009 10:36:02 +0000 (10:36 +0000)]
Fix spelling of the MissileLauncher project directory.
Dean Camera [Thu, 18 Jun 2009 10:31:55 +0000 (10:31 +0000)]
Break device mode class driver interfaces into seperate config and state 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.
Dean Camera [Thu, 18 Jun 2009 07:53:51 +0000 (07:53 +0000)]
Added new USB_Host_ClearPipeStall() convenience function to clear a stall 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().
Dean Camera [Tue, 16 Jun 2009 13:50:02 +0000 (13:50 +0000)]
Remove hardcoded DOT path from all Doxygen config files.
Better documentation for the MissleLauncher project - add credit to PyLauncher project.
Dean Camera [Tue, 16 Jun 2009 07:25:47 +0000 (07:25 +0000)]
Add MissleLauncher project to the /Projects/ makefile. Add missing MissleLauncher Doxygen.conf file.
Dean Camera [Tue, 16 Jun 2009 07:17:22 +0000 (07:17 +0000)]
Pipe_GetErrorFlags() now returns additional error flags for overflow and underflow errors.
Change MIDI demos to use real MIDI command values, and shift for the USB wrapper, rather than shift for the MIDI bytes. This is a little confusing for the MIDI USB wrapper, but allows for the use of real standardized MIDI command values.
Dean Camera [Tue, 16 Jun 2009 05:53:27 +0000 (05:53 +0000)]
Added USB Missle Launcher project, submitted by Dave Fletcher.
Dean Camera [Tue, 16 Jun 2009 04:20:21 +0000 (04:20 +0000)]
Added new USB_Host_SetDeviceConfiguration() convenience function. Change over Low Level host demos to use the new routine.
Dean Camera [Mon, 15 Jun 2009 13:57:57 +0000 (13:57 +0000)]
Move main library documentation pages into a new ManPages subdirectory.
Dean Camera [Mon, 15 Jun 2009 13:42:34 +0000 (13:42 +0000)]
Remove ConfigDescriptor.c/.h files from the ClassDriver Host demos, as they will be obsoleted when the Host mode class drivers are complete. Add new StillImage stub class driver common header.
Dean Camera [Mon, 15 Jun 2009 11:12:39 +0000 (11:12 +0000)]
Add author image to library documentation.
Dean Camera [Mon, 15 Jun 2009 11:01:58 +0000 (11:01 +0000)]
Use sub pages in main library documentation to improve readability.
Dean Camera [Mon, 15 Jun 2009 08:58:55 +0000 (08:58 +0000)]
Fixed broken HIDReportParser.c.
Dean Camera [Mon, 15 Jun 2009 08:36:12 +0000 (08:36 +0000)]
More Doxygen fixes - ensure no undocumented function parameters.
Dean Camera [Mon, 15 Jun 2009 07:23:14 +0000 (07:23 +0000)]
Doxygen corrections to fix Doxygen warnings in some demos.
Dean Camera [Mon, 15 Jun 2009 04:38:42 +0000 (04:38 +0000)]
Enhanced class drivers to use the same public/private section seperations as other portions of the library.
Dean Camera [Sun, 14 Jun 2009 15:55:13 +0000 (15:55 +0000)]
Add host mode USB Class driver stubs, add beginnings of a CDC host class driver.
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.
Dean Camera [Sun, 14 Jun 2009 07:57:04 +0000 (07:57 +0000)]
Fix errors from last commit.
Dean Camera [Sun, 14 Jun 2009 07:44:02 +0000 (07:44 +0000)]
Changed per-device controller preprocessor checks over to per-device series for better device control.
Fixed error in Endpoint.c using HSOFI rather than SOFI for counting elapsed milliseconds.
Dean Camera [Thu, 11 Jun 2009 06:15:45 +0000 (06:15 +0000)]
Changed to new device mode Class Driver function name prefixes to make way for similar host mode Class drivers.
Dean Camera [Thu, 11 Jun 2009 01:52:53 +0000 (01:52 +0000)]
Some minor whitespace corrections.
Dean Camera [Wed, 10 Jun 2009 07:20:08 +0000 (07:20 +0000)]
Move temp Todo list from the Changelog to a new Future Changes page in the documentation.
Dean Camera [Wed, 10 Jun 2009 05:03:45 +0000 (05:03 +0000)]
Fixes to the MIDI device demos (ClassDriver, LowLevel); discard unused read-in events from the host, use standard MIDI event structure in low level demo rather than sending individual bytes.
Dean Camera [Tue, 9 Jun 2009 06:05:01 +0000 (06:05 +0000)]
Updated bootloaders to use the new main() function layout and remove any references to the scheduler to keep them in line with the rest of the library.
Dean Camera [Tue, 9 Jun 2009 04:30:12 +0000 (04:30 +0000)]
Copy over schedulerless host demos to ClassDrivers directory, for later modification to new Host mode USB class drivers.
Dean Camera [Tue, 9 Jun 2009 04:27:53 +0000 (04:27 +0000)]
Deleted Host ClassDriver demos -- not yet started, faster to rebase new 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.
Dean Camera [Mon, 8 Jun 2009 11:31:41 +0000 (11:31 +0000)]
Finished basic documentation of all device mode class drivers.
Dean Camera [Mon, 8 Jun 2009 10:35:42 +0000 (10:35 +0000)]
Completed documentation of the HID device class driver.
Dean Camera [Mon, 8 Jun 2009 10:06:49 +0000 (10:06 +0000)]
Finished CDC device class driver documentation.
Dean Camera [Mon, 8 Jun 2009 07:46:07 +0000 (07:46 +0000)]
Error status LEDs shown when device endpoint configuration fails to complete.
MIDI device demo no longer blocks if a note change event is sent while the endpoint is not ready.
Dean Camera [Mon, 8 Jun 2009 07:34:16 +0000 (07:34 +0000)]
Converted Host mode demos to schedulerless. Fixed host mode broken due to earlier Start-of-frame event experiments.
Dean Camera [Sun, 7 Jun 2009 07:20:33 +0000 (07:20 +0000)]
Converted device mode low-level demos to schedulerless.
Dean Camera [Fri, 5 Jun 2009 08:13:19 +0000 (08:13 +0000)]
Add master device Host demo makefile.
Copy and convert incomplete Bluetooth Host demo to the library.
Dean Camera [Fri, 5 Jun 2009 07:59:24 +0000 (07:59 +0000)]
Delete host mode demos from the root Host demos folder.
Dean Camera [Fri, 5 Jun 2009 07:56:39 +0000 (07:56 +0000)]
Copy existing Host mode demos to new ClassDriver and LowLevel subfolders.
Dean Camera [Fri, 5 Jun 2009 07:52:53 +0000 (07:52 +0000)]
Conversion of old incomplete SideShow demo to new APIs.
Dean Camera [Fri, 5 Jun 2009 07:32:40 +0000 (07:32 +0000)]
Add new Incomplete device subdirectory for work-in-progress demos. Add incomplete SideShow demo.
Dean Camera [Fri, 5 Jun 2009 07:30:23 +0000 (07:30 +0000)]
Remove outdated AVRStudio project files from demos, projects, bootloaders. Fix makefiles of ClassDriver device demos.
Dean Camera [Fri, 5 Jun 2009 07:16:33 +0000 (07:16 +0000)]
Move new Class Driver powered demos to a new ClassDriver subdirectory, re-add old low level demos to a LowLevel subdirectory.
Dean Camera [Fri, 5 Jun 2009 06:46:23 +0000 (06:46 +0000)]
Synchronise with the 090605 release.
Dean Camera [Fri, 5 Jun 2009 02:23:31 +0000 (02:23 +0000)]
Added multiple Report ID support to the HID class driver. Removed OUT endpoint support from HID driver (all OUT reports are now processed through control requests) as a seperate endpoint had issues with determining the exact output report length.
Dean Camera [Thu, 4 Jun 2009 06:26:35 +0000 (06:26 +0000)]
Fixed EVENT_USB_CDC_ControLineStateChanged() event not taking the CDC interface structure as a parameter.
Converted TestApp demo over to the new demo structure.
More class driver documentation improvements.
Dean Camera [Thu, 4 Jun 2009 04:02:55 +0000 (04:02 +0000)]
Added Doxygen documentation to the Audio class driver. Added new modules for each of the new device class drivers to the library documentation.
Dean Camera [Thu, 4 Jun 2009 03:12:07 +0000 (03:12 +0000)]
Fix Doxygen errors in demos.
Dean Camera [Thu, 4 Jun 2009 03:03:48 +0000 (03:03 +0000)]
Ensure all USB device class drivers have the same three main functions as their interface for consistency.
Dean Camera [Thu, 4 Jun 2009 02:55:30 +0000 (02:55 +0000)]
Minor documentation page updates.
Redocumented all device demos, now that they have changed over to the new USB class drivers.
Added C linkage to class drivers for C++ support.
Added prefixes to most of the class driver constants to prevent name clashes.
Dean Camera [Tue, 2 Jun 2009 10:54:32 +0000 (10:54 +0000)]
Removed new Start of Frame event from the library; performance suffered far too much and it was only useful in one of the standard classes (HID). Altered HID demos to use the previous method of tracking millisecond periods via a hardware timer rather than the SOF events.
Fixed MIDI class driver blocking on unread events to the host.
Dean Camera [Mon, 1 Jun 2009 12:01:53 +0000 (12:01 +0000)]
Add MIDI class driver, update MIDI device demo to use the new USB class driver. All device demos/projects have now been converted to the new library class drivers, although documentation is yet to be completed.
Dean Camera [Mon, 1 Jun 2009 11:03:39 +0000 (11:03 +0000)]
Commit of new class abstraction APIs for all device demos other than the 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.
Dean Camera [Tue, 26 May 2009 05:16:02 +0000 (05:16 +0000)]
Fix broken Host mode, from the recent API changes.
Dean Camera [Tue, 26 May 2009 04:46:35 +0000 (04:46 +0000)]
Fix all device mode demos broken in the recent API changes.
Change USBtoSerial Tx to polling-driven rather than interrupt driven, to ensure more time for the Rx interrupt to be serviced.
Dean Camera [Fri, 22 May 2009 06:17:57 +0000 (06:17 +0000)]
Moved out each demos' functionality library files (e.g. Ring Buffer library) to /Lib directories for a better directory structure.
Dean Camera [Fri, 22 May 2009 05:23:00 +0000 (05:23 +0000)]
Deleted StdDescriptors.c, renamed USB_GetDescriptor() to 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.
Dean Camera [Wed, 20 May 2009 14:50:26 +0000 (14:50 +0000)]
Fixed incorrect PID value being used in the USBtoSerial project (thanks to Phill).
Dean Camera [Tue, 19 May 2009 10:36:39 +0000 (10:36 +0000)]
Fix broken doxygen reference in last commit.
Dean Camera [Tue, 19 May 2009 10:33:29 +0000 (10:33 +0000)]
USB_IsConnected is now cleared before the USB_Disconnect() event is fired in response to VBUS being removed.
Minor documentation improvements.
Dean Camera [Mon, 18 May 2009 10:05:21 +0000 (10:05 +0000)]
Rewritten event system to remove all macros, to make user code clearer.
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.
Dean Camera [Sun, 17 May 2009 07:44:00 +0000 (07:44 +0000)]
Removed DESCRIPTOR_ADDRESS() macro as it was largely supurflous and only served to obfuscate code.
Dean Camera [Fri, 15 May 2009 12:27:32 +0000 (12:27 +0000)]
Create a new function pointer type in StreamCallbacks.h for endpoint/pipe stream callbacks, to make stream function prototypes clearer.
Dean Camera [Fri, 15 May 2009 08:02:30 +0000 (08:02 +0000)]
Fix to previous patch (make CDCHost demo deallocate pipes when an invalid 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.
Dean Camera [Fri, 15 May 2009 07:38:35 +0000 (07:38 +0000)]
Fixed CDCHost not clearing configured endpoints and resetting configured endpoints mask when a partially enumerated invalid CDC interface is skipped.
Dean Camera [Thu, 14 May 2009 10:07:08 +0000 (10:07 +0000)]
Removed all user pipe/endpoint interrupt APIs, added internal library 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.
Dean Camera [Wed, 13 May 2009 22:40:08 +0000 (22:40 +0000)]
Fixed Device Mode not handling Set Feature and Clear Feature Chapter 9 requests that are addressed to the device (thanks to Brian Dickman).
Dean Camera [Wed, 13 May 2009 14:13:57 +0000 (14:13 +0000)]
Moved USB Host state machine code out from USBTask.c and into Host.c, where it more properly belongs.
Dean Camera [Tue, 12 May 2009 12:59:57 +0000 (12:59 +0000)]
Remove remainder of data pipe interrupt management code from the host demos.
Dean Camera [Tue, 12 May 2009 08:28:02 +0000 (08:28 +0000)]
Fixed Mouse and Keyboard device demos not acting in accordance with the HID 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.
Dean Camera [Mon, 11 May 2009 08:58:53 +0000 (08:58 +0000)]
Fixed RNDISEthernet not working under Linux due to Linux requiring an "optional" request which was unhandled.
Dean Camera [Mon, 11 May 2009 07:52:13 +0000 (07:52 +0000)]
Fixed bug in RNDISEthernet and DualCDC demos not using the correct USB_ControlRequest structure for control request data.
Fixed documentation showing incorrect USB mode support on the supported AVRs list.
Dean Camera [Sun, 10 May 2009 05:23:35 +0000 (05:23 +0000)]
Fix broken Set Feature/Clear Feature chapter 9 request (incorrect status stage clearing).
Commit for the 090510 release.
Dean Camera [Thu, 7 May 2009 22:33:36 +0000 (22:33 +0000)]
Renamed the the TotalHIDReports element of the HID descriptor structure in the HID class demos to TotalReportDescriptors, to be more accurate of the element's function (thanks to Brian Dickman).
Dean Camera [Thu, 7 May 2009 11:12:23 +0000 (11:12 +0000)]
Serial driver now correctly calculates the baud register value when in double speed mode.
Init function of the Serial driver is now static inline to product smaller code for the common-case of static init.
Dean Camera [Thu, 7 May 2009 06:33:07 +0000 (06:33 +0000)]
Fix build errors in Joystick device demo and library LEDs driver (on *nix systems).
Dean Camera [Thu, 7 May 2009 05:30:19 +0000 (05:30 +0000)]
Fixed inability to enumerate any devices while in host mode (broken in a previous commit).
Dean Camera [Wed, 6 May 2009 13:17:38 +0000 (13:17 +0000)]
Minor correction to the DevChapter9.c handling of Set and Clear feature requests -- remote wake up requests now complete correctly rather than stalling the request.
Dean Camera [Wed, 6 May 2009 12:43:00 +0000 (12:43 +0000)]
Change device demos to cache the board button values in the same manner as the board joystick to maintain consistency.