pub/USBasp.git
15 years agoPrevent the CDC Device Class driver from sending empty IN packets on every service...
Dean Camera [Thu, 10 Sep 2009 06:41:57 +0000 (06:41 +0000)]
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.

15 years agoRemove USE_NONSTANDARD_DESCRIPTOR_NAMES compile time token, split out standard descri...
Dean Camera [Wed, 9 Sep 2009 13:17:04 +0000 (13:17 +0000)]
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.

Add guard to the HID Host Class driver SetProtocol command, to ensure that the device supports boot protocol mode before issuing the request.

15 years agoChange HID report parser so that it can calculate and record the sizes (IN, OUT and...
Dean Camera [Wed, 9 Sep 2009 08:34:24 +0000 (08:34 +0000)]
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.

Add to MouseHostWithParser and KeyboardHostWithParser demos to print out the report sizes when a valid device is connected.

15 years agoAdd Host mode Class driver demo summaries.
Dean Camera [Wed, 9 Sep 2009 04:22:49 +0000 (04:22 +0000)]
Add Host mode Class driver demo summaries.

15 years agoFinish Still Image Host class driver.
Dean Camera [Wed, 9 Sep 2009 04:18:37 +0000 (04:18 +0000)]
Finish Still Image Host class driver.

15 years agoAdd link to third-party signed version of the official FLIP DFU driver for 64-bit...
Dean Camera [Mon, 7 Sep 2009 10:50:58 +0000 (10:50 +0000)]
Add link to third-party signed version of the official FLIP DFU driver for 64-bit Windows OSes to the DFU bootloader readme file.

Add HTML anchor links to URLs in the documentation to ensure that they are rendered correctly in the generated documentation.

15 years agoRemove information about 64 bit Windows OS signing requirements for the CDC based...
Dean Camera [Mon, 7 Sep 2009 08:11:17 +0000 (08:11 +0000)]
Remove information about 64 bit Windows OS signing requirements for the CDC based demos -- apparently the native CDC driver can be installed without first disabling the OS's driver signing requirements.

15 years agoCorrected incorrect signature bytes for the AT90USB82 and added support for the ATMEG...
Dean Camera [Mon, 7 Sep 2009 07:57:00 +0000 (07:57 +0000)]
Corrected incorrect signature bytes for the AT90USB82 and added support for the ATMEGAXX2 variant AVRs to the DFU bootloader.

Added warning to the EVENT_USB_Device_Connect() and EVENT_USB_Device_Disconnect() events that they may be fired multiple times during device enumeration on the series 2 AVRs.

15 years agoFixed DFU and CDC class bootloaders on the AT90USBXXX2 series USB AVRs.
Dean Camera [Sun, 6 Sep 2009 20:30:26 +0000 (20:30 +0000)]
Fixed DFU and CDC class bootloaders on the AT90USBXXX2 series USB AVRs.

15 years agoAdd in new invalid event hook check targets to project makefiles to produce compilati...
Dean Camera [Sun, 6 Sep 2009 05:58:40 +0000 (05:58 +0000)]
Add in new invalid event hook check targets to project makefiles to produce compilation errors when invalid event names are used in a project.

Re-add in flip, flip-ee, dfu and dfu-ee targets to project makefiles (thanks to Opendous Inc.)

Fix allowable F_CPU values comment in project makefiles.

15 years agoAdded 64 bit OS driver installation instructions to the readme for all CDC based...
Dean Camera [Sun, 6 Sep 2009 04:22:46 +0000 (04:22 +0000)]
Added 64 bit OS driver installation instructions to the readme for all CDC based projects.

15 years agoChanged Still Image Host class driver to auto-fill TransactionID element of sent...
Dean Camera [Sun, 6 Sep 2009 04:15:35 +0000 (04:15 +0000)]
Changed Still Image Host class driver to auto-fill TransactionID element of sent headers depending on the current session state.

CDC based demos and project now work under 64 bit versions of Windows (thanks to Ronny Hanson, Thomas Bleeker).

The Benito Programmer project now has its own unique VID/PID pair allocated from the Atmel donated LUFA VID/PID pool.

15 years agoAdd StillImage Host Class Driver functions for opening and closing sessions. Ensure...
Dean Camera [Wed, 2 Sep 2009 13:08:55 +0000 (13:08 +0000)]
Add StillImage Host Class Driver functions for opening and closing sessions. Ensure IsActive is set on the interface to allow device functions to run.

Fix spelling of "Received" in all source files where it is misspelt "Recieved".

15 years agoAdd user-filtering to the HID report parser, so that the user code can decide which...
Dean Camera [Wed, 2 Sep 2009 07:16:52 +0000 (07:16 +0000)]
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.

15 years agoFixed error in PrinterHost preventing the full page data from being sent to the attac...
Dean Camera [Wed, 2 Sep 2009 00:27:52 +0000 (00:27 +0000)]
Fixed error in PrinterHost preventing the full page data from being sent to the attached device.

15 years agoChanged HIDParser to only zero out important values in the Parsed HID Report Item...
Dean Camera [Tue, 1 Sep 2009 15:46:46 +0000 (15:46 +0000)]
Changed HIDParser to only zero out important values in the Parsed HID Report Item Information structure to save cycles.

15 years agoFix up MissileLauncher demo's ConfigurationDescriptor.c so that it uses the new USB_G...
Dean Camera [Tue, 1 Sep 2009 13:57:47 +0000 (13:57 +0000)]
Fix up MissileLauncher demo's ConfigurationDescriptor.c so that it uses the new USB_GetDeviceConfigDescriptor() function parameters.

15 years agoAdded documentation for the constants and enums of the new StillImage Host Class...
Dean Camera [Tue, 1 Sep 2009 13:47:11 +0000 (13:47 +0000)]
Added documentation for the constants and enums of the new StillImage Host Class driver added to the library so far.

15 years agoFixed StillImageHost not correctly freezing and unfreezing data pipes while waiting...
Dean Camera [Tue, 1 Sep 2009 13:35:30 +0000 (13:35 +0000)]
Fixed StillImageHost not correctly freezing and unfreezing data pipes while waiting for a response block header.

Added basic PIMA commands to the StillImage Host Class driver - need to extend to PIMA specific command functions.

15 years agoMove check for devices not supporting internal serials in demos which make use of...
Dean Camera [Tue, 1 Sep 2009 11:16:57 +0000 (11:16 +0000)]
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.

15 years agoAdd return codes to the CDC Host Class driver String/Byte transmission functions.
Dean Camera [Mon, 31 Aug 2009 13:58:03 +0000 (13:58 +0000)]
Add return codes to the CDC Host Class driver String/Byte transmission functions.

15 years agoAdd extra check for OUT ZLP in the CDC Device Class driver service task to quickly...
Dean Camera [Mon, 31 Aug 2009 12:43:28 +0000 (12:43 +0000)]
Add extra check for OUT ZLP in the CDC Device Class driver service task to quickly clear zero-length termination packets from the host.

15 years agoRemoved unused INCLUDE_FROM_BOARD_DRIVER internal define from the board driver dispat...
Dean Camera [Mon, 31 Aug 2009 08:35:52 +0000 (08:35 +0000)]
Removed unused INCLUDE_FROM_BOARD_DRIVER internal define from the board driver dispatch headers.

15 years agoOops - with new changes to the way the device Configuration Descriptor is retrieved...
Dean Camera [Mon, 31 Aug 2009 08:27:48 +0000 (08:27 +0000)]
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.

15 years agoChanged the parameters and behaviour of the USB_GetDeviceConfigDescriptor() function...
Dean Camera [Mon, 31 Aug 2009 07:48:32 +0000 (07:48 +0000)]
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.

15 years agoRemove deleted source files from the Device mode Class driver demos to enable them...
Dean Camera [Sun, 30 Aug 2009 11:42:16 +0000 (11:42 +0000)]
Remove deleted source files from the Device mode Class driver demos to enable them to be built.

15 years agoRemove deleted source files from the LUFA library makefile.
Dean Camera [Sun, 30 Aug 2009 11:40:26 +0000 (11:40 +0000)]
Remove deleted source files from the LUFA library makefile.

Renamed parameters of SI_Host_ConfigurePipes() to match other Host mode Class drivers.

15 years agoAdded start of the Still Image Host Class driver demo and driver code.
Dean Camera [Sun, 30 Aug 2009 11:36:04 +0000 (11:36 +0000)]
Added start of the Still Image Host Class driver demo and driver code.

Re-enabled building of the Host mode demos ClassDriver directory.

15 years agoRemove skeleton Audio and MIDI Host mode Class drivers -- will not implement in next...
Dean Camera [Sun, 30 Aug 2009 10:43:41 +0000 (10:43 +0000)]
Remove skeleton Audio and MIDI Host mode Class drivers -- will not implement in next release.

15 years agoReplace -finline-limit with -fno-inline-small-functions in project makefiles.
Dean Camera [Sun, 30 Aug 2009 06:52:03 +0000 (06:52 +0000)]
Replace -finline-limit with -fno-inline-small-functions in project makefiles.

15 years agoMove ADC VTARGET sampling to a new V2Params_UpdateParamValues() in the AVRISP project...
Dean Camera [Sun, 30 Aug 2009 03:51:44 +0000 (03:51 +0000)]
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.

15 years agoIncrease AVRISP command timeout to 240ms up from 150ms to prevent some ISP commands...
Dean Camera [Fri, 28 Aug 2009 08:24:50 +0000 (08:24 +0000)]
Increase AVRISP command timeout to 240ms up from 150ms to prevent some ISP commands from timing out too early.

Add check to the PROGRAM FLASH ISP and PROGRAM EEPROM ISP handler to return an explicit error when the host attempts to write more data than the device is able to buffer.

15 years agoMake WaitWhileBusy function in the AVRISP project more explicit about how it sends...
Dean Camera [Thu, 27 Aug 2009 23:07:53 +0000 (23:07 +0000)]
Make WaitWhileBusy function in the AVRISP project more explicit about how it sends and receives the busy check command.

Reduce size of PROGRAM FLASH ISP or PROGRAM EEPROM ISP buffer to 256 bytes to prevent blowing the stack on the smallest USB AVR models.

15 years agoFixed Device mode HID Class driver not explicitly initializing the ReportSize paramet...
Dean Camera [Thu, 27 Aug 2009 22:34:41 +0000 (22:34 +0000)]
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.

15 years agoCondensed SCSI command functions in the LowLevel Mass Storage Host demo, to save...
Dean Camera [Thu, 27 Aug 2009 13:12:44 +0000 (13:12 +0000)]
Condensed SCSI command functions in the LowLevel Mass Storage Host demo, to save on FLASH space.

Fixed issue in AVRISP project where the target RESET line was being toggled before it was tristated, causing problems synchronising to some targets (thanks to Mike Alex).

15 years agoAdd check to Pipe_IsEndpointBound() in the Mass Storage Host mode Class driver to...
Dean Camera [Thu, 27 Aug 2009 11:43:37 +0000 (11:43 +0000)]
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.

15 years agoSimplified Host mode Mass Storage Class driver to reduce compiled program size.
Dean Camera [Thu, 27 Aug 2009 08:17:06 +0000 (08:17 +0000)]
Simplified Host mode Mass Storage Class driver to reduce compiled program size.

15 years agoFix memory corruption in Host mode Mass Storage Class driver.
Dean Camera [Thu, 27 Aug 2009 08:01:33 +0000 (08:01 +0000)]
Fix memory corruption in Host mode Mass Storage Class driver.

15 years agoAdded better USB Class driver overviews.
Dean Camera [Thu, 27 Aug 2009 07:48:48 +0000 (07:48 +0000)]
Added better USB Class driver overviews.

15 years agoAdded new "Common" section to the class drivers, to hold all mode-independant definit...
Dean Camera [Thu, 27 Aug 2009 07:38:40 +0000 (07:38 +0000)]
Added new "Common" section to the class drivers, to hold all mode-independant definitions for clarity.

Moved SCSI command/sense constants into the Mass Storage Class driver, instead of the user-code.

15 years agoAdded extra note about missing OUT endpoint configuration to the HID Device mode...
Dean Camera [Thu, 27 Aug 2009 07:10:00 +0000 (07:10 +0000)]
Added extra note about missing OUT endpoint configuration to the HID Device mode Class driver.

Added pinout information to the AVRISP project.

15 years agoFixed Device mode HID Class driver always sending IN reports, even when no data is...
Dean Camera [Thu, 27 Aug 2009 06:36:01 +0000 (06:36 +0000)]
Fixed Device mode HID Class driver always sending IN reports, even when no data is to be reported.

15 years agoMinor documentation fixes to the completed Host mode Class drivers.
Dean Camera [Thu, 27 Aug 2009 06:32:12 +0000 (06:32 +0000)]
Minor documentation fixes to the completed Host mode Class drivers.

15 years agoCompleted initial Host mode Mass Storage class driver.
Dean Camera [Thu, 27 Aug 2009 06:28:18 +0000 (06:28 +0000)]
Completed initial Host mode Mass Storage class driver.

15 years agoAdded MS_Host_TestUnitReady() and MS_Host_ReadDeviceCapacity() to the host mode Mass...
Dean Camera [Wed, 26 Aug 2009 08:20:55 +0000 (08:20 +0000)]
Added MS_Host_TestUnitReady() and MS_Host_ReadDeviceCapacity() to the host mode Mass Storage Class driver.

15 years agoAdd SCSICodes.h to the Class Driver Common folder, and automatically include it in...
Dean Camera [Wed, 26 Aug 2009 07:51:40 +0000 (07:51 +0000)]
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.

15 years agoOops: Really disable building of Projects/Host/ClassDriver directory in the Projects...
Dean Camera [Wed, 26 Aug 2009 07:34:31 +0000 (07:34 +0000)]
Oops: Really disable building of Projects/Host/ClassDriver directory in the Projects/Host/ makefile.

Add more skeleton functions and definitions to the Mass Storage Host mode Class driver.

Made Endpoint_Write_DWord_* functions echo the structure of the matching Endpoint routines for clarity.

15 years agoMore work on the Mass Storage Host mode Class driver.
Dean Camera [Wed, 26 Aug 2009 07:01:32 +0000 (07:01 +0000)]
More work on the Mass Storage Host mode Class driver.

Added  ATTR_NON_NULL_PTR_ARG() attributes to the class drivers to improve user code reliability by disallowing explicit NULL pointers as pointer parameters in function calls where the parameter must not be NULL.

Disabled building of the Demos/Host/ClassDriver directory until Host Mode Class drivers are complete to prevent build errors in the meantime.

15 years agoOptimized Endpoint_Read_Word_* and Pipe_Read_Word_* macros to reduce compiled size.
Dean Camera [Tue, 25 Aug 2009 14:30:42 +0000 (14:30 +0000)]
Optimized Endpoint_Read_Word_* and Pipe_Read_Word_* macros to reduce compiled size.

Fixed Programmer's Notepad project file to reflect new location of AVRISP project.

15 years agoAdd VTARGET level detection to the AVRISP project on supported AVR models.
Dean Camera [Tue, 25 Aug 2009 14:02:47 +0000 (14:02 +0000)]
Add VTARGET level detection to the AVRISP project on supported AVR models.

15 years agoMake AVRISP project build again - fix incorrect preprocessor directive in V2Protocol...
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.

15 years agoPartial Commit: Remove now empty Projects\Incomplete directory and add the new AVRISP...
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.

15 years agoPartial Commit: Move AVRISP project out of the Projects\Incomplete directory.
Dean Camera [Tue, 25 Aug 2009 13:21:19 +0000 (13:21 +0000)]
Partial Commit: Move AVRISP project out of the Projects\Incomplete directory.

15 years agoAdd function documentation to the AVRISP project.
Dean Camera [Tue, 25 Aug 2009 13:15:30 +0000 (13:15 +0000)]
Add function documentation to the AVRISP project.

15 years agoFinished preliminary AVRISP project - all V2 protocol commands now work correctly...
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.

15 years agoFixed AVRISP V2 Protocol handler for the READ_FLASH_ISP and READ_EEPROM_ISP handler...
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.

15 years agoUpdated Benito project -- added hardware interrupt and software buffering for serial...
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.

15 years agoFix endianness of LOAD_ADDRESS command data, add correct PROGRAM_FLASH_ISP/PROGRAM_EE...
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.

15 years agoSwitch to hardware delays and timeouts via a hardware timer in the V2 Protocol handler.
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.

15 years agoAdded PROGRAM_FLASH_ISP and PROGRAM_EEPROM_ISP handler code to the V2 Protocol handle...
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.

15 years agoFixed V2 Protocol READ_FLASH_ISP and READ_EEPROM_ISP handler code in the AVRISP project.
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.

15 years agoFix to V2 Protocol for Fuse/Sig/Lock byte read -- off by one error on the array when...
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.

15 years agoAdded V2 protocol handlers for the READ and WRITE memory commands in the AVRISP proje...
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.

15 years agoMoved out target-related V2 protocol commands into a seperate file for the AVRISP...
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.

15 years agoFixed AVRISP programmer demo -- can now connect to a target and read/write Sig/Lock...
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.

15 years agoAdded V2Protocol handlers to the AVRISP project to enter/exit programming mode, and...
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.

15 years agoCorrect Programmer's Notepad project file to use the correct path for the AVRISP...
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.

15 years agoRenamed Projects/Unfinished to Projects/Incomplete for consistancy.
Dean Camera [Thu, 20 Aug 2009 07:21:43 +0000 (07:21 +0000)]
Renamed Projects/Unfinished to Projects/Incomplete for consistancy.

15 years agoAdd LOAD ADDRESS command parsing to the V2 Protocol hander in the AVRISP project.
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.

15 years agoChange spinloop in the AVRISP project Unknown V2 Protocol Command handler to use...
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.

15 years agoMoved out the handling of V2 Protocol parameters to a seperate set of files. Added...
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.

15 years agoReorganise V2Protocol.c, add in function to assert or de-assert target RESET pin.
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.

15 years agoAdded handler for the V2 Protocol SPI_MULTI command to the AVRISP Programmer project.
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.

15 years agoCorrections to the unfinished AVRISP Programmer project to allow AVRStudio to connect...
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.

15 years agoFixed invalid data being returned when a GetStatus request is issued in Device mode...
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.

15 years agoMove AVRISP Programmer project to a new Unfinished subdirectory of Project while...
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.

15 years agoEnhancements to the AVRISP Programmer project to attempt to get AVRStudio to communic...
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.

15 years agoAdded beginnings of a new AVRISP-MKII clone project.
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.

15 years agoAdded return values to the CDC and MIDI class driver transmit functions.
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.

15 years agoFix misspelt event name in the Class driver USBtoSerial demo, preventing correct...
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.

15 years agoFix USBtoSerial device demos -- ensure the UDR1 register contents is read in under...
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.

15 years agoAdded new EVENT_USB_Device_StartOfFrame() event, controlled by the new USB_Device_Ena...
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.

15 years agoAdjust endpoint polling intervals for HID demos, to make them compliant with the...
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.

15 years agoAdded explicit attribute masks to the device mode demos' descriptors.
Dean Camera [Thu, 13 Aug 2009 08:14:16 +0000 (08:14 +0000)]
Added explicit attribute masks to the device mode demos' descriptors.

15 years agoAdded CDC_Device_Flush() command to the CDC Device mode class driver.
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.

15 years agoAdded flag to the HID report parser to indicate if a device has multiple reports.
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.

15 years agoAdd CDC Host class driver EVENT_CDC_Host_ControLineStateChanged() event.
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.

15 years agoDocument CDC Host class driver functions and enums.
Dean Camera [Tue, 11 Aug 2009 09:54:22 +0000 (09:54 +0000)]
Document CDC Host class driver functions and enums.

15 years agoAdd new functions to the HID host class driver, refine HID interface protocol matching.
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.

15 years agoFixed swapped paremeters in the HID state memory copy call while processing a HID...
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.

15 years agoCompletion of initial CDC host mode class driver.
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.

15 years agoFix issue in CDC device class driver where received data the size of the data endpoin...
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.

15 years agoCommit for the 090810 release.
Dean Camera [Sun, 9 Aug 2009 09:51:48 +0000 (09:51 +0000)]
Commit for the 090810 release.

16 years agoCleanups to RNDIS device demos. Fix issue in RNDIS demos where the memory would becom...
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.

16 years agoMake Benito ping-pong LED code more explicit, using masks of the TX and RX LED masks...
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.

16 years agoSimplify CDC device demos, by directly assigning the string to transmit to the pointe...
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.

16 years agoMake Endpoint control transfers more reliable; early-abort when an incomplete packet...
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.

16 years agoAdd Benito board LED driver to the Benito Programmer project.
Dean Camera [Wed, 5 Aug 2009 13:17:06 +0000 (13:17 +0000)]
Add Benito board LED driver to the Benito Programmer project.

16 years agoFixed issue in USBtoSerial demos where the USART Rx line was not having its pullup...
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.

16 years agoMake Control Endpoint stream transfers more reliable by adding in early aborts for...
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.