Changed the signature of the CALLBACK_USB_GetDescriptor() callback function so that the descriptor pointer is const, to remove the need for extra casting inside the callback (thanks to Jonathan Kollasch).
This commit is contained in:
parent
ed8ad18f26
commit
092f82e06f
88 changed files with 460 additions and 409 deletions
|
|
@ -254,8 +254,8 @@ static void USB_Device_GetInternalSerialDescriptor(void)
|
|||
|
||||
static void USB_Device_GetDescriptor(void)
|
||||
{
|
||||
void* DescriptorPointer;
|
||||
uint16_t DescriptorSize;
|
||||
const void* DescriptorPointer;
|
||||
uint16_t DescriptorSize;
|
||||
|
||||
#if !defined(USE_FLASH_DESCRIPTORS) && !defined(USE_EEPROM_DESCRIPTORS) && !defined(USE_RAM_DESCRIPTORS)
|
||||
uint8_t DescriptorAddressSpace;
|
||||
|
|
|
|||
|
|
@ -187,7 +187,7 @@
|
|||
*/
|
||||
uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue,
|
||||
const uint8_t wIndex,
|
||||
void** const DescriptorAddress
|
||||
const void** const DescriptorAddress
|
||||
#if !defined(USE_FLASH_DESCRIPTORS) && !defined(USE_EEPROM_DESCRIPTORS) && !defined(USE_RAM_DESCRIPTORS)
|
||||
, uint8_t* MemoryAddressSpace
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -24,6 +24,8 @@
|
|||
* - Changed all Device mode LowLevel demos and Device Class drivers so that the control request is acknowledged and any data
|
||||
* transferred as quickly as possible without any processing inbetween sections, so that long callbacks or event handlers will
|
||||
* not break communications with the host by exceeding the maximum control request stage timeout period
|
||||
* - Changed the signature of the CALLBACK_USB_GetDescriptor() callback function so that the descriptor pointer is const, to remove
|
||||
* the need for extra casting inside the callback (thanks to Jonathan Kollasch)
|
||||
*
|
||||
* <b>Fixed:</b>
|
||||
* - Fixed USB_GetHIDReportItemInfo() function modifying the given report item's data when the report item does not exist
|
||||
|
|
|
|||
|
|
@ -18,6 +18,11 @@
|
|||
* - A new USB driver source file, Drivers/USB/HighLevel/PipeStream.c now exists. This source file should be added to all
|
||||
* project makefiles using the USB driver of LUFA, or the makefile should be updated to use the new module source variables.
|
||||
*
|
||||
* <b>Device Mode</b>
|
||||
* - The signature for the CALLBACK_USB_GetDescriptor() callback has changed, the "void** const DescriptorAddress" parameter is
|
||||
* now "const void** const DescriptorAddress". Existing applications should update their callback signatures to match this, and
|
||||
* eliminate any casting of descriptor pointers to a non-const pointer.
|
||||
*
|
||||
* \section Sec_Migration100807 Migrating from 100513 to 100807
|
||||
*
|
||||
* <b>Non-USB Library Components</b>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue