pub/USBasp.git
15 years agoMore documentation fixes.
Dean Camera [Thu, 3 Jun 2010 15:55:28 +0000 (15:55 +0000)]
More documentation fixes.

15 years agoMinor documentation cleanups.
Dean Camera [Thu, 3 Jun 2010 15:32:45 +0000 (15:32 +0000)]
Minor documentation cleanups.

15 years agoStart implementation of RFCOMM decoding layer. Add new service initialize routines...
Dean Camera [Thu, 3 Jun 2010 12:45:15 +0000 (12:45 +0000)]
Start implementation of RFCOMM decoding layer. Add new service initialize routines for each Bluetooth service - currently unused, but will eventually reset the service state of RFCOMM when a new connection is made.

15 years agoDelay needed in bluetooth code due to the send function not waiting for the pipe...
Dean Camera [Thu, 3 Jun 2010 08:42:20 +0000 (08:42 +0000)]
Delay needed in bluetooth code due to the send function not waiting for the pipe bank to become ready before writing. Add in a call to Pipe_WaitUntilReady() to fix the issue.

15 years agoExtra protocol value in the RFCOMM protocol is the channel number, not the PSM -...
Dean Camera [Thu, 3 Jun 2010 08:33:01 +0000 (08:33 +0000)]
Extra protocol value in the RFCOMM protocol is the channel number, not the PSM - update typedef name and size.

Add delay to the Connection Request signal processing routine - without this, the host will not create the RFCOMM channel correctly. Need to investigate why this delay is needed.

15 years agoAdd PSM value to the RFCOMM service so that the host knows what PSM to use on channel...
Dean Camera [Thu, 3 Jun 2010 07:45:09 +0000 (07:45 +0000)]
Add PSM value to the RFCOMM service so that the host knows what PSM to use on channels when trying to access it.

15 years agoAdd start of RFCOMM service layer to the incomplete BluetoothHost demo.
Dean Camera [Thu, 3 Jun 2010 03:58:57 +0000 (03:58 +0000)]
Add start of RFCOMM service layer to the incomplete BluetoothHost demo.

Reduce the size of the attribute search list from 15 ranges to 8 to save RAM.

15 years agoOops - descriptor pointer should be assigned, not incremented with the new type-safe...
Dean Camera [Wed, 2 Jun 2010 15:44:48 +0000 (15:44 +0000)]
Oops - descriptor pointer should be assigned, not incremented with the new type-safe code.

15 years agoBetter fix to avoid void pointer arithmetic in ConfigDescriptor.h to regain C++ compa...
Dean Camera [Wed, 2 Jun 2010 15:28:07 +0000 (15:28 +0000)]
Better fix to avoid void pointer arithmetic in ConfigDescriptor.h to regain C++ compatibility (thanks to Michael Hennebry).

15 years agoFix byte ordering of UUIDs in the SDP server - host can now successfully pair to...
Dean Camera [Wed, 2 Jun 2010 14:49:06 +0000 (14:49 +0000)]
Fix byte ordering of UUIDs in the SDP server - host can now successfully pair to the Bluetooth device and discover the exposed Serial Port Profile RFCOMM service.

15 years agoThe SDP UUID lists should be searched and ALL UUIDs matched for a record to be retrie...
Dean Camera [Wed, 2 Jun 2010 07:05:34 +0000 (07:05 +0000)]
The SDP UUID lists should be searched and ALL UUIDs matched for a record to be retrieved, not partial matches. Change the SDP code so that the entire list must be matched against a service attribute table's contents before it is returned.

Change matching algorithm so that it recursively searches through the entire attribute table, and not just pre-specified sequence attributes.

Add browse lists and proper descriptions to the Serial Port service.

15 years agoAdd L2CAP service attribute table. Fix up ProtocolDescriptorList attributes, and...
Dean Camera [Wed, 2 Jun 2010 04:36:46 +0000 (04:36 +0000)]
Add L2CAP service attribute table. Fix up ProtocolDescriptorList attributes, and add macros for used UUIDs to reduce typing and make the code easier to read.

