- Aug 05, 2009
-
-
Dean Camera authored
-
Dean Camera authored
Renamed all library events to properly seperate out Device and Host mode 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.
-
- Aug 04, 2009
-
-
Dean Camera authored
Fix issue with CDC device demos causing broken communications when the device tries to send data before the host has set the line encoding.
-
- Aug 02, 2009
-
-
Dean Camera authored
Rename TOTAL_NUM_CONFIGURATIONS to FIXED_NUM_CONFIGURATIONS, to match the existing FIXED_CONTROL_ENDPOINT_SIZE compile time option. Add FIXED_NUM_CONFIGURATIONS to the descriptors of each project using the option.
-
- Jul 31, 2009
-
-
Dean Camera authored
Fix demos based on the device mode HID class driver, as well as the driver itself. Changed HID device class driver to require the user to give a buffer and size to hold the previously generated report, for comparison purposes, and altered the prototype of the CALLBACK_HID_Device_CreateHIDReport() function so that reports can be sent to the host even if there are no apparent changes (useful for relative movements in mice, etc.).
-
- Jul 30, 2009
-
-
Dean Camera authored
Add new HID_Device_MillisecondElapsed() function to the HID device Class driver, to move the burden of managing the Idle period of each instance to the library and not the user application.
-
Dean Camera authored
Ensure that the previous HID reports in the HID device class driver are kept per-instance, rather than per-device.
-
Dean Camera authored
Fix to HID device mode Class driver, so that new reports are compared against the old, and updated reports made within the idle period are sent immediately to the host.
-
Dean Camera authored
Make all audio device Class Driver functions require a reference to the Audio class instance, so that the endpoint size can be checked (and to standardize the APIs). Make LEDs more responsive in the AudioOutput device demos.
-
Dean Camera authored
Fix redefinition warning when USB_DEVICE_ONLY is set on an AVR which does not support USB host mode.
-
- Jul 28, 2009
-
-
Dean Camera authored
Fixed report data alignment issues in the MouseHostWithParser demo when X and Y movement data size is not a multiple of 8 bits. Fixed HID Report Descriptor Parser not correctly resetting internal states when a REPORT ID element is encountered.
-
- Jul 27, 2009
-
-
Dean Camera authored
State information for class drivers is now zeroed out during enumeration (both in device and host mode) to ensure sane values after each enumeration. User code should no longer explicitly set state information as this is no longer preserved.
-
Dean Camera authored
Collapse configuration descriptor size retrieval and size testing into a single if statement within the new host mode class driver demos for clarity.
-
Dean Camera authored
Change Host mode class driver Pipe configuration routines -- better to let the application fetch the configuration descriptors once, and then pass them to each class driver in turn.
-
Dean Camera authored
Add new MouseHost Class Driver demo, unfinished, to allow for better testing of the new prototype Host Mode Class Driver framework. Flesh out start of a HID class Host mode class driver.
-
- Jul 26, 2009
-
-
Dean Camera authored
Completed host CDC class driver enumeration code.
-
- Jul 21, 2009
-
-
Dean Camera authored
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.
-
Dean Camera authored
Add extra tests to the MassStorage device demo and class driver for validating command blocks from the host.
-
Dean Camera authored
Add explicit guards to all device mode tasks to ensure the device is connected and configured before running the task, to prevent any user tasks from locking up the main USB task if the device has not been properly configured.
-
- Jul 16, 2009
-
-
Dean Camera authored
Added new TOTAL_NUM_CONFIGURATIONS option, removed 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.
-
- Jul 15, 2009
-
-
Dean Camera authored
Fix HID class device driver -- if a SetIDle request is issued with the LSB of wValue set to zero, the idle period must be set for all HID interfaces. Fix Keyboard and Mouse demos, Idle period is now multiplied by 4 as the period is read into and sent out of the device to ensure it is always stored as a multiple of 1ms. Fixes Keyboard demo using an initial Idle period of 2s rather than 500ms (thanks to Brian Dickman). Move out the internal device serial descriptor reading routine into a seperate static function, rather than being part of USB_Device_GetDescriptor.
-
- Jul 14, 2009
-
-
Dean Camera authored
-
- Jul 13, 2009
-
-
Dean Camera authored
Added new HOST_STATE_WaitForDeviceRemoval host state machine state for 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.
-
- Jun 28, 2009
-
-
Dean Camera authored
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).
-
- Jun 26, 2009
-
-
Dean Camera authored
-
Dean Camera authored
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.
-
- Jun 23, 2009
-
-
Dean Camera authored
Fixed MassStorage demo not clearing the reset flag when a Mass Storage Reset is issued while not processing a command.
-
Dean Camera authored
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.
-
- Jun 20, 2009
-
-
Dean Camera authored
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.
-
- Jun 19, 2009
-
-
Dean Camera authored
-
Dean Camera authored
Extend USB_GetDeviceConfigDescriptor() routine to require the configuration number within the device to fetch, to add support for multi-configuration devices.
-
Dean Camera authored
Re-add in simple scheduler for compatibility with legacy code, mark all scheduler related files as deprecated.
-
- Jun 18, 2009
-
-
Dean Camera authored
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.
-
- Jun 16, 2009
-
-
Dean Camera authored
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.
-
- Jun 15, 2009
-
-
Dean Camera authored
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 authored
-
Dean Camera authored
-
Dean Camera authored
Enhanced class drivers to use the same public/private section seperations as other portions of the library.
-
- Jun 14, 2009
-
-
Dean Camera authored
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.
-
- Jun 11, 2009
-
-
Dean Camera authored
Changed to new device mode Class Driver function name prefixes to make way for similar host mode Class drivers.
-