Commit Graph

396 Commits (b98158bd50e95c65e20989d048ab42cc6de799c2)

Author SHA1 Message Date
Dean Camera d4ca7fb44c Fix MIT license language to make its intent clearer. 15 years ago
Dean Camera d4952265a6 Ensure that unsupported SetFeature/ClearFeature request targets cause a STALL back to the host. 15 years ago
Dean Camera 8b75659563 Added new NO_DEVICE_SELF_POWER and NO_DEVICE_REMOTE_WAKEUP compile time options. 15 years ago
Dean Camera 2cab8f0725 Fixed USB_CurrentMode not being reset to USB_MODE_NONE when the USB interface is shut down and both Host and Device modes can be used (thanks to Daniel Levy). 15 years ago
Dean Camera c3758ac5ef Un-inline the SendAddress function in NVMTarget.c/.h of the AVRISP project. 15 years ago
Dean Camera 108a22a66a The SImage_Host_SendBlockHeader() and SImage_Host_ReceiveBlockHeader() Still Image Host Class driver functions are now public. 15 years ago
Dean Camera 79efd8c79e Fix a bug in the Still Image Host Class driver where the returned block status code was being truncated. 15 years ago
Dean Camera 6648234157 Test with -Wextra, fix library warnings due to unused function parameters. 15 years ago
Dean Camera 32b7762325 Oops - wrong casting on the Configuration Descriptor pointer advance routine. 15 years ago
Dean Camera 3705330dd3 Use -pedantic compile time option to find and correct several minor code errors. 15 years ago
Dean Camera 9c8ed168e5 Fix inverted bit-banged USART logic in the AVRISP project for PDI programming. Add a delay to the clock toggling in the AVRISP project to ensure that the programming speed does not exceed 10MHz under any conditions to satisfy the limits in the datasheet for all target voltages. Fix incorrect pin being used as the DATA in in PDI programming mode. 15 years ago
Dean Camera e4cfd5208f Fix incorrect definition of Endpoint_BytesInEndpoint() for the U4 parts. 15 years ago
Dean Camera 7ace314cc1 Increase timeout of Mass Storage and Still Image host commands to 10 seconds (up from 5) to account for slow-processing devices. 15 years ago
Dean Camera c1fa230618 Add new USB_Host_GetDeviceStringDescriptor() convenience function. 15 years ago
Dean Camera c49bdcb7c9 Fixed Mass Storage Host Class driver and Low Level demo not clearing the error condition if an attached device returns a STALL to a GET MAX LUN request (thanks to Martin Luxen). 15 years ago
Dean Camera 478d9dc04f Added support for the Atmel EVK527 board hardware. 15 years ago
Dean Camera 7e86387958 Fix double oops -- Host mode settle delay was still being ignored due to inverted logic, HID Parser was assigning the usage Min/Max usage value to the report item's collection path rather than the report item itself. 15 years ago
Dean Camera a925407588 Oops - fix Host mode pre-enumeration settle delay being ignored leading to failure to enumerate certain devices. 15 years ago
Dean Camera d6e3259f8b Fix incorrect const'ness of the ReportItem parameter in USB_SetHIDReportItemInfo(). 15 years ago
Dean Camera 2919aeeaab Fixed HID Parser not distributing the Usage Min and Usage Max values across an array of report items. 15 years ago
Dean Camera bae00a3d42 Added support for the Dataflash mounted on the XPLAIN board. Added new XPLAIN_REV1 board target for the first revision XPLAIN board, which used a different (smaller) Dataflash IC to later revisions. 15 years ago
Dean Camera 1b2cd16976 Added CDC_Host_Flush() function to the CDC Host Class driver to flush sent data to the attached device. 15 years ago
Dean Camera b7f6a65c25 Fixed USB driver failing to define the PLL prescaler mask for the ATMEGA8U2 and ATMEGA16U2. 15 years ago
Dean Camera 414b92e812 Add to the existing CDC Class Driver's CreateStream() function documentation to explicitly state that the created streams are bidirectional. 15 years ago
Dean Camera 958d28d05d Better checking of whether a packet is received in the RNDISEthernetHost Class driver demo - show busy LED status while packets are being printed out. 15 years ago
Dean Camera 5e46801096 Complete RNDIS Host Class driver code - add SendPacket function. 15 years ago
Dean Camera f6de4db000 Remove documentation of deleted parameters from the RNDIS Host Class driver's device Initialize function. 15 years ago
Dean Camera 04e177b66e Fix RNDIS Device Class driver - RNDISConstants.h has moved out to the Common Class driver directory. 15 years ago
Dean Camera 5aa2b26261 Added new RNDIS Host class driver and the beginnings of a RNDISEthernetHost Class Driver demo. 15 years ago
Dean Camera ab602a8b48 Fix typo in the StillImageHost LowLevel demo, and the CDC Host Class Driver. 15 years ago
Dean Camera 50f4a3b625 Fix build and Doxygen errors. 15 years ago
Dean Camera 8c6c27d88b Added new RNDISHost Host LowLevel demo. Fixed misnamed Pipe_SetPipeToken() macro for setting a pipe's direction. Fixed CDCHost failing on devices with bidirectional endpoints. 15 years ago
Dean Camera c05c7c7df4 Added new XPLAIN serial Bridge project (thanks to John Steggall for the software UART code). 15 years ago
Dean Camera 59ed10273c Fixed host state machine not enabling Auto VBUS mode when HOST_DEVICE_SETTLE_DELAY_MS is set to zero. 15 years ago
Dean Camera e4bf986bb3 Fixed broken USB_GetNextDescriptor() function causing the descriptor to jump ahead double the expected amount. 15 years ago
Dean Camera 702bec892d Fixed misnamed SI_Host_USBTask() and SI_Host_ConfigurePipes() functions. 15 years ago
Dean Camera 8b009bc113 Added new ReportType parameter to the HID Device Class driver CALLBACK_HID_Device_CreateHIDReport() callback to indicate the report type to generate. 15 years ago
Dean Camera c438d01f87 Fixed incorrect values for REPORT_ITEM_TYPE_* enum values causing corrupt data in the HID Host Parser. 15 years ago
Dean Camera aaa0bed556 The incomplete StandaloneProgrammer project now uses Host and Device Mass storage classes, so that program data can either be loaded onto the device's Dataflash storage, or read off an attached USB memory stick. 15 years ago
Dean Camera 6c38ca2890 Fixed Endpoint_Write_Control_Stream_* functions not sending a terminating IN when the given data length is zero. 15 years ago
Dean Camera d753512cca Fix doxygen documentation - doxygen was getting confused on the variable-length ATTR_NON_NULL_PTR_ARG() macro used on function prototypes and was generating many return types for several functions in the documentation (thanks to David Lyons). 15 years ago
Dean Camera 9b20114555 Make RNDISHost demo validate the set Packet Filter to ensure that it is being sent correctly. 15 years ago
Dean Camera 79e54580ae Fixed HOST_STATE_AS_GPIOR being ignored whilst in Host mode (thanks to David Lyons). 15 years ago
Dean Camera ea5236b3e1 Fix incorrect compiler error message when F_CLOCK is not defined by the user (thanks to Dave Lyons). 15 years ago
Dean Camera 21cc9c9e19 Cleanups to the MassStorage Device demos, and the MassStorage Device Class driver. 15 years ago
Dean Camera 588886878e Corrections, improvements and additions to the incomplete RNDISHost demo. 15 years ago
Dean Camera e625fd6df3 Corrected the name of the misnamed USB_GetDeviceConfigDescriptor() function to USB_Host_GetDeviceConfigDescriptor(). 15 years ago
Dean Camera 652042111c Add blocking versions of the CDC Class driver streams, for applications requiring blocking reads. 15 years ago
Dean Camera 6a46f0025a Add beginnings of a RNDIS Ethernet Host demo. 15 years ago
Dean Camera 04774208b6 Minor code cleanups for clarity. 15 years ago
Dean Camera 5de364163f Update CDC Class Driver character stream functions to use the correct avr-libc return codes for errors and EOF. 15 years ago
Dean Camera c1782ac024 Added new stream creation function to the CDC Class drivers, to easily make standard streams from CDC Class driver instances. 15 years ago
Dean Camera d6edfe35c8 Spell check all source code variables, comments and strings. 15 years ago
Dean Camera 8bb007f80b Fixed HID host Class driver report send/receive report broken when issued through the control pipe. 15 years ago
Dean Camera 4dde844e9f Remove dependancies from the LowLevel demos to the ClassDriver demos, since the use of ClassDriver headers now outputs an error when NO_STREAM_CALLBACKS is used. 15 years ago
Dean Camera 34dc7f241f Make Low Level host demos use void pointers for the configuration descriptor, to prevent warnings when passed to the altered configuration descriptor parsing routines. 15 years ago
Dean Camera 64e5c4084f Add optional pipe double banking support to the Host mode Class drivers. 15 years ago
Dean Camera f29fc1abc4 Add double banking property to LUFA powered projects in the Projects directory. Add guards to macro parameters to ensure that formulas passed as parameters don't mess up the internal macro structure. 15 years ago
Dean Camera f7ab433c67 Add optional double-banking support to the Device mode Class Drivers, on a per-endpoint, per-interface level. 15 years ago
Dean Camera 1c7aa68596 Add other missing Printer.h main class driver dispatch file. 15 years ago
Dean Camera 4563350628 Add missing Printer.h common class driver file. 15 years ago
Dean Camera 8ba51f090f Added new Printer Host mode Class driver. 15 years ago
Dean Camera 4670b39070 Fixed HID report parser collection paths invalid due to misplaced semicolon in the free path item search loop. Increased the default number of collection paths allowable by the parser. 15 years ago
Dean Camera f93f732108 Update DevChapter9.c - use the Endpoint_ClearStatusStage() function where possible to reduce code size and (potentially) allow for centralized status stage timeouts. 15 years ago
Dean Camera 5832bab02f Rename the AT90USBXXX67 internal driver directory to AVRU4U6U7. 15 years ago
Dean Camera 870591983c Add const attribute to class driver APIs. 15 years ago
Dean Camera de8c9445d4 Make HID device class driver ignore the previous HID report comparison buffer when the user sets it to NULL, disabling automatic report comparisons. Update HID device class driver documentation giving previous report buffer limitations. 15 years ago
Dean Camera cf610c5c91 Make HID device class driver reselect the correct endpoint after the user callbacks have fired. 15 years ago
Dean Camera de70f0f1cf Moved USBtoSerial demo the Projects directory, as it is simply an expanded CDC demo. Added const qualifier to Endpoint/Pipe stream write routines. 15 years ago
Dean Camera e53c120a22 Fix AudioOutput and AudioInput class driver demos' descriptors -- incorrect value was being supplied in the audio descritors field giving the number of discrete audio formats the device supports. 15 years ago
Dean Camera c7bc3ec391 Add new MIDI Host Class driver to the library, and new MIDIHost ClassDriver demo. 15 years ago
Dean Camera 09575f9607 Fix accidentally changed code breaking the HID descriptor parser. 16 years ago
Dean Camera 046fff2aff Fix broken Endpoint/Pipe stream templates. 16 years ago
Dean Camera db435c4995 Minor documentation fixups. 16 years ago
Dean Camera 433399b05d Changed Audio Class driver sample read/write functions to be inline, to reduce the number of cycles needed to transfer samples to and from the device (allowing more time for processing and output). 16 years ago
Dean Camera 3ebfb998ec Added support for the Atmel XPLAIN board. 16 years ago
Dean Camera 2f643f6143 Added new HID_HOST_BOOT_PROTOCOL_ONLY compile time token to reduce the size of the HID Host Class driver when Report protocol is not needed. 16 years ago
Dean Camera baa1b22654 Fixed issue in the HID Host class driver's HID_Host_SendReportByID() routine using the incorrect mode (control/pipe) to send report to the attached device. 16 years ago
Dean Camera 89c837ee34 Removed mostly useless "TestApp" demo, as it was mainly useful only for checking for sytax errors in the library. 16 years ago
Dean Camera e57e08c672 Fixed PrinterHost demo returning invalid Device ID data when the attached device does not have a device ID (thanks to Andrei Krainev). 16 years ago
Dean Camera 409c49f057 Doxygen fixes to \param directives to give data direction in all projects. Make HID item filtering routines clearer in the HID WithParser demos. 16 years ago
Dean Camera 573a27d90a Fix incorrect names for the HID Host protocol setting routines. 16 years ago
Dean Camera 849b9535e7 Add new error condition to the HID Report Parser for when a report is parsed but no unfiltered items are encountered (i.e. nothing of interest in the device report). Make all host HID "WithParser" demos print the new error condition. 16 years ago
Dean Camera 242303c160 Add new attributes to the HID Report Parser and HID Host Mode Class driver to keep track of the largest report the device can send for buffer allocation purposes. Change MouseHostWithParser and KeyboardHostWithParser demos to only allocate the needed number of bytes. 16 years ago
Dean Camera 3ffa7543a0 Finish initial draft of the Host Mode HID Class driver. 16 years ago
Dean Camera 9d6a373cb6 Add const qualifiers to Host mode Class drivers. 16 years ago
Dean Camera 7478b387a9 Oops - Keyboard boot report structure should be an array of 6 keycodes. 16 years ago
Dean Camera aa640330a1 Finish Class Driver MouseHost demo. Update HID Host Class driver; boot protocol now works, still need to finish and test report protocol mode. 16 years ago
Dean Camera 51566d1a81 Added new Pipe_IsFrozen() macro to determine if the currently selected pipe is frozen. 16 years ago
Dean Camera cd0adb7574 Added support for the officially recommended layout of the external peripherals connected to the BUMBLEB board. 16 years ago
Dean Camera 7c6b2019a3 Fix Mass Storage Host Class driver GetMaxLUN command - incorrect function return codes used in comparison to check for success. 16 years ago
Dean Camera eee712f769 Fixed MIDI Device Class driver not sending/receiving MIDI packets of the correct size (thanks to Thomas Bleeker). 16 years ago
Dean Camera 81b618be23 Revert changed CDC_Device_Flush() prototype accidentially changed in the last commit. 16 years ago
Dean Camera e918d977b1 Prevent the CDC Device Class driver from sending empty IN packets on every service task call - only send termination packets when data is in the endpoint. 16 years ago
Dean Camera b221e7d175 Remove USE_NONSTANDARD_DESCRIPTOR_NAMES compile time token, split out standard descriptors into seperate USB_Descriptor_* and USB_StdDescriptor_* structures so that both can be used within the one project. 16 years ago
Dean Camera 524decdeb3 Change HID report parser so that it can calculate and record the sizes (IN, OUT and FEATURE) of each report within the device, by report ID. This will be required in host mode, so that the host can determine how many bytes of data must be read in for each report. 16 years ago
Dean Camera d2068d878c Finish Still Image Host class driver. 16 years ago
Dean Camera c8b72f955f Corrected incorrect signature bytes for the AT90USB82 and added support for the ATMEGAXX2 variant AVRs to the DFU bootloader. 16 years ago
Dean Camera 064e6a2f32 Changed Still Image Host class driver to auto-fill TransactionID element of sent headers depending on the current session state. 16 years ago
Dean Camera 6783bc4594 Add StillImage Host Class Driver functions for opening and closing sessions. Ensure IsActive is set on the interface to allow device functions to run. 16 years ago
Dean Camera 205b35d131 Add user-filtering to the HID report parser, so that the user code can decide which items are to be stored into the HID_ReportInfo_t structure and which should be discarded to save on RAM usage. 16 years ago
Dean Camera 0fdc1a2bc6 Changed HIDParser to only zero out important values in the Parsed HID Report Item Information structure to save cycles. 16 years ago
Dean Camera 0e2ffebb82 Added documentation for the constants and enums of the new StillImage Host Class driver added to the library so far. 16 years ago
Dean Camera 5908e28e8d Fixed StillImageHost not correctly freezing and unfreezing data pipes while waiting for a response block header. 16 years ago
Dean Camera dac7b046fd Add return codes to the CDC Host Class driver String/Byte transmission functions. 16 years ago
Dean Camera cf2776531c Add extra check for OUT ZLP in the CDC Device Class driver service task to quickly clear zero-length termination packets from the host. 16 years ago
Dean Camera 778da9dc6d Removed unused INCLUDE_FROM_BOARD_DRIVER internal define from the board driver dispatch headers. 16 years ago
Dean Camera 7fbb759287 Changed the parameters and behaviour of the USB_GetDeviceConfigDescriptor() function so that it now performs size checks and data validations internally, to simplify user code. 16 years ago
Dean Camera e2822fb30d Remove deleted source files from the LUFA library makefile. 16 years ago
Dean Camera 3dce79d68c Added start of the Still Image Host Class driver demo and driver code. 16 years ago
Dean Camera 0d3a3f7536 Remove skeleton Audio and MIDI Host mode Class drivers -- will not implement in next release. 16 years ago
Dean Camera 94c899d7b7 Fixed Device mode HID Class driver not explicitly initializing the ReportSize parameter to zero before calling callback routine, so that ignored callbacks don't cause incorrect data to be sent. 16 years ago
Dean Camera 922e60192d Condensed SCSI command functions in the LowLevel Mass Storage Host demo, to save on FLASH space. 16 years ago
Dean Camera 023838fe4a Add check to Pipe_IsEndpointBound() in the Mass Storage Host mode Class driver to ensure that multiple instances of the driver can be used on a single device with multiple Mass Storage interfaces. 16 years ago
Dean Camera f52b265090 Simplified Host mode Mass Storage Class driver to reduce compiled program size. 16 years ago
Dean Camera 754ea083d4 Fix memory corruption in Host mode Mass Storage Class driver. 16 years ago
Dean Camera cd2dcc9163 Added better USB Class driver overviews. 16 years ago
Dean Camera d297ea12b7 Added new "Common" section to the class drivers, to hold all mode-independant definitions for clarity. 16 years ago
Dean Camera f7cde02b80 Added extra note about missing OUT endpoint configuration to the HID Device mode Class driver. 16 years ago
Dean Camera 665fe11f12 Fixed Device mode HID Class driver always sending IN reports, even when no data is to be reported. 16 years ago
Dean Camera 8ea5c631c8 Minor documentation fixes to the completed Host mode Class drivers. 16 years ago
Dean Camera f890592806 Completed initial Host mode Mass Storage class driver. 16 years ago
Dean Camera 559ca2ba04 Added MS_Host_TestUnitReady() and MS_Host_ReadDeviceCapacity() to the host mode Mass Storage Class driver. 16 years ago
Dean Camera a765f71727 Add SCSICodes.h to the Class Driver Common folder, and automatically include it in both the Host and Device Mass Storage Class drivers. Delete existing version from the ClassDriver MassStorage device demo's /Lib/ folder. 16 years ago
Dean Camera 31d8ebebc0 Oops: Really disable building of Projects/Host/ClassDriver directory in the Projects/Host/ makefile. 16 years ago
Dean Camera ee744abb7e More work on the Mass Storage Host mode Class driver. 16 years ago
Dean Camera f547eb3608 Optimized Endpoint_Read_Word_* and Pipe_Read_Word_* macros to reduce compiled size. 16 years ago
Dean Camera 6d1adf7339 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. 16 years ago
Dean Camera f229502d9a Fixed AVRISP programmer demo -- can now connect to a target and read/write Sig/Lock/Fuse/OSCCAL bytes successfully. 16 years ago
Dean Camera 1e8df8951a Added V2Protocol handlers to the AVRISP project to enter/exit programming mode, and read/write fuses, lockbits, OSCCAL and Signature bytes. 16 years ago
Dean Camera 2f95eea146 Add LOAD ADDRESS command parsing to the V2 Protocol hander in the AVRISP project. 16 years ago
Dean Camera 6d99486791 Fixed invalid data being returned when a GetStatus request is issued in Device mode with an unhandled data recipient. 16 years ago
Dean Camera ecd82778cf Added beginnings of a new AVRISP-MKII clone project. 16 years ago
Dean Camera 09bedd6555 Added return values to the CDC and MIDI class driver transmit functions. 16 years ago
Dean Camera b71ff7c8cd 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. 16 years ago
Dean Camera df5500e81c Added CDC_Device_Flush() command to the CDC Device mode class driver. 16 years ago
Dean Camera df29aa37c0 Added flag to the HID report parser to indicate if a device has multiple reports. 16 years ago
Dean Camera a7ade9f28d Add CDC Host class driver EVENT_CDC_Host_ControLineStateChanged() event. 16 years ago
Dean Camera abc7dce10c Document CDC Host class driver functions and enums. 16 years ago
Dean Camera c86491af8b Add new functions to the HID host class driver, refine HID interface protocol matching. 16 years ago
Dean Camera a2001ac1cc Fixed swapped paremeters in the HID state memory copy call while processing a HID PUSH item in the HID report parser. 16 years ago
Dean Camera f4814771d2 Completion of initial CDC host mode class driver. 16 years ago
Dean Camera 8711dc7ced Fix issue in CDC device class driver where received data the size of the data endpoint could lock up the driver. 16 years ago
Dean Camera d423090b26 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. 16 years ago
Dean Camera 85c2716f2d 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. 16 years ago
Dean Camera c830fcb0e1 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. 16 years ago
Dean Camera 4421782b7f 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. 16 years ago
Dean Camera a9d5e129b7 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. 16 years ago
Dean Camera 4b35dd1670 Commit for 090810rc1 release. 16 years ago
Dean Camera 042d3288ad Fix incorrect Event call name in USBInterrupt.c. 16 years ago