1
0

Commit Graph

  • bda4bd4501 Move check for devices not supporting internal serials in demos which make use of USE_INTERNAL_SERIAL to Descriptors.c from Descriptors.h so that the warning is only generated at most once per compilation. Dean Camera 2009-09-01 11:16:57 +00:00
  • dac7b046fd Add return codes to the CDC Host Class driver String/Byte transmission functions. Dean Camera 2009-08-31 13:58:03 +00:00
  • 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. Dean Camera 2009-08-31 12:43:28 +00:00
  • 778da9dc6d Removed unused INCLUDE_FROM_BOARD_DRIVER internal define from the board driver dispatch headers. Dean Camera 2009-08-31 08:35:52 +00:00
  • f9f1bcc25c Oops - with new changes to the way the device Configuration Descriptor is retrieved from the device, ensure that the correct position pointer is cast when extracting descriptor parameters. Dean Camera 2009-08-31 08:27:48 +00:00
  • 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. Dean Camera 2009-08-31 07:48:32 +00:00
  • 813e6f0318 Remove deleted source files from the Device mode Class driver demos to enable them to be built. Dean Camera 2009-08-30 11:42:16 +00:00
  • e2822fb30d Remove deleted source files from the LUFA library makefile. Dean Camera 2009-08-30 11:40:26 +00:00
  • 3dce79d68c Added start of the Still Image Host Class driver demo and driver code. Dean Camera 2009-08-30 11:36:04 +00:00
  • 0d3a3f7536 Remove skeleton Audio and MIDI Host mode Class drivers -- will not implement in next release. Dean Camera 2009-08-30 10:43:41 +00:00
  • 0f51db56c0 Replace -finline-limit with -fno-inline-small-functions in project makefiles. Dean Camera 2009-08-30 06:52:03 +00:00
  • 244c86429b Move ADC VTARGET sampling to a new V2Params_UpdateParamValues() in the AVRISP project so that there is a central place where all non-PC set target values can be updated easily. Dean Camera 2009-08-30 03:51:44 +00:00
  • 4bb236e9a0 Increase AVRISP command timeout to 240ms up from 150ms to prevent some ISP commands from timing out too early. Dean Camera 2009-08-28 08:24:50 +00:00
  • 489515fbbf Make WaitWhileBusy function in the AVRISP project more explicit about how it sends and receives the busy check command. Dean Camera 2009-08-27 23:07:53 +00:00
  • 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. Dean Camera 2009-08-27 22:34:41 +00:00
  • 922e60192d Condensed SCSI command functions in the LowLevel Mass Storage Host demo, to save on FLASH space. Dean Camera 2009-08-27 13:12:44 +00:00
  • 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. Dean Camera 2009-08-27 11:43:37 +00:00
  • f52b265090 Simplified Host mode Mass Storage Class driver to reduce compiled program size. Dean Camera 2009-08-27 08:17:06 +00:00
  • 754ea083d4 Fix memory corruption in Host mode Mass Storage Class driver. Dean Camera 2009-08-27 08:01:33 +00:00
  • cd2dcc9163 Added better USB Class driver overviews. Dean Camera 2009-08-27 07:48:48 +00:00
  • d297ea12b7 Added new "Common" section to the class drivers, to hold all mode-independant definitions for clarity. Dean Camera 2009-08-27 07:38:40 +00:00
  • f7cde02b80 Added extra note about missing OUT endpoint configuration to the HID Device mode Class driver. Dean Camera 2009-08-27 07:10:00 +00:00
  • 665fe11f12 Fixed Device mode HID Class driver always sending IN reports, even when no data is to be reported. Dean Camera 2009-08-27 06:36:01 +00:00
  • 8ea5c631c8 Minor documentation fixes to the completed Host mode Class drivers. Dean Camera 2009-08-27 06:32:12 +00:00
  • f890592806 Completed initial Host mode Mass Storage class driver. Dean Camera 2009-08-27 06:28:18 +00:00
  • 559ca2ba04 Added MS_Host_TestUnitReady() and MS_Host_ReadDeviceCapacity() to the host mode Mass Storage Class driver. Dean Camera 2009-08-26 08:20:55 +00:00
  • 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. Dean Camera 2009-08-26 07:51:40 +00:00
  • 31d8ebebc0 Oops: Really disable building of Projects/Host/ClassDriver directory in the Projects/Host/ makefile. Dean Camera 2009-08-26 07:34:31 +00:00
  • ee744abb7e More work on the Mass Storage Host mode Class driver. Dean Camera 2009-08-26 07:01:32 +00:00
  • f547eb3608 Optimized Endpoint_Read_Word_* and Pipe_Read_Word_* macros to reduce compiled size. Dean Camera 2009-08-25 14:30:42 +00:00
  • 17d06b8494 Add VTARGET level detection to the AVRISP project on supported AVR models. Dean Camera 2009-08-25 14:02:47 +00:00
  • 244bba2097 Make AVRISP project build again - fix incorrect preprocessor directive in V2Protocol.c, fix makefile LUFA_PATH. Dean Camera 2009-08-25 13:26:34 +00:00
  • cfe054474f Partial Commit: Remove now empty Projects\Incomplete directory and add the new AVRISP project to the Projects directory makefile. Dean Camera 2009-08-25 13:24:21 +00:00
  • 271be037b7 Partial Commit: Move AVRISP project out of the Projects\Incomplete directory. Dean Camera 2009-08-25 13:21:19 +00:00
  • 8aee4cb2f2 Add function documentation to the AVRISP project. Dean Camera 2009-08-25 13:15:30 +00:00
  • 73801c73a1 Finished preliminary AVRISP project - all V2 protocol commands now work correctly for basic operations. Dean Camera 2009-08-25 11:24:45 +00:00
  • 4742e95a3f 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 2009-08-25 08:58:48 +00:00
  • 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. Dean Camera 2009-08-25 08:09:49 +00:00
  • f070902bdb 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 2009-08-24 13:39:47 +00:00
  • 8cb8f1cfdd Switch to hardware delays and timeouts via a hardware timer in the V2 Protocol handler. Dean Camera 2009-08-24 12:49:19 +00:00
  • 92adb00f8e 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 2009-08-24 11:04:05 +00:00
  • f9c0357b73 Fixed V2 Protocol READ_FLASH_ISP and READ_EEPROM_ISP handler code in the AVRISP project. Dean Camera 2009-08-24 10:08:02 +00:00
  • bff4dbe189 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. Dean Camera 2009-08-24 09:37:54 +00:00
  • dbb5f249bd 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 2009-08-23 12:38:50 +00:00
  • 7e74bd3ea2 Moved out target-related V2 protocol commands into a seperate file for the AVRISP project. Dean Camera 2009-08-23 10:17:13 +00:00
  • f229502d9a Fixed AVRISP programmer demo -- can now connect to a target and read/write Sig/Lock/Fuse/OSCCAL bytes successfully. Dean Camera 2009-08-23 08:37:11 +00:00
  • 1e8df8951a Added V2Protocol handlers to the AVRISP project to enter/exit programming mode, and read/write fuses, lockbits, OSCCAL and Signature bytes. Dean Camera 2009-08-23 04:01:49 +00:00
  • d540276b44 Correct Programmer's Notepad project file to use the correct path for the AVRISP project files. Dean Camera 2009-08-20 07:25:47 +00:00
  • 5acf23b254 Renamed Projects/Unfinished to Projects/Incomplete for consistancy. Dean Camera 2009-08-20 07:21:43 +00:00
  • 2f95eea146 Add LOAD ADDRESS command parsing to the V2 Protocol hander in the AVRISP project. Dean Camera 2009-08-20 07:16:55 +00:00
  • a9602f0250 Change spinloop in the AVRISP project Unknown V2 Protocol Command handler to use Endpoint_WaitUntilReady() instead to prevent infinite loops. Dean Camera 2009-08-19 13:19:01 +00:00
  • fa8beef82d 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 2009-08-19 08:29:08 +00:00
  • 32cc2b8d4d Reorganise V2Protocol.c, add in function to assert or de-assert target RESET pin. Dean Camera 2009-08-19 07:08:27 +00:00
  • 04354ffcad Added handler for the V2 Protocol SPI_MULTI command to the AVRISP Programmer project. Dean Camera 2009-08-19 06:25:54 +00:00
  • 083d3615d3 Corrections to the unfinished AVRISP Programmer project to allow AVRStudio to connect to it. Dean Camera 2009-08-19 05:40:05 +00:00
  • 6d99486791 Fixed invalid data being returned when a GetStatus request is issued in Device mode with an unhandled data recipient. Dean Camera 2009-08-18 07:42:19 +00:00
  • 0934f5c185 Move AVRISP Programmer project to a new Unfinished subdirectory of Project while it is under development. Dean Camera 2009-08-18 07:37:03 +00:00
  • bbcdaaa6dc Enhancements to the AVRISP Programmer project to attempt to get AVRStudio to communicate with the device. Dean Camera 2009-08-18 07:22:51 +00:00
  • ecd82778cf Added beginnings of a new AVRISP-MKII clone project. Dean Camera 2009-08-17 12:38:24 +00:00
  • 09bedd6555 Added return values to the CDC and MIDI class driver transmit functions. Dean Camera 2009-08-16 14:30:46 +00:00
  • 5d4478b3b4 Fix misspelt event name in the Class driver USBtoSerial demo, preventing correct operation. Dean Camera 2009-08-16 12:37:28 +00:00
  • 3a85962f94 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 2009-08-16 10:57:47 +00:00
  • 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. Dean Camera 2009-08-16 08:51:54 +00:00
  • 25ddbb9e3b Adjust endpoint polling intervals for HID demos, to make them compliant with the 10ms minimum polling period for Low Speed devices. Dean Camera 2009-08-13 08:26:59 +00:00
  • 99abd1a8b7 Added explicit attribute masks to the device mode demos' descriptors. Dean Camera 2009-08-13 08:14:16 +00:00
  • df5500e81c Added CDC_Device_Flush() command to the CDC Device mode class driver. Dean Camera 2009-08-13 06:43:17 +00:00
  • df29aa37c0 Added flag to the HID report parser to indicate if a device has multiple reports. Dean Camera 2009-08-11 11:19:22 +00:00
  • a7ade9f28d Add CDC Host class driver EVENT_CDC_Host_ControLineStateChanged() event. Dean Camera 2009-08-11 10:02:50 +00:00
  • abc7dce10c Document CDC Host class driver functions and enums. Dean Camera 2009-08-11 09:54:22 +00:00
  • c86491af8b Add new functions to the HID host class driver, refine HID interface protocol matching. Dean Camera 2009-08-11 09:12:29 +00:00
  • a2001ac1cc Fixed swapped paremeters in the HID state memory copy call while processing a HID PUSH item in the HID report parser. Dean Camera 2009-08-11 08:36:25 +00:00
  • f4814771d2 Completion of initial CDC host mode class driver. Dean Camera 2009-08-11 02:09:11 +00:00
  • 8711dc7ced Fix issue in CDC device class driver where received data the size of the data endpoint could lock up the driver. Dean Camera 2009-08-11 01:52:15 +00:00
  • a459f10b0c Commit for the 090810 release. Dean Camera 2009-08-09 09:51:48 +00:00
  • 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. Dean Camera 2009-08-07 06:55:31 +00:00
  • 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. Dean Camera 2009-08-07 00:27:11 +00:00
  • 33a5715e91 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 2009-08-06 14:30:53 +00:00
  • 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. Dean Camera 2009-08-06 14:22:04 +00:00
  • 3848482532 Add Benito board LED driver to the Benito Programmer project. Dean Camera 2009-08-05 13:17:06 +00:00
  • 99c447c754 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. Dean Camera 2009-08-05 13:16:36 +00:00
  • 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. Dean Camera 2009-08-05 11:39:28 +00:00
  • 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. Dean Camera 2009-08-05 09:37:45 +00:00
  • 4b35dd1670 Commit for 090810rc1 release. Dean Camera 2009-08-05 07:47:02 +00:00
  • 042d3288ad Fix incorrect Event call name in USBInterrupt.c. Dean Camera 2009-08-05 07:18:08 +00:00
  • c5038f1bf4 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. Dean Camera 2009-08-05 06:36:31 +00:00
  • 357ccc577b 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 2009-08-04 08:36:30 +00:00
  • eff07bb877 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 2009-08-04 08:06:26 +00:00
  • 5c069f909a Update migration notes for the upcomming 090810 release. Dean Camera 2009-08-03 07:15:27 +00:00
  • 840d386deb Cleanup and optimization of the internal serial retrieval routines. Dean Camera 2009-08-03 07:10:54 +00:00
  • ab2ae13d81 Fix build error in TestApp demo caused by previous commit. Dean Camera 2009-08-02 23:17:47 +00:00
  • 6f4cc344ab 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 2009-08-02 23:14:30 +00:00
  • bbf89d81fa 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 2009-08-02 11:43:16 +00:00
  • c5eeedd522 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. Dean Camera 2009-08-02 11:33:00 +00:00
  • ac593611c9 Fixed the ClassDriver GenericHID demo so that it echoes back reports as indicated in the demo overview. Dean Camera 2009-07-31 03:35:24 +00:00
  • eb41086947 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 2009-07-31 03:22:08 +00:00
  • a789619fbe Renamed USB_Device_SetHighSpeed() to USB_Device_SetFullSpeed() so that the correct terminology is used (thanks to Brian Dickman). Dean Camera 2009-07-31 00:35:19 +00:00
  • 7df6b9563c 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 2009-07-30 14:59:57 +00:00
  • 7227e133a9 Ensure that the previous HID reports in the HID device class driver are kept per-instance, rather than per-device. Dean Camera 2009-07-30 14:40:42 +00:00
  • 72932e2780 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 2009-07-30 14:35:42 +00:00
  • ec079c71d8 Minor cleanups to DualCDC ClassDriver device demo for clarity. Dean Camera 2009-07-30 14:12:00 +00:00