diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2010-07-30 03:52:11 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2010-07-30 03:52:11 +0000 |
commit | 24e621a8d8424721ed21ce329d2a28dbf8c35343 (patch) | |
tree | a014f41c82dfbb50706e1a911a5da2414b9766fd /LUFA/ManPages/MigrationInformation.txt | |
parent | 7c8d16fd7adae430f94004048a7702b7338f5eb1 (diff) | |
download | lufa-24e621a8d8424721ed21ce329d2a28dbf8c35343.tar.gz lufa-24e621a8d8424721ed21ce329d2a28dbf8c35343.tar.bz2 lufa-24e621a8d8424721ed21ce329d2a28dbf8c35343.zip |
Altered the CDC Deivice and Host Class drivers' receive byte routines, so that no data is indicated by a negative return value.
Added auto flushing of OUT data to the CDC Host Class driver's USBTask function to automatically flush the send pipe buffer.
Diffstat (limited to 'LUFA/ManPages/MigrationInformation.txt')
-rw-r--r-- | LUFA/ManPages/MigrationInformation.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/LUFA/ManPages/MigrationInformation.txt b/LUFA/ManPages/MigrationInformation.txt index d3453326c..2a0d0c533 100644 --- a/LUFA/ManPages/MigrationInformation.txt +++ b/LUFA/ManPages/MigrationInformation.txt @@ -32,6 +32,16 @@ * enhanced \ref USB_Device_SendRemoteWakeup() function. Existing code may now discard any checks to USB_Device_IsRemoteWakeupSent(). * - The USB_Device_IsUSBSuspended() macro has been removed, as it is obsolete. Existing code should compare \ref USB_DeviceState * to see if it the device is in the \ref DEVICE_STATE_Suspended state instead. + * - The \ref CDC_Device_ReceiveByte() function has changed, and now returns a signed 16-bit integer, with -1 indicating no data was + * received. This allows for more efficient coding, as a call to \ref CDC_Device_BytesReceived() is no longer needed if the exact + * number of queued bytes received is not needed. + * + * <b>Host Mode</b> + * - The \ref CDC_Host_ReceiveByte() function has changed, and now returns a signed 16-bit integer, with -1 indicating no data was + * received. This allows for more efficient coding, as a call to \ref CDC_Device_BytesReceived() is no longer needed if the exact + * number of queued bytes received is not needed. + * - The \ref CDC_Host_USBTask() now calls \ref CDC_Host_Flush() automatically, flushing any queued data to the attached device. Manual + * flushing of the interface is no longer needed if the flushes should be in sync with calls to \ref CDC_Host_USBTask(). * * \section Sec_Migration100513 Migrating from 100219 to 100513 * |