Dean Camera [Tue, 25 Aug 2009 13:26:34 +0000 (13:26 +0000)]
Make AVRISP project build again - fix incorrect preprocessor directive in V2Protocol.c, fix makefile LUFA_PATH.
Dean Camera [Tue, 25 Aug 2009 13:24:21 +0000 (13:24 +0000)]
Partial Commit: Remove now empty Projects\Incomplete directory and add the new AVRISP project to the Projects directory makefile.
Dean Camera [Tue, 25 Aug 2009 13:21:19 +0000 (13:21 +0000)]
Partial Commit: Move AVRISP project out of the Projects\Incomplete directory.
Dean Camera [Tue, 25 Aug 2009 13:15:30 +0000 (13:15 +0000)]
Add function documentation to the AVRISP project.
Dean Camera [Tue, 25 Aug 2009 11:24:45 +0000 (11:24 +0000)]
Finished preliminary AVRISP project - all V2 protocol commands now work correctly for basic operations.
Dean Camera [Tue, 25 Aug 2009 08:58:48 +0000 (08:58 +0000)]
Fixed AVRISP V2 Protocol handler for the READ_FLASH_ISP and READ_EEPROM_ISP handler - can now correctly read back device data. Programming command handler is still broken, although first page is written correctly to FLASH in paged write mode.
Dean Camera [Tue, 25 Aug 2009 08:09:49 +0000 (08:09 +0000)]
Updated Benito project -- added hardware interrupt and software buffering for serial data reception to prevent missed characters, condensed pulse generation counters into a struct for clarity.
Added check to CDC_Device_BytesReceived() to ensure 0 is returned when device is not enumerated to a host.
Move AVRISP project's V2Protocol_DelayMS() function to be static inline, as it is now very minimal. Added extra project doxygen documentation.
Dean Camera [Mon, 24 Aug 2009 13:39:47 +0000 (13:39 +0000)]
Fix endianness of LOAD_ADDRESS command data, add correct PROGRAM_FLASH_ISP/PROGRAM_EEPROM_ISP polling and endpoint bank clearing, add hardware delays/timeouts to the V2 Protocol handler in the AVRISP project.
Dean Camera [Mon, 24 Aug 2009 12:49:19 +0000 (12:49 +0000)]
Switch to hardware delays and timeouts via a hardware timer in the V2 Protocol handler.
More additions to the PROGRAM_FLASH_ISP and PROGRAM_EEPROM_ISP commands, although neither work correctly yet.
Added dummy RESET_PROTECTIONS handler to prevent the Atmel driver from crashing when the command returns an UNKNOWN_COMMAND error code.
Dean Camera [Mon, 24 Aug 2009 11:04:05 +0000 (11:04 +0000)]
Added PROGRAM_FLASH_ISP and PROGRAM_EEPROM_ISP handler code to the V2 Protocol handler in the AVRISP project, programming complete checks not yet complete.
Dean Camera [Mon, 24 Aug 2009 10:08:02 +0000 (10:08 +0000)]
Fixed V2 Protocol READ_FLASH_ISP and READ_EEPROM_ISP handler code in the AVRISP project.
Dean Camera [Mon, 24 Aug 2009 09:37:54 +0000 (09:37 +0000)]
Fix to V2 Protocol for Fuse/Sig/Lock byte read -- off by one error on the array when writing back the response from the device.
FLASH/EEPROM reading and writing currently broken and unfinished, respectively.
Dean Camera [Sun, 23 Aug 2009 12:38:50 +0000 (12:38 +0000)]
Added V2 protocol handlers for the READ and WRITE memory commands in the AVRISP project. Finished READ command handler, skeleton WRITE handler implemented.
Dean Camera [Sun, 23 Aug 2009 10:17:13 +0000 (10:17 +0000)]
Moved out target-related V2 protocol commands into a seperate file for the AVRISP project.
Added Load Extended Command functionality to the LOAD ADDRESS V2 Protocol command handler for devices with more than 64KB of memory.
Dean Camera [Sun, 23 Aug 2009 08:37:11 +0000 (08:37 +0000)]
Fixed AVRISP programmer demo -- can now connect to a target and read/write Sig/Lock/Fuse/OSCCAL bytes successfully.
Changed SPI_Init() to allow for the clock polarity and data sample modes to be set.
Changed Dataflash_Init() to no longer call SPI_Init() automatically.
Dean Camera [Sun, 23 Aug 2009 04:01:49 +0000 (04:01 +0000)]
Added V2Protocol handlers to the AVRISP project to enter/exit programming mode, and read/write fuses, lockbits, OSCCAL and Signature bytes.
Added ShutDown functions for all hardware peripheral drivers, so that peripherals can be turned off after use.
Dean Camera [Thu, 20 Aug 2009 07:25:47 +0000 (07:25 +0000)]
Correct Programmer's Notepad project file to use the correct path for the AVRISP project files.
Dean Camera [Thu, 20 Aug 2009 07:21:43 +0000 (07:21 +0000)]
Renamed Projects/Unfinished to Projects/Incomplete for consistancy.
Dean Camera [Thu, 20 Aug 2009 07:16:55 +0000 (07:16 +0000)]
Add LOAD ADDRESS command parsing to the V2 Protocol hander in the AVRISP project.
Fix up references to functions in the Endpoint/Pipe documentation.
Dean Camera [Wed, 19 Aug 2009 13:19:01 +0000 (13:19 +0000)]
Change spinloop in the AVRISP project Unknown V2 Protocol Command handler to use Endpoint_WaitUntilReady() instead to prevent infinite loops.
Dean Camera [Wed, 19 Aug 2009 08:29:08 +0000 (08:29 +0000)]
Moved out the handling of V2 Protocol parameters to a seperate set of files. Added parameter privellages, so that an error can be returned to the host when trying to perform a get/set value action on a parameter without the correct privellages.
Dean Camera [Wed, 19 Aug 2009 07:08:27 +0000 (07:08 +0000)]
Reorganise V2Protocol.c, add in function to assert or de-assert target RESET pin.
Dean Camera [Wed, 19 Aug 2009 06:25:54 +0000 (06:25 +0000)]
Added handler for the V2 Protocol SPI_MULTI command to the AVRISP Programmer project.
Added documentation of the makefile CDEFS values to the MagStripe project.
Dean Camera [Wed, 19 Aug 2009 05:40:05 +0000 (05:40 +0000)]
Corrections to the unfinished AVRISP Programmer project to allow AVRStudio to connect to it.
Dean Camera [Tue, 18 Aug 2009 07:42:19 +0000 (07:42 +0000)]
Fixed invalid data being returned when a GetStatus request is issued in Device mode with an unhandled data recipient.
Fix up Programmers Notepad Project file to show new Projects directory layout. Remove now moved AVRISP project from the Projects directory makefile.
Dean Camera [Tue, 18 Aug 2009 07:37:03 +0000 (07:37 +0000)]
Move AVRISP Programmer project to a new Unfinished subdirectory of Project while it is under development.
Dean Camera [Tue, 18 Aug 2009 07:22:51 +0000 (07:22 +0000)]
Enhancements to the AVRISP Programmer project to attempt to get AVRStudio to communicate with the device.
Dean Camera [Mon, 17 Aug 2009 12:38:24 +0000 (12:38 +0000)]
Added beginnings of a new AVRISP-MKII clone project.
Added new Endpoint_SetEndpointDirection() macro to set the current endpoint direction for bidirectional endpoints.
Renamed internal USB_INT_ENDPOINT_SETUP macro to USB_INT_RXSTPI to fit in with the rest of the interrupt vector macros.
Dean Camera [Sun, 16 Aug 2009 14:30:46 +0000 (14:30 +0000)]
Added return values to the CDC and MIDI class driver transmit functions.
Dean Camera [Sun, 16 Aug 2009 12:37:28 +0000 (12:37 +0000)]
Fix misspelt event name in the Class driver USBtoSerial demo, preventing correct operation.
Dean Camera [Sun, 16 Aug 2009 10:57:47 +0000 (10:57 +0000)]
Fix USBtoSerial device demos -- ensure the UDR1 register contents is read in under all circumstances which fire the ISR, so that the receive complete interrupt is cleared correctly to prevent freezes.
Dean Camera [Sun, 16 Aug 2009 08:51:54 +0000 (08:51 +0000)]
Added new EVENT_USB_Device_StartOfFrame() event, controlled by the new USB_Device_EnableSOFEvents() and USB_Device_DisableSOFEvents() macros to give bus-synchronised millisecond interrupts when in USB device mode.
Dean Camera [Thu, 13 Aug 2009 08:26:59 +0000 (08:26 +0000)]
Adjust endpoint polling intervals for HID demos, to make them compliant with the 10ms minimum polling period for Low Speed devices.
Dean Camera [Thu, 13 Aug 2009 08:14:16 +0000 (08:14 +0000)]
Added explicit attribute masks to the device mode demos' descriptors.
Dean Camera [Thu, 13 Aug 2009 06:43:17 +0000 (06:43 +0000)]
Added CDC_Device_Flush() command to the CDC Device mode class driver.
Minor updates to the unfinished SideShow demo for clarity.
Added unfinished MassStorageHost class driver demo.
Dean Camera [Tue, 11 Aug 2009 11:19:22 +0000 (11:19 +0000)]
Added flag to the HID report parser to indicate if a device has multiple reports.
SetIdle requests to the HID device driver with a 0 idle period (send changes only) now only affect the requested HID interface within the device, not all HID interfaces.
Apply correct fix to the HID report parser for PUSH items - current HID item attribute stack was being copied in the wrong direction.
Fixed HID report parser not resetting the FEATURE item count when a REPORT ID item is encountered.
Dean Camera [Tue, 11 Aug 2009 10:02:50 +0000 (10:02 +0000)]
Add CDC Host class driver EVENT_CDC_Host_ControLineStateChanged() event.
Minor documentation fixes.
Dean Camera [Tue, 11 Aug 2009 09:54:22 +0000 (09:54 +0000)]
Document CDC Host class driver functions and enums.
Dean Camera [Tue, 11 Aug 2009 09:12:29 +0000 (09:12 +0000)]
Add new functions to the HID host class driver, refine HID interface protocol matching.
Remove stray state variable from the CDC host class driver.
Dean Camera [Tue, 11 Aug 2009 08:36:25 +0000 (08:36 +0000)]
Fixed swapped paremeters in the HID state memory copy call while processing a HID PUSH item in the HID report parser.
Fixed memory corruption HID report parser when too many COLLECTION or PUSH items were processed.
Make RNDIS device class driver include the CDC device class driver header, so that it can inherrit the required CDC functional descriptor macro.
Make HID host class driver include the HID report parser.
Dean Camera [Tue, 11 Aug 2009 02:09:11 +0000 (02:09 +0000)]
Completion of initial CDC host mode class driver.
Adjustments to the CDC and MIDI device class drivers to use sizeof() on the actual variable being transmitted or received rather than its datatype to reduce possible mistakes.
Dean Camera [Tue, 11 Aug 2009 01:52:15 +0000 (01:52 +0000)]
Fix issue in CDC device class driver where received data the size of the data endpoint could lock up the driver.
Further work on the new CDC and HID host mode class drivers.
Reset changelog et. al. to reset development information for the new version currently under development.
Dean Camera [Sun, 9 Aug 2009 09:51:48 +0000 (09:51 +0000)]
Commit for the 090810 release.
Dean Camera [Fri, 7 Aug 2009 06:55:31 +0000 (06:55 +0000)]
Cleanups to RNDIS device demos. Fix issue in RNDIS demos where the memory would become corrupted due to an incorrect bounds check when iterating over the port state table, causing random resets.
Revert change to Template_Endpoint_Control_R.c, which broke control stream reads.
Remove uneeded ADC.h include in the class driver AudioOutput demo.
Dean Camera [Fri, 7 Aug 2009 00:27:11 +0000 (00:27 +0000)]
Make Benito ping-pong LED code more explicit, using masks of the TX and RX LED masks for ping-pong toggle rather than the ambiguous LED "Busy" mask.
Fix incorrect event name in MassStorageHost.c.
Dean Camera [Thu, 6 Aug 2009 14:30:53 +0000 (14:30 +0000)]
Simplify CDC device demos, by directly assigning the string to transmit to the pointer, rather than using an intermediatary table to hold all the possible transmit strings.
Dean Camera [Thu, 6 Aug 2009 14:22:04 +0000 (14:22 +0000)]
Make Endpoint control transfers more reliable; early-abort when an 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.
Dean Camera [Wed, 5 Aug 2009 13:17:06 +0000 (13:17 +0000)]
Add Benito board LED driver to the Benito Programmer project.
Dean Camera [Wed, 5 Aug 2009 13:16:36 +0000 (13:16 +0000)]
Fixed issue in USBtoSerial demos where the USART Rx line was not having its pullup enabled at startup, leading to noise being received from the Rx pin when left floating.
Removed unused relative Common.h header include from the DriverStubs board stub drivers.
Fixed Benito programmer, use the correct LED functions where needed to ensure correct status display at all times.
Dean Camera [Wed, 5 Aug 2009 11:39:28 +0000 (11:39 +0000)]
Make Control Endpoint stream transfers more reliable by adding in early aborts for unexpected new SETUP tokens, or unexpected status stage during control stream writes.
Fix corruption in Device RNDIS demos TCP stack when too many connections attempted simultaneously, freezing the device when a page was re-fetched before the first connection was closed.
Fix incorrect model compatibility information in the Host LowLevel demo overview text files.
Dean Camera [Wed, 5 Aug 2009 09:37:45 +0000 (09:37 +0000)]
Changed over manual loops waiting for endpoints to be ready to use the library Endpoint_WaitUntilReady() function for robustness. Fixes issues with terminated transfers on the host locking up USB devices.
Dean Camera [Wed, 5 Aug 2009 07:47:02 +0000 (07:47 +0000)]
Commit for 090810rc1 release.
Dean Camera [Wed, 5 Aug 2009 07:18:08 +0000 (07:18 +0000)]
Fix incorrect Event call name in USBInterrupt.c.
Dean Camera [Wed, 5 Aug 2009 06:36:31 +0000 (06:36 +0000)]
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.
Dean Camera [Tue, 4 Aug 2009 08:36:30 +0000 (08:36 +0000)]
Better fix for LowLevel CDC demo issue where sending data before the line encoding is set will cause a failure of the host to open the port. Added fix to the DualCDC and USBtoSerial LowLevel demos.
Dean Camera [Tue, 4 Aug 2009 08:06:26 +0000 (08:06 +0000)]
Fix issue with CDC device demos causing broken communications when the device tries to send data before the host has set the line encoding.
Dean Camera [Mon, 3 Aug 2009 07:15:27 +0000 (07:15 +0000)]
Update migration notes for the upcomming 090810 release.
Dean Camera [Mon, 3 Aug 2009 07:10:54 +0000 (07:10 +0000)]
Cleanup and optimization of the internal serial retrieval routines.
Renamed ATTR_NOINLINE to ATTR_NO_INLINE to fit with the rest of the library function attribute names.
Dean Camera [Sun, 2 Aug 2009 23:17:47 +0000 (23:17 +0000)]
Fix build error in TestApp demo caused by previous commit.
Dean Camera [Sun, 2 Aug 2009 23:14:30 +0000 (23:14 +0000)]
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.
Dean Camera [Sun, 2 Aug 2009 11:43:16 +0000 (11:43 +0000)]
Make both LowLevel and ClassDriver AudioOutput demos always output to board LEDs, regardless of output mode (removed AUDIO_OUT_LEDS compile time option from the demo). This allows for positive feedback to the user of audio activity regardless of output mode.
Dean Camera [Sun, 2 Aug 2009 11:33:00 +0000 (11:33 +0000)]
Removed interrupt disable/enable from the Device mode control request processing routines, as they can cause problems with user code and can cause infinite spinlocks under some circumstances.
Added new LUFA logo from EDIGMA.COM.
Dean Camera [Fri, 31 Jul 2009 03:35:24 +0000 (03:35 +0000)]
Fixed the ClassDriver GenericHID demo so that it echoes back reports as indicated in the demo overview.
Dean Camera [Fri, 31 Jul 2009 03:22:08 +0000 (03:22 +0000)]
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.).
Dean Camera [Fri, 31 Jul 2009 00:35:19 +0000 (00:35 +0000)]
Renamed USB_Device_SetHighSpeed() to USB_Device_SetFullSpeed() so that the correct terminology is used (thanks to Brian Dickman).
Fix USB_PLL_Off() call in the series 4, 6 and 7 microcontroller disconnect interrupt handler code, which wasn't guarded by a test of USB_Options to check if the user has specified manual PLL control (thanks to Brian Dickman).
Dean Camera [Thu, 30 Jul 2009 14:59:57 +0000 (14:59 +0000)]
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 [Thu, 30 Jul 2009 14:40:42 +0000 (14:40 +0000)]
Ensure that the previous HID reports in the HID device class driver are kept per-instance, rather than per-device.
Dean Camera [Thu, 30 Jul 2009 14:35:42 +0000 (14:35 +0000)]
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 [Thu, 30 Jul 2009 14:12:00 +0000 (14:12 +0000)]
Minor cleanups to DualCDC ClassDriver device demo for clarity.
Dean Camera [Thu, 30 Jul 2009 14:06:52 +0000 (14:06 +0000)]
Fix incorrect configuration in the ClassDriver AudioOutput demo.
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 [Thu, 30 Jul 2009 11:03:58 +0000 (11:03 +0000)]
Set all CDC and MassStorage device mode demos (LowLevel and ClassDriver) to use the USE_INTERNAL_SERIAL feature, add compile time warnings for devices which do not have an internal serial.
Dean Camera [Thu, 30 Jul 2009 10:54:57 +0000 (10:54 +0000)]
Added standard stream example to the ClassDriver CDC device demo.
Fix incorrect HWB button mask in the STK526 Buttons driver.
Dean Camera [Thu, 30 Jul 2009 07:45:36 +0000 (07:45 +0000)]
Fix redefinition warning when USB_DEVICE_ONLY is set on an AVR which does not support USB host mode.
Dean Camera [Wed, 29 Jul 2009 02:49:34 +0000 (02:49 +0000)]
Cleanup USBMode.h to simplify preprocessor logic.
Dean Camera [Wed, 29 Jul 2009 01:40:42 +0000 (01:40 +0000)]
Added 404 errors to the RNDIS Webserver example.
Dean Camera [Tue, 28 Jul 2009 16:12:09 +0000 (16:12 +0000)]
Extend the automatic serial number descriptor code to read out and send all 10 bytes (20 characters) of the internal serial number on supported AVRs, rather than just the first 6 bytes (12 characters).
Dean Camera [Tue, 28 Jul 2009 15:14:54 +0000 (15:14 +0000)]
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.
Dean Camera [Tue, 28 Jul 2009 13:53:52 +0000 (13:53 +0000)]
Change project makefiles so that the current target settings and not just the board selection is printed during the build process.
Fix warning in AudioOutput demos when AUDIO_OUT_STEREO output mode is selected.
Dean Camera [Tue, 28 Jul 2009 13:12:14 +0000 (13:12 +0000)]
Better solution - change compile time token names to DEVICE_STATE_AS_GPIOR and HOST_STATE_AS_GPIOR and allow the user to set them to the index of the GPIOR register within the device to use.
Dean Camera [Tue, 28 Jul 2009 13:01:44 +0000 (13:01 +0000)]
Added HOST_STATE_AS_GPIOR1 and DEVICE_STATE_AS_GPIOR0 compile time options, the latter of which is used in the bootloaders, to reduce code size.
Dean Camera [Tue, 28 Jul 2009 10:49:33 +0000 (10:49 +0000)]
Make LowLevel AudioOutput demo work in the same way as the ClassDriver AudioOutput demo for LEDs output.
Dean Camera [Tue, 28 Jul 2009 10:46:20 +0000 (10:46 +0000)]
Changed AudioOutput demos to explicitly use timer 3 - the smaller USB AVRs where timer 1 was needed instead did not have the endpoint size neccesary for good audio throughput anyway.
Fix Benito documentation indicating erronously that the project used the HID USB class instead of the CDC class.
Dean Camera [Mon, 27 Jul 2009 23:19:17 +0000 (23:19 +0000)]
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 [Mon, 27 Jul 2009 10:55:21 +0000 (10:55 +0000)]
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 [Mon, 27 Jul 2009 10:48:55 +0000 (10:48 +0000)]
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 [Mon, 27 Jul 2009 10:31:07 +0000 (10:31 +0000)]
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.
Dean Camera [Sun, 26 Jul 2009 10:45:33 +0000 (10:45 +0000)]
Corrected new Pipe_IsEndpointBound() function.
Completed host CDC class driver enumeration code.
Dean Camera [Sun, 26 Jul 2009 10:22:16 +0000 (10:22 +0000)]
Added new Pipe_BoundEndpointNumber() and Pipe_IsEndpointBound() functions.
Dean Camera [Fri, 24 Jul 2009 01:44:01 +0000 (01:44 +0000)]
Added new LEDs_ToggleLEDs() function to the Board LEDs driver.
Dean Camera [Fri, 24 Jul 2009 01:26:36 +0000 (01:26 +0000)]
Ensure new Benito Programmer project matches Don's established LED behaviour - flash LED while generating target /RESET pulse, ping-pong LEDs during enumeration.
Dean Camera [Thu, 23 Jul 2009 14:11:20 +0000 (14:11 +0000)]
Minor updates to the Benito programmer - remove redundant PORT register manipulations.
Dean Camera [Thu, 23 Jul 2009 11:01:32 +0000 (11:01 +0000)]
Tweaks to the new Benito Programmer project for documentation and port/pin usage.
Dean Camera [Thu, 23 Jul 2009 10:39:10 +0000 (10:39 +0000)]
Added new Benito project, a simple modified USB-to-Serial bridge for the programming of AVRs using the official Arduino bootloader.
Dean Camera [Thu, 23 Jul 2009 08:00:12 +0000 (08:00 +0000)]
Ensure that the USB_DeviceState variable is properly set upon wakeup events, to the Addressed or Configured state as needed.
Add explicit support for the AT90USB646 to the Teensy bootloader now that PJRC have released the Teensy++ board.
Ensure unfinished SideShow demo uses an unallocated PID value within the LUFA range.
Dean Camera [Tue, 21 Jul 2009 13:51:34 +0000 (13:51 +0000)]
Slight changes to TeensyHID bootloader to ensure it builds under the 2KB boundary.
Changed USB_Init() and USB_Shutdown() so that they are no longer dependant on oneanother for possible code savings when the interface is never explicitly shut down.
Dean Camera [Tue, 21 Jul 2009 13:31:21 +0000 (13:31 +0000)]
Added new USB_DeviceState variable to keep track of the current Device mode USB state.
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 [Tue, 21 Jul 2009 10:29:56 +0000 (10:29 +0000)]
Add PrinterHost demo to the documentation.
Dean Camera [Tue, 21 Jul 2009 04:46:48 +0000 (04:46 +0000)]
Add extra tests to the MassStorage device demo and class driver for validating command blocks from the host.
Dean Camera [Tue, 21 Jul 2009 02:48:41 +0000 (02:48 +0000)]
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.
Dean Camera [Mon, 20 Jul 2009 14:51:19 +0000 (14:51 +0000)]
Simplify SideShow GUID compares via a macro.