15 years agoClean up the Service tables, add incomplete ProtocolDescriptorList attribute to the...
Dean Camera [Tue, 1 Jun 2010 14:05:47 +0000 (14:05 +0000)]
Clean up the Service tables, add incomplete ProtocolDescriptorList attribute to the SDP service.

15 years agoRemove incorrect Language ID offset attribute from the SDP server - client assumes...
Dean Camera [Tue, 1 Jun 2010 13:11:55 +0000 (13:11 +0000)]
Remove incorrect Language ID offset attribute from the SDP server - client assumes 0x0100 offset for primary language anyway, and the format of the offset was incorrect anyway.

15 years agoService Attribute SDP requests should have only one Data Element Sequence container...
Dean Camera [Tue, 1 Jun 2010 12:34:48 +0000 (12:34 +0000)]
Service Attribute SDP requests should have only one Data Element Sequence container around the single service's retrieved attributes, not two.

15 years agoDocument inline SDP data read/write functions.
Dean Camera [Tue, 1 Jun 2010 11:38:07 +0000 (11:38 +0000)]
Document inline SDP data read/write functions.

15 years agoMuch faster attribute range lookup - look through short list of attributes and compar...
Dean Camera [Tue, 1 Jun 2010 11:07:29 +0000 (11:07 +0000)]
Much faster attribute range lookup - look through short list of attributes and compare to range, rather than looking up by each possible value within the range.

Cleanups to SDP code. Add missing RFCOMM language base ID offset attribute. Fix incorrect definition of the SWAPENDIAN_32() macro.

15 years agoFix the encoding of UUIDs in the SDP server so that they match the Bluetooth UUID...
Dean Camera [Tue, 1 Jun 2010 04:22:20 +0000 (04:22 +0000)]
Fix the encoding of UUIDs in the SDP server so that they match the Bluetooth UUID format properly.

15 years agoMove SDP service tables out into a new set of files, to make the SDP service code...
Dean Camera [Tue, 1 Jun 2010 03:07:05 +0000 (03:07 +0000)]
Move SDP service tables out into a new set of files, to make the SDP service code cleaner.

15 years agoAdd Service Attribute request processing to the SDP server code.
Dean Camera [Tue, 1 Jun 2010 02:54:53 +0000 (02:54 +0000)]
Add Service Attribute request processing to the SDP server code.

15 years agoFix endianness issues in the Service Discovery Protocol service of the incomplete...
Dean Camera [Mon, 31 May 2010 14:08:15 +0000 (14:08 +0000)]
Fix endianness issues in the Service Discovery Protocol service of the incomplete Bluetooth Host demo. Host can now correctly retrieve specific services, however Windows does not appear to be sending the appropriate generic browse class IDs needed to report the virtual serial service.

15 years agoRemove void* arithmetic in the USB_GetNextDescriptor() static inline function, to...
Dean Camera [Mon, 31 May 2010 06:55:23 +0000 (06:55 +0000)]
Remove void* arithmetic in the USB_GetNextDescriptor() static inline function, to make the header file C++ compatible once again. Implement workaround for an obscure GCC bug which can cause incorrect code generation under some circumstances when the void* is re-cast.

15 years agoSmall tweaks to ConfigDescriptor.c/.h to ensure pointers use the correct type, and...
Dean Camera [Sun, 30 May 2010 14:01:41 +0000 (14:01 +0000)]
Small tweaks to ConfigDescriptor.c/.h to ensure pointers use the correct type, and to remove const attribute from the descriptor comparator callback function pointer type define, and into the function prototype instead.

15 years agoFixed internal device serial not being accessible on the ATMEGAXXU2 AVRs (thanks...
Dean Camera [Sun, 30 May 2010 07:29:18 +0000 (07:29 +0000)]
Fixed internal device serial not being accessible on the ATMEGAXXU2 AVRs (thanks to Axel Rohde).

15 years agoFix spacing of the function parameter descriptions in the Doxygen documentation.
Dean Camera [Sat, 29 May 2010 08:08:26 +0000 (08:08 +0000)]
Fix spacing of the function parameter descriptions in the Doxygen documentation.

15 years agoFixed incorrect signature for the ATMEGA32U2 in the DFU bootloader (thanks to Axel...
Dean Camera [Sat, 29 May 2010 07:51:01 +0000 (07:51 +0000)]
Fixed incorrect signature for the ATMEGA32U2 in the DFU bootloader (thanks to Axel Rohde).

Partial fix to the Bluetooth SDP code - data should be encoded in big endian, not little endian.

15 years agoAdded new VTARGET_REF_VOLTS and VTARGET_SCALE_FACTOR compile time defines to the...
Dean Camera [Thu, 27 May 2010 10:36:21 +0000 (10:36 +0000)]
Added new VTARGET_REF_VOLTS and VTARGET_SCALE_FACTOR compile time defines to the AVRISP-MKII programmer project to set the VTARGET reference voltage and scale factor.

Fixed XPLAINBridge project not correctly reading the XMEGA's supply voltage when reporting back to the host.

15 years agoReplace ring buffer library in Benito and USBtoSerial projects with the new lightweig...
Dean Camera [Wed, 26 May 2010 13:26:10 +0000 (13:26 +0000)]
Replace ring buffer library in Benito and USBtoSerial projects with the new lightweight ring buffer header to improve reliability.

15 years agoRemoved unused line encoding data and control requests from the CDC Bootloader code...
Dean Camera [Wed, 26 May 2010 12:44:05 +0000 (12:44 +0000)]
Removed unused line encoding data and control requests from the CDC Bootloader code, to save space.

15 years agoSwitch to using the correct intptr_t type use where a pointer must be cast to an...
Dean Camera [Wed, 26 May 2010 12:24:44 +0000 (12:24 +0000)]
Switch to using the correct intptr_t type use where a pointer must be cast to an integer type.

15 years agoThe EEPROM stream read/write functions now use eeprom_update_byte() instead of eeprom...
Dean Camera [Wed, 26 May 2010 11:54:55 +0000 (11:54 +0000)]
The EEPROM stream read/write functions now use eeprom_update_byte() instead of eeprom_write_byte(), so that only changed bytes are written to EEPROM to preserve its lifespan.

Changed over the AVRISP-MKII and TemperatureDataLogger projects to use eeprom_update_byte() when writing non-volatile parameters to EEPROM to preserve its lifespan.

15 years agoAdd better documentation to the Software UART code in the XPLAINBridge project.
Dean Camera [Wed, 26 May 2010 08:10:35 +0000 (08:10 +0000)]
Add better documentation to the Software UART code in the XPLAINBridge project.

15 years agoSwitch software UART over to timer 1 and remove timer prescaling to try to prevent...
Dean Camera [Wed, 26 May 2010 07:51:25 +0000 (07:51 +0000)]
Switch software UART over to timer 1 and remove timer prescaling to try to prevent integer rounding errors and thus minimize the possible error of the UART code.

15 years agoRename software USART driver globals to make the code more in line with the rest...
Dean Camera [Wed, 26 May 2010 07:35:27 +0000 (07:35 +0000)]
Rename software USART driver globals to make the code more in line with the rest of the XPLAINBridge project.

15 years agoMake software USART used in the XPLAINBridge project directly check and store into...
Dean Camera [Wed, 26 May 2010 06:59:55 +0000 (06:59 +0000)]
Make software USART used in the XPLAINBridge project directly check and store into the ring buffers, rather than polling from the main program loop to avoid added latency.

15 years agoCreate a new LightweightRingBuffer.h header file for the XPLAIN project to abstract...
Dean Camera [Wed, 26 May 2010 06:35:02 +0000 (06:35 +0000)]
Create a new LightweightRingBuffer.h header file for the XPLAIN project to abstract out the new ring buffer without a performance penalty.

15 years agoThe RingBuff library code has been replaced in the XPLAINBridge project with an ultra...
Dean Camera [Wed, 26 May 2010 06:15:05 +0000 (06:15 +0000)]
The RingBuff library code has been replaced in the XPLAINBridge project with an ultra lightweight buffer to help  improve the reliability of the bridge.

15 years agoFixed RNDISEthernet demos crashing when calculating checksums for Ethernet/TCP packet...
Dean Camera [Tue, 25 May 2010 06:14:37 +0000 (06:14 +0000)]
Fixed RNDISEthernet demos crashing when calculating checksums for Ethernet/TCP packets of more than ~500 bytes due to an overflow in the checksum calculation loop (thanks to Kevin Malec).

Removed string Attributes from the Service Discovery Protocol code to minimise the potential points of failure while the base code is being debugged.

15 years agoAdd UUID Class matching to the Service Discovery Protocol code - SDP is now correctly...
Dean Camera [Sun, 23 May 2010 13:15:19 +0000 (13:15 +0000)]
Add UUID Class matching to the Service Discovery Protocol code - SDP is now correctly matched against the generic Service Discovery Class UUID.

15 years agoRemove obsolete entry from the Doxygen configuration files.
Dean Camera [Sun, 23 May 2010 08:39:02 +0000 (08:39 +0000)]
Remove obsolete entry from the Doxygen configuration files.

15 years agoSDP Service improvements; fixed UUID for SDP service, added Service Discovery Server...
Dean Camera [Sun, 23 May 2010 08:36:51 +0000 (08:36 +0000)]
SDP Service improvements; fixed UUID for SDP service, added Service Discovery Server UUID, better documentation.

15 years agoAdd comments and partial Doxygen documentation to the incomplete Bluetooth SDP handle...
Dean Camera [Fri, 21 May 2010 09:38:44 +0000 (09:38 +0000)]
Add comments and partial Doxygen documentation to the incomplete Bluetooth SDP handler code.

15 years agoOops - when adding a sequence header to the SDP response, the size value needs to...
Dean Camera [Fri, 21 May 2010 08:01:41 +0000 (08:01 +0000)]
Oops - when adding a sequence header to the SDP response, the size value needs to be cleared, not the buffer pointer.

15 years agoAdd incomplete code to properly handle attribute responses to Service Discovery Proto...
Dean Camera [Fri, 21 May 2010 07:10:49 +0000 (07:10 +0000)]
Add incomplete code to properly handle attribute responses to Service Discovery Protocol requests.

15 years agoService Discovery ServiceSearchAttribute requests require the response to be grouped...
Dean Camera [Thu, 20 May 2010 14:35:52 +0000 (14:35 +0000)]
Service Discovery ServiceSearchAttribute requests require the response to be grouped by UUID, so the response can't be generated as the attributes are read in. Buffer both UUIDs and Attributes instead and generate the response afterwards.

15 years agoShort UUIDs are measured in bytes, not bits -- update Service Discovery Protocol...
Dean Camera [Thu, 20 May 2010 13:06:04 +0000 (13:06 +0000)]
Short UUIDs are measured in bytes, not bits -- update Service Discovery Protocol code so that it can now correctly match against UUIDs in the service table.

15 years agoMore SDP code improvements - responses to ServiceSearchAttribute service discovery...
Dean Camera [Thu, 20 May 2010 08:27:04 +0000 (08:27 +0000)]
More SDP code improvements - responses to ServiceSearchAttribute service discovery requests should now be valid, even if they do not currently return the device's services and service attributes.

Added more documentation to the incomplete Bluetooth stack code.

15 years agoRenamed CDC device class demos' ManagementEndpoint descriptor to NotificationEndpoint...
Dean Camera [Thu, 20 May 2010 06:15:21 +0000 (06:15 +0000)]
Renamed CDC device class demos' ManagementEndpoint descriptor to NotificationEndpoint to more accurately indicate its purpose.

15 years agoSwitch over the BluetoothHost demo's Service Discovery code to pass around more gener...
Dean Camera [Tue, 18 May 2010 12:54:01 +0000 (12:54 +0000)]
Switch over the BluetoothHost demo's Service Discovery code to pass around more generic GUID arrays.

15 years agoAdded new ADC_DisableChannel() function (thanks to Mich Davis).
Dean Camera [Tue, 18 May 2010 12:51:31 +0000 (12:51 +0000)]
Added new ADC_DisableChannel() function (thanks to Mich Davis).

15 years agoBegin processing code for Service Discovery Protocol attributes.
Dean Camera [Mon, 17 May 2010 23:36:05 +0000 (23:36 +0000)]
Begin processing code for Service Discovery Protocol attributes.

15 years agoFixed AVRISP project not sending a full erase-and-write EEPROM command to XMEGA targe...
Dean Camera [Sun, 16 May 2010 05:43:03 +0000 (05:43 +0000)]
Fixed AVRISP project not sending a full erase-and-write EEPROM command to XMEGA targets when writing to the EEPROM instead of the split write-only command (thanks to Tim Margush).

15 years agoFixed AVRISP project sending a LOAD EXTENDED ADDRESS command to 128KB AVRs after...
Dean Camera [Fri, 14 May 2010 10:11:40 +0000 (10:11 +0000)]
Fixed AVRISP project sending a LOAD EXTENDED ADDRESS command to 128KB AVRs after programming or reading from the last page of FLASH.

15 years agoCommit for 100513 re-release due to critical device mode bug.
Dean Camera [Thu, 13 May 2010 13:01:13 +0000 (13:01 +0000)]
Commit for 100513 re-release due to critical device mode bug.

15 years agoRemove incorrect check for the current device state in the Set Configuration request...
Dean Camera [Thu, 13 May 2010 12:57:49 +0000 (12:57 +0000)]
Remove incorrect check for the current device state in the Set Configuration request handler of DevChapter9, which broke Set Configuration requests to the device under most circumstances.

Move out the SPI prescaler list to a PROGMEM module-level variable in ISPTarget.c.

15 years agoAdditional fix to the AVRISP-MKII clone project for 256KB AVRs.
Dean Camera [Thu, 13 May 2010 11:14:10 +0000 (11:14 +0000)]
Additional fix to the AVRISP-MKII clone project for 256KB AVRs.

15 years agoFixed AVRISP-MKII clone project not correctly issuing SET EXTENDED ADDRESS commands...
Dean Camera [Thu, 13 May 2010 09:25:17 +0000 (09:25 +0000)]
Fixed AVRISP-MKII clone project not correctly issuing SET EXTENDED ADDRESS commands when the extended address boundary is crossed during programming or readback (thanks to Gerard Sexton).

Fixed warnings when building the AVRISP-MKII clone project with the ENABLE_XPROG_PROTOCOL compile time option disabled.

15 years agoFixed possible device lockup when INTERRUPT_CONTROL_ENDPOINT is enabled and the contr...
Dean Camera [Thu, 13 May 2010 07:43:18 +0000 (07:43 +0000)]
Fixed possible device lockup when INTERRUPT_CONTROL_ENDPOINT is enabled and the control endpoint is not properly selected when the ISR completes.

15 years agoThe LIBUSB_FILTERDRV_COMPAT compile time option in the XPLAINBridge and AVRISP-MKII...
Dean Camera [Thu, 13 May 2010 07:31:27 +0000 (07:31 +0000)]
The LIBUSB_FILTERDRV_COMPAT compile time option in the XPLAINBridge and AVRISP-MKII projects has been renamed LIBUSB_DRIVER_COMPAT, as it applies to all software on all platforms using the libUSB driver.

Fix Benito makefile which was accidentally changed during testing.

15 years agoRemoved TeensyHID bootloader, per request from Paul at PJRC.
Dean Camera [Wed, 12 May 2010 11:12:53 +0000 (11:12 +0000)]
Removed TeensyHID bootloader, per request from Paul at PJRC.

15 years agoFix Doxygen treating the license as a documentation source file.
Dean Camera [Wed, 12 May 2010 07:52:40 +0000 (07:52 +0000)]
Fix Doxygen treating the license as a documentation source file.

15 years agoCommit for the 100512 release.
Dean Camera [Wed, 12 May 2010 07:30:47 +0000 (07:30 +0000)]
Commit for the 100512 release.

15 years agoFix nasty bug in USBInterrupt.c which would cause a lockup if the control endpoint...
Dean Camera [Tue, 11 May 2010 13:45:23 +0000 (13:45 +0000)]
Fix nasty bug in USBInterrupt.c which would cause a lockup if the control endpoint was not selected at the point the USB endpoint interrupt fires when INTERRUPT_CONTROL_ENDPOINT is defined.

15 years agoRefactor Service Discovery Protocol code in the incomplete Bluetooth Host demo, so...
Dean Camera [Mon, 10 May 2010 13:56:16 +0000 (13:56 +0000)]
Refactor Service Discovery Protocol code in the incomplete Bluetooth Host demo, so that the UUID list is compiled via a seperate function to allow for its re-use between different SDP request types.

15 years agoAdd new ReportType parameter to the HID class driver device callback and host report...
Dean Camera [Sun, 9 May 2010 06:01:01 +0000 (06:01 +0000)]
Add new ReportType parameter to the HID class driver device callback and host report sending routines.

Renamed internal Host mode Class driver descriptor comparator callback routines so that they all start with a uniform DCOMP_{Class Abbreviation}_ prefix.

15 years agoAdd svn:eol-style property to source files, so that the line endings are correctly...
Dean Camera [Sat, 8 May 2010 03:12:14 +0000 (03:12 +0000)]
Add svn:eol-style property to source files, so that the line endings are correctly converted to the target system's native end of line style.

15 years agoChange over instances of "make" in the makefiles to "$(MAKE)" to allow for the make...
Dean Camera [Fri, 7 May 2010 07:11:25 +0000 (07:11 +0000)]
Change over instances of "make" in the makefiles to "$(MAKE)" to allow for the make tool to be overridden.

15 years agoDevice mode class driver callbacks are now fired before the control request status...
Dean Camera [Fri, 7 May 2010 06:54:08 +0000 (06:54 +0000)]
Device mode class driver callbacks are now fired before the control request status stage is sent to prevent the host from timing out if another request is immediately fired and the device has a lengthy callback routine.

Inlined currently unused MIDI ProcessControlRequest routine.

15 years agoDon't cast the line encoding baud rate to a uint16_t before performing the baud rate...
Dean Camera [Fri, 7 May 2010 06:49:31 +0000 (06:49 +0000)]
Don't cast the line encoding baud rate to a uint16_t before performing the baud rate calculation in the Benito project.

15 years agoFix TeensyHID bootloader for the largest AVRs - only the ATMEGA128x needs the alterna...
Dean Camera [Fri, 7 May 2010 06:48:27 +0000 (06:48 +0000)]
Fix TeensyHID bootloader for the largest AVRs - only the ATMEGA128x needs the alternative addressing scheme.

15 years agoChange over unix line-endings to dos line endings.
Dean Camera [Fri, 7 May 2010 06:40:47 +0000 (06:40 +0000)]
Change over unix line-endings to dos line endings.

15 years agoAdded new EVENT_CDC_Device_BreakSent() event and CDC_Host_SendBreak() function to...
Dean Camera [Thu, 6 May 2010 11:56:34 +0000 (11:56 +0000)]
Added new EVENT_CDC_Device_BreakSent() event and CDC_Host_SendBreak() function to the Device and Host CDC Class drivers.

15 years agoRemove incorrect Abstract Call Management class specific descriptor from the CDC...
Dean Camera [Thu, 6 May 2010 11:32:55 +0000 (11:32 +0000)]
Remove incorrect Abstract Call Management class specific descriptor from the CDC demos, bootloaders and projects.

15 years agoEnsure that the CDC class drivers return 0 if the number of unread bytes is queried...
Dean Camera [Thu, 6 May 2010 11:13:24 +0000 (11:13 +0000)]
Ensure that the CDC class drivers return 0 if the number of unread bytes is queried and the bank has become empty.

15 years agoMake CDC class bootloader hard-reset the AVR when exited instead of a soft-reset...
Dean Camera [Thu, 6 May 2010 07:27:13 +0000 (07:27 +0000)]
Make CDC class bootloader hard-reset the AVR when exited instead of a soft-reset. Reduce size of the TeensyHID bootloader slightly.

Fix the TeensyHID bootloader for the larger USB AVR devices, since Paul uses a different (undocumented) addressing scheme on these devices.

15 years agoOops - typo in the updated TeensyHID bootloader code when compiled for the non Teensy...
Dean Camera [Thu, 6 May 2010 02:15:39 +0000 (02:15 +0000)]
Oops - typo in the updated TeensyHID bootloader code when compiled for the non Teensy++ targets.

15 years agoFixed TeensyHID bootloader so that it works with the official TeensyLoader GUI applic...
Dean Camera [Thu, 6 May 2010 02:06:12 +0000 (02:06 +0000)]
Fixed TeensyHID bootloader so that it works with the official TeensyLoader GUI application with all supported AVR models.

15 years agoFixed incorrect comparison in the descriptor callback routine of the TeensyHID bootlo...
Dean Camera [Thu, 6 May 2010 00:25:12 +0000 (00:25 +0000)]
Fixed incorrect comparison in the descriptor callback routine of the TeensyHID bootloader.

15 years agoFix up the ADC driver for the U4 parts to remove a typo on one of the register names.
Dean Camera [Tue, 4 May 2010 11:54:37 +0000 (11:54 +0000)]
Fix up the ADC driver for the U4 parts to remove a typo on one of the register names.

15 years agoRemoved software PDI/TPI emulation from the AVRISP-MKII clone project, as it was...
Dean Camera [Tue, 4 May 2010 11:33:51 +0000 (11:33 +0000)]
Removed software PDI/TPI emulation from the AVRISP-MKII clone project, as it was very buggy. PDI and TPI must now be implemented via seperate headers instead of the one unified ISP/TPI/PDI header.

15 years agoFixed INTERRUPT_CONTROL_ENDPOINT compile time option preventing other interrupts...
Dean Camera [Tue, 4 May 2010 10:16:44 +0000 (10:16 +0000)]
Fixed INTERRUPT_CONTROL_ENDPOINT compile time option preventing other interrupts from occuring while the control endpoint request is being processed, causing possible lockups if a USB interrupt occurs during a transfer.

15 years agoFixed Host mode HID class driver not sending the correct report type when HID_Host_Se...
Dean Camera [Tue, 4 May 2010 10:10:41 +0000 (10:10 +0000)]
Fixed Host mode HID class driver not sending the correct report type when HID_Host_SendReportByID() was called and the HID_HOST_BOOT_PROTOCOL_ONLY compile time option is set.

15 years agoFixed device state not being reset back to the default state if the host sets the...
Dean Camera [Tue, 4 May 2010 10:07:22 +0000 (10:07 +0000)]
Fixed device state not being reset back to the default state if the host sets the address to 0x00.

Fixed Set Configuration requests not being stalled until the host has set the device's address.

Fixed possibility of internal signature retrieval being corrupted if an interrupt occurs during a signature byte read (thanks to Andrei Krainev).

15 years agoAdded new ENDPOINT_*_BusSuspended error code to the Endpoint function, so that the...
Dean Camera [Mon, 3 May 2010 07:41:22 +0000 (07:41 +0000)]
Added new ENDPOINT_*_BusSuspended error code to the Endpoint function, so that the stream functions early-abort if the bus is suspended before or during a transfer.

15 years agoIncrease hardware PDI/TPI programming speed to 1MHz in the AVRISP MKII clone project.
Dean Camera [Sun, 2 May 2010 06:18:42 +0000 (06:18 +0000)]
Increase hardware PDI/TPI programming speed to 1MHz in the AVRISP MKII clone project.

15 years agoSwitch back to C based timeout ISR in the AVRISP project - assembly version was faili...
Dean Camera [Sun, 2 May 2010 06:02:54 +0000 (06:02 +0000)]
Switch back to C based timeout ISR in the AVRISP project - assembly version was failing, and only one or two cycles could be shaved off the compiler generated code.

15 years agoChange AVRISP project's timeout to be interrupt based again, but make the interrupt...
Dean Camera [Sun, 2 May 2010 05:16:34 +0000 (05:16 +0000)]
Change AVRISP project's timeout to be interrupt based again, but make the interrupt itself interruptable and use a seperate assembly file to hand-optimize the ISR code.

Removed the cast to uint16_t on the set baud rate in the USBtoSerial project, so that the higher >1M baud rates can be selected (thanks to Steffan).

15 years agoMake sure that long reads are aborted early if the connection times out while waiting...
Dean Camera [Fri, 30 Apr 2010 08:33:21 +0000 (08:33 +0000)]
Make sure that long reads are aborted early if the connection times out while waiting on more bytes in the AVRISP MKII clone project.

15 years agoMake sure that the NVM bus/controller busy waits in the AVRISP MKII clone project...
Dean Camera [Fri, 30 Apr 2010 08:27:21 +0000 (08:27 +0000)]
Make sure that the NVM bus/controller busy waits in the AVRISP MKII clone project abort properly if a timeout occurs while waiting for a response.

15 years agoThe Audio_Device_IsSampleReceived() and Audio_Device_IsReadyForNextSample() functions...
Dean Camera [Thu, 29 Apr 2010 14:54:11 +0000 (14:54 +0000)]
The Audio_Device_IsSampleReceived() and Audio_Device_IsReadyForNextSample() functions are now inline, to reduce overhead.

15 years agoUse puts_P() and printf_P() instead of the normal variants where possible in the...
Dean Camera [Wed, 28 Apr 2010 14:33:10 +0000 (14:33 +0000)]
Use puts_P() and printf_P() instead of the normal variants where possible in the Host mode Class Driver demos.

15 years agoOops - relocated USBInterrupt.h header file requires adjusted include paths for the...
Dean Camera [Wed, 28 Apr 2010 08:20:15 +0000 (08:20 +0000)]
Oops - relocated USBInterrupt.h header file requires adjusted include paths for the other USB driver header files.

15 years agoRelocate USBInterrupt.c/.h from the HighLevel USB driver directory to the LowLevel...
Dean Camera [Wed, 28 Apr 2010 08:15:16 +0000 (08:15 +0000)]
Relocate USBInterrupt.c/.h from the HighLevel USB driver directory to the LowLevel directory as it is hardware-dependent.

15 years agoRemove incomplete/nonfunctional MIDI class bootloader.
Dean Camera [Wed, 28 Apr 2010 08:00:46 +0000 (08:00 +0000)]
Remove incomplete/nonfunctional MIDI class bootloader.

15 years agoUSB_Init() no longer calls sei() to enable global interrupts - this must now be done...
Dean Camera [Wed, 28 Apr 2010 07:48:26 +0000 (07:48 +0000)]
USB_Init() no longer calls sei() to enable global interrupts - this must now be done in the user application once all init code has run.

15 years agoMake AVRISP-MKII clone project's software PDI/TPI mode more robust by keeping track...
Dean Camera [Wed, 28 Apr 2010 06:33:48 +0000 (06:33 +0000)]
Make AVRISP-MKII clone project's software PDI/TPI mode more robust by keeping track of timeouts while waiting for a Tx/Rx to finish.

15 years agoFix TeensyHID bootloader Doxygen configuration file's CREATE_SUBDIRS options set...
Dean Camera [Tue, 27 Apr 2010 10:07:18 +0000 (10:07 +0000)]
Fix TeensyHID bootloader Doxygen configuration file's CREATE_SUBDIRS options set to true instead of false (thanks to Andrei Krainev).

15 years agoAdded ability to search by Channel PSM to the GetChannelData() function in the Blueto...
Dean Camera [Thu, 22 Apr 2010 14:08:00 +0000 (14:08 +0000)]
Added ability to search by Channel PSM to the GetChannelData() function in the BluetoothHost demo.

Added new HCI states to properly initialize the bluetooth dongle and retrieve the local BDADDR.

Factored out Bluetooth state information into a new state structure for easy reference in the user application.

Added new StackInitialized() Bluetooth stack callback function.

15 years agoFixed HID Device Class Driver not allocating a temporary buffer when the host request...
Dean Camera [Tue, 20 Apr 2010 08:52:51 +0000 (08:52 +0000)]
Fixed HID Device Class Driver not allocating a temporary buffer when the host requests a report via the control endpoint and the user has set the PrevReportINBuffer driver configuration element to NULL (thanks to Lars Noschinski).

Clean up incomplete BluetoothHost debugging commands to use GCC extension to avoid NULL parameters when no formatting is required.

15 years agoAdd start of a SDP service table, which will be linked to the Bluetooth SDP code.
Dean Camera [Mon, 19 Apr 2010 12:39:58 +0000 (12:39 +0000)]
Add start of a SDP service table, which will be linked to the Bluetooth SDP code.