Delete host mode demos from the root Host demos folder.
[pub/lufa.git] / LUFA / MigrationInformation.txt
index a04b1b0..cbf5b93 100644 (file)
  *  to the next version released. It does not indicate all new additions to the library in each version change, only\r
  *  areas relevant to making older projects compatible with the API changes of each new release.\r
  *\r
- * \section Sec_MigrationXXXXXX Migrating from 090209 to XXXXXX\r
+ * \section Sec_Migration090605 Migrating from 090510 to 090605\r
+ *\r
+ *\r
+ * \section Sec_Migration090605 Migrating from 090510 to 090605\r
+ *\r
+ *  <b>Device Mode</b>\r
+ *    - Support for non-control data endpoint interrupts has been dropped due to many issues in the implementation. All existing\r
+ *      projects using interrupts on non-control endpoints should switch to polling. For control interrupts, the library can\r
+ *      manage the control endpoint via interrupts automatically by compiling with the INTERRUPT_CONTROL_ENDPOINT token defined.\r
+ *    - The DESCRIPTOR_ADDRESS() macro has been removed. User applications should use normal casts to obtain a descriptor's memory\r
+ *      address.\r
+ *    - The library events system has been rewritten, so that all macros have been removed to allow for clearer user code. See\r
+ *      \ref Group_Events for new API details.\r
+ *    - The STREAM_CALLBACK() macro has been removed. User applications should replace all instances of the macro with regular\r
+ *      function signatures of a function accepting no arguments and returning a uint8_t value.\r
+ *    - The Event_DeviceError() event no longer exists, as its sole caller (unlinked USB_GetDescriptor() function) now produces a\r
+ *      compilation error rather than a runtime error. The StdDescriptors.c file no longer exists as a result, and should be removed\r
+ *      from project makefiles.\r
+ *    - The USB_GetDescriptor() function has been renamed to CALLBACK_USB_GetDescriptor() to be in line with the new CALLBACK_ function\r
+ *      prefixes for functions which *must* be implemented in the user application.\r
+ *\r
+ *  <b>Host Mode</b>\r
+ *    - Support for non-control data pipe interrupts has been dropped due to many issues in the implementation. All existing\r
+ *      projects using interrupts on non-control pipes should switch to polling.\r
+ *    - The library events system has been rewritten, so that all macros have been removed to allow for clearer user code. See\r
+ *      \ref Group_Events for new API details.\r
+ *    - The STREAM_CALLBACK() macro has been removed. User applications should replace all instances of the macro with regular\r
+ *      function signatures of a function accepting no arguments and returning a uint8_t value.\r
+ *    - The DESCRIPTOR_COMPARATOR() macro has been removed. User applications should replace all instances of the macro with\r
+ *      regular function signatures of a function accepting a void pointer to the descriptor to test, and returning a uint8_t value.\r
+ *\r
+ *\r
+ * \section Sec_Migration090510 Migrating from 090401 to 090510\r
+ *\r
+ *  <b>All</b>\r
+ *    - The ButtLoadTag.h header has been removed, as it was never used for its intended purpose. Projects should either remove all\r
+ *      BUTTLOADTAG elements, or download and extract ButtLoadTag.h header from the ButtLoad project.\r
+ *    - The Drivers/AT90USBXXX directory has been renamed to Drivers/Peripheral.\r
+ *    - The Serial_Stream driver has been renamed to SerialStream to remain consistent with the rest of the library naming scheme.\r
+ *    - The HWB driver has changed to the Buttons driver. See the board Buttons driver documentation for the new API.\r
+ *\r
+ *  <b>Dual Role Mode</b>\r
+ *    - The USB_PowerOnFail even has been renamed to USB_InitFailure.\r
+ *    - The functions in OTG.h have been renamed to remain more consistent with the library API. See the functions in OTG.h for more\r
+ *      details.\r
+ *\r
+ *  <b>Library Demos</b>\r
+ *    - Most demos, bootloaders and applications have had significant changes from previous versions. Applications built off of any\r
+ *      library demos should update to the latest versions.\r
+ *\r
+ *  <b>Device Mode</b>\r
+ *    - The Endpoint_ClearCurrentBank() macro has been removed, and is now replaced with the Endpoint_ClearIN(), Endpoint_ClearOUT() \r
+ *      macros. See Endpoint.h documentation for more details on the new endpoint management macros.\r
+ *    - The Endpoint_ReadWriteAllowed() macro has been renamed to Endpoint_IsReadWriteAllowed() to be more consistent with the rest of\r
+ *      the API naming scheme.\r
+ *    - The Endpoint_IsSetupINReady() and Endpoint_IsSetupOutReceived() macros have been renamed to Endpoint_IsINReady() and\r
+ *      Endpoint_IsOUTReceived() respectively.\r
+ *    - The Endpoint_IsSetupReceived() macro has been renamed to Endpoint_IsSETUPReceived().\r
+ *    - The Endpoint_ClearSetupReceived() macro has been renamed to Endpoint_ClearSETUP().\r
+ *    - All endpoint read/write/discard aliases which did not have an explicitly endianness specifier (such as Endpoint_Read_Word()) have\r
+ *      been removed for clarity. Existing projects should use the "_LE" suffix on such calls to use the explicit Little Endian versions.\r
+ *    - The USB_UnhandledControlPacket event no longer has any parameters. User code should no longer attempt to read in the remainder of\r
+ *      the Control Request header as all Control Request header data is now preloaded by the library and made available in the\r
+ *      USB_ControlRequest structure.\r
+ *    - The FEATURELESS_CONTROL_ONLY_DEVICE token has been renamed to CONTROL_ONLY_DEVICE.\r
+ *    - The STATIC_ENDPOINT_CONFIGURATION is no longer applicable as the library will apply this optimization when appropriate automatically.\r
+ *    - The values of the Endpoint_Stream_RW_ErrorCodes_t and Endpoint_ControlStream_RW_ErrorCodes_t enums have had the "ERROR_" portion\r
+ *      of their names removed.\r
+ *\r
+ *  <b>Host Mode</b>\r
+ *    - The USB_Host_SendControlRequest() function no longer automatically selects the Control pipe (pipe 0) to allow it to be used on\r
+ *      other control type pipes. Care should be taken to ensure that the Control pipe is always selected before the function is called\r
+ *      in existing projects where the Control pipe is to be operated on.\r
+ *    - The USB Host management task now saves and restores the currently selected pipe before and after the task runs. Projects no longer\r
+ *      need to manage this manually when calling the USB management task.\r
+ *    - The Pipe_ClearCurrentBank() macro has been removed, and is now replaced with the Pipe_ClearIN(), Pipe_ClearOUT() macros. See\r
+ *      Pipe.h documentation for more details on the new pipe management macros.\r
+ *    - The Pipe_ReadWriteAllowed() macro has been renamed to Pipe_IsReadWriteAllowed() to be more consistent with the rest of the API\r
+ *      naming scheme.\r
+ *    - The Pipe_IsSetupINReceived() and Pipe_IsOutReady() macros have been renamed to Pipe_IsINReceived() and Pipe_IsOUTReady()\r
+ *      respectively.\r
+ *    - The new Pipe_ClearSETUP() macro should be used to send SETUP transactions, rather than the previous Pipe_ClearSetupOUT() macro.\r
+ *    - The Pipe_IsSetupSent() macro has been renamed to Pipe_IsSETUPSent().\r
+ *    - The Pipe_ClearSetupSent() macro is no longer applicable and should be removed.\r
+ *    - All pipe read/write/discard aliases which did not have an explicitly endianness specifier (such as Pipe_Read_Word()) have\r
+ *      been removed for clarity. Existing projects should use the "_LE" suffix on such calls to use the explicit Little Endian versions.\r
+ *    - The Host_IsResetBusDone() macro has been renamed to Host_IsBusResetComplete().\r
+ *    - The Pipe_Ignore_Word() and Pipe_Ignore_DWord() functions have been renamed to Pipe_Discard_Word() and Pipe_Discard_DWord() to remain\r
+ *      consistent with the rest of the pipe API.\r
+ *    - It is no longer needed to manually include the headers from LUFA/Drivers/USB/Class, as they are now included along with the rest\r
+ *      of the USB headers when LUFA/Drivers/USB/USB.h is included.\r
+ *    - Functions in the ConfigDescriptor.h header file no longer have "Host_" as part of their names.\r
+ *    - The ProcessHIDReport() has been renamed to USB_ProcessHIDReport(), GetReportItemInfo() has been renamed to USB_GetHIDReportItemInfo()\r
+ *      and SetReportItemInfo() has been renamed to USB_GetHIDReportItemInfo().\r
+ *    - The values of the DSearch_Return_ErrorCodes_t and DSearch_Comp_Return_ErrorCodes_t enums have had their respective "Descriptor_Search"\r
+ *      and "Descriptor_Search_Comp" prefixes changed to all caps.\r
+ *    - The USB_HostRequest global has been renamed to USB_ControlRequest, and is used in Device mode also. The USB_Host_Request_Header_t\r
+ *      structure type has been renamed to USB_Request_Header_t.\r
+ *    - The values of the Pipe_Stream_RW_ErrorCodes_t enum have had the "ERROR_" portion of their names removed.\r
+ *\r
+ *\r
+ * \section Sec_Migration090401 Migrating from 090209 to 090401\r
  *\r
  *  <b>All</b>\r
  *    - LUFA projects must now give the raw input clock frequency (before any prescaling) as a compile time constant "F_CLOCK",\r
  *    - Custom board Dataflash drivers now require the implementation of Dataflash_SelectChipFromPage() and Dataflash_SendAddressBytes().\r
  *\r
  *  <b>Device Mode</b>\r
