This file documents changes in the firmware-only USB driver for atmel's AVRmicrocontrollers. New entries are always appended to the end of the file.Scroll down to the bottom to see the most recent changes.2005-04-01:- Implemented endpoint 1 as interrupt-in endpoint.- Moved all configuration options to usbconfig.h which is not part of thedriver.- Changed interface for usbVendorSetup().- Fixed compatibility with ATMega8 device.- Various minor optimizations.2005-04-11:- Changed interface to application: Use usbFunctionSetup(), usbFunctionRead()and usbFunctionWrite() now. Added configuration options to choose whichof these functions to compile in.- Assembler module delivers receive data non-inverted now.- Made register and bit names compatible with more AVR devices.2005-05-03:- Allow address of usbRxBuf on any memory page as long as the buffer doesnot cross 256 byte page boundaries.- Better device compatibility: works with Mega88 now.- Code optimization in debugging module.- Documentation updates.2006-01-02:- Added (free) default Vendor- and Product-IDs bought from voti.nl.- Added USBID-License.txt file which defines the rules for using the freeshared VID/PID pair.- Added Readme.txt to the usbdrv directory which clarifies administrativeissues.2006-01-25:- Added "configured state" to become more standards compliant.- Added "HALT" state for interrupt endpoint.- Driver passes the "USB Command Verifier" test from usb.org now.- Made "serial number" a configuration option.- Minor optimizations, we now recommend compiler option "-Os" for bestresults.- Added a version number to usbdrv.h2006-02-03:- New configuration variable USB_BUFFER_SECTION for the memory section wherethe USB rx buffer will go. This defaults to ".bss" if not defined. Sincethis buffer MUST NOT cross 256 byte pages (not even touch a page at theend), the user may want to pass a linker option similar to"-Wl,--section-start=.mybuffer=0x800060".- Provide structure for usbRequest_t.- New defines for USB constants.- Prepared for HID implementations.- Increased data size limit for interrupt transfers to 8 bytes.- New macro usbInterruptIsReady() to query interrupt buffer state.2006-02-18:- Ensure that the data token which is sent as an ack to an OUT transfer isalways zero sized. This fixes a bug where the host reports an error aftersending an out transfer to the device, although all data arrived at thedevice.- Updated docs in usbdrv.h to reflect changed API in usbFunctionWrite().* Release 2006-02-20- Give a compiler warning when compiling with debugging turned on.- Added Oleg Semyonov's changes for IAR-cc compatibility.- Added new (optional) functions usbDeviceConnect() and usbDeviceDisconnect()(also thanks to Oleg!).- Rearranged tests in usbPoll() to save a couple of instructions in the mostlikely case that no actions are pending.- We need a delay between the SET ADDRESS request until the new addressbecomes active. This delay was handled in usbPoll() until now. Since thespec says that the delay must not exceed 2ms, previous versions requiredaggressive polling during the enumeration phase. We have now moved thehandling of the delay into the interrupt routine.- We must not reply with NAK to a SETUP transaction. We can only achieve thisby making sure that the rx buffer is empty when SETUP tokens are expected.We therefore don't pass zero sized data packets from the status phase ofa transfer to usbPoll(). This change MAY cause troubles if you rely onreceiving a less than 8 bytes long packet in usbFunctionWrite() toidentify the end of a transfer. usbFunctionWrite() will NEVER be calledwith a zero length.* Release 2006-03-14- Improved IAR C support: tiny memory model, more devices- Added template usbconfig.h file under the name usbconfig-prototype.h* Release 2006-03-26- Added provision for one more interrupt-in endpoint (endpoint 3).- Added provision for one interrupt-out endpoint (endpoint 1).- Added flowcontrol macros for USB.- Added provision for custom configuration descriptor.- Allow ANY two port bits for D+ and D-.- Merged (optional) receive endpoint number into global usbRxToken variable.- Use USB_CFG_IOPORTNAME instead of USB_CFG_IOPORT. We now construct thevariable name from the single port letter instead of computing the addressof related ports from the output-port address.* Release 2006-06-26- Updated documentation in usbdrv.h and usbconfig-prototype.h to reflect thenew features.- Removed "#warning" directives because IAR does not understand them. Useunused static variables instead to generate a warning.- Do not include <avr/io.h> when compiling with IAR.- Introduced USB_CFG_DESCR_PROPS_* in usbconfig.h to configure how eachUSB descriptor should be handled. It is now possible to provide descriptordata in Flash, RAM or dynamically at runtime.- STALL is now a status in usbTxLen* instead of a message. We can now conformto the spec and leave the stall status pending until it is cleared.- Made usbTxPacketCnt1 and usbTxPacketCnt3 public. This allows theapplication code to reset data toggling on interrupt pipes.* Release 2006-07-18- Added an #if !defined __ASSEMBLER__ to the warning in usbdrv.h. This fixesan assembler error.- usbDeviceDisconnect() takes pull-up resistor to high impedance now.* Release 2007-02-01- Merged in some code size improvements from usbtiny (thanks to DickStreefland for these optimizations!)- Special alignment requirement for usbRxBuf not required any more. Thanksagain to Dick Streefland for this hint!- Reverted to "#warning" instead of unused static variables -- new versionsof IAR CC should handle this directive.- Changed Open Source license to GNU GPL v2 in order to make linking againstother free libraries easier. We no longer require publication of thecircuit diagrams, but we STRONGLY encourage it. If you improve the driveritself, PLEASE grant us a royalty free license to your changes for ourcommercial license.