conflicting types for CALLBACK_USB_GetDescriptor

87 views
Skip to first unread message

ulao

unread,
May 31, 2020, 11:52:13 AM5/31/20
to LUFA Library Support List
I have read a few topics on this but I'm just not following what to do. 

i'm using avr studio 6 and get conflicting types for the latest lufa.

uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue,
                                    const uint8_t wIndex,
                                    const void** const DescriptorAddress)
                                    ATTR_WARN_UNUSED_RESULT ATTR_NON_NULL_PTR_ARG(3);

the old version complies, do I need to change the call string in the lufa header?

ulao

unread,
May 31, 2020, 1:28:27 PM5/31/20
to LUFA Library Support List
Looks like most of the files in the lufa want const uint16_t wIndex, but if I change my code to that I get all kinds of angry files. 

ulao

unread,
May 31, 2020, 1:43:25 PM5/31/20
to LUFA Library Support List
Never mind, I just looked at the additional errors and it wanted another parm for usb version, I put a 0 for revision. Compiled. 
Reply all
Reply to author
Forward
0 new messages