- *    - The NO_CLEARSET_FEATURE_REQUEST compile time token has been renamed to NO_FEATURELESS_CONTROL_ONLY_DEVICE, and its function expanded\r
+ *    - The NO_CLEARSET_FEATURE_REQUEST compile time token has been renamed to FEATURELESS_CONTROL_ONLY_DEVICE, and its function expanded\r
  *      to also remove parts of the Get Status chapter 9 request to further reduce code usage. On all applications currently using the \r
- *      NO_CLEARSET_FEATURE_REQUEST compile time token, it can be replaced with the NO_FEATURELESS_CONTROL_ONLY_DEVICE token with no further\r
+ *      NO_CLEARSET_FEATURE_REQUEST compile time token, it can be replaced with the FEATURELESS_CONTROL_ONLY_DEVICE token with no further\r
  *      modifications required.\r
  *\r
+ *\r
  * \section Sec_Migration090209 Migrating from 081217 to 090209\r
  *\r
  *  <b>Device Mode</b>\r
  *    - Most library demos have been enhanced and/or had errors corrected. All users of all demos should upgrade their codebase to\r
  *      the latest demo versions.\r
  *\r
+ *\r
  * \section Sec_Migration171208 Migrating from V1.5.3 to 081217\r
  *\r
  *  <b>All</b>\r
  *      and/or is self-powered are now accessed and set through the new USB_RemoteWakeupEnabled and\r
  *      USB_CurrentlySelfPowered macros. See the DevChapter9.h documentation for more details.\r
  *    - All endpoint stream functions now require an extra Callback function parameter. Existing code may be updated\r
- *      to either supply NO_STREAM_CALLBACK as the extra parameter, or disable stream callbacks altogether by pasing\r
+ *      to either supply NO_STREAM_CALLBACK as the extra parameter, or disable stream callbacks altogether by passing\r
  *      the token NO_STREAM_CALLBACKS to the compiler using the -D switch.\r
  *\r
  *  <b>Host Mode</b>\r
  *      timeout duration in ms.\r
  *    - CollectionPath_t has been renamed to HID_CollectionPath_t to be more in line with the other HID parser structures.\r
  *    - All pipe stream functions now require an extra Callback function parameter. Existing code may be updated\r
- *      to either supply NO_STREAM_CALLBACK as the extra parameter, or disable stream callbacks altogether by pasing\r
+ *      to either supply NO_STREAM_CALLBACK as the extra parameter, or disable stream callbacks altogether by passing\r
  *      the token NO_STREAM_CALLBACKS to the compiler using the -D switch.\r
  *\r
  *\r
  *      avoid such mistakes in the future, the VERSION_BCD macro has been added to StdDescriptors.h. Existing\r
  *      projects should at least manually correct the BCD version numbers, or preferably update the descriptors to\r
  *      encode the version number in BCD format using the new macro.\r
- *    - The mandatory GetReport class-specific request was accidentally ommitted from previous versions of the demos\r
+ *    - The mandatory GetReport class-specific request was accidentally omitted from previous versions of the demos\r
  *      based on the Human Interface Device (HID) class. This has been corrected, and any user projects based on the\r
  *      HID demos should also be updated accordingly.\r
  *    - The CDC demos now correctly send an empty packet directly after a full packet, to end the transmission.\r
  *      appropriate. It fires in an identical manner to the previously named event, thus the only change to be made\r
  *      is the event name itself in the user project.\r
  *    - The USB_Descriptor_Language_t structure no longer exists in StdDescriptors.h, as this was a\r
- *      psudo-descriptor modelled on the string descriptor. It is replaced by the true USB_Descriptor_String_t type\r
+ *      pseudo-descriptor modelled on the string descriptor. It is replaced by the true USB_Descriptor_String_t type\r
  *      descriptor as indicated in the USB specification, thus all device code must be updated accordingly.\r
- *    - The names of several Endpoint macros have been changed to be more consistant with the rest of the library,\r
+ *    - The names of several Endpoint macros have been changed to be more consistent with the rest of the library,\r
  *      with no implementation changes. This means that existing code can be altered to use the new macro names\r
  *      with no other considerations required. See Endpoint.h for the new macro names.\r
  *    - The previous version of the MassStorage demo had an incorrect value in the SCSI_Request_Sense_Response_t\r
- *      strucuture named SenseData in SCSI.c which caused some problems with some hosts. User projects based on this\r
+ *      structure named SenseData in SCSI.c which caused some problems with some hosts. User projects based on this\r
  *      demo should correct the structure value to maintain compatibility across multiple OS platforms.\r
  *    - By default, the descriptor structures use the official USB specification names for the elements. Previous\r
  *      versions of the library used non-standard (but more verbose) names, which are still usable in the current\r
  *    - The USB_Host_Request_Header_t structure in HostChapter9.h (used for issuing control requests) has had its\r
  *      members renamed to the official USB specification names for requests. Existing code will need to be updated\r
  *      to use the new names.\r
- *    - The names of several Pipe macros have been changed to be more consistant with the rest of the library,\r
+ *    - The names of several Pipe macros have been changed to be more consistent with the rest of the library,\r
  *      with no implementation changes. This means that existing code can be altered to use the new macro names\r
  *      with no other considerations required. See Pipe.h for the new macro names.\r
  *    - By default, the descriptor structures use the official USB specification names for the elements. Previous\r
  *      header inside the library.\r
  *    - The USB_DeviceEnumerationComplete event (see Events.h) now also fires in Device mode, when the host has\r
  *      finished enumerating the device. Projects relying on the event only firing in Host mode should be updated\r
- *      so that the event action only ocurrs when the USB_Mode global is set to USB_MODE_HOST.\r
+ *      so that the event action only occurs when the USB_Mode global is set to USB_MODE_HOST.\r
  */\r