Open WesternGun opened 6 years ago
First I saw the previous declaration of 'CALLBACK_USB_GetDescriptor was here error. It is because in LUFA, LUFA\Drivers\USB\Core\Device.h, line 133, has a definition of:
previous declaration of 'CALLBACK_USB_GetDescriptor was here
LUFA\Drivers\USB\Core\Device.h
uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue, const uint8_t wIndex, const void** const DescriptorAddress
And in our code, in Descriptor.h, we have:
Descriptor.h
uint16_t CALLBACK_USB_GetDescriptor( const uint16_t wValue, const uint16_t wIndex, const void** const DescriptorAddress )
wIndex has different type. Change that and all will be OK and compilation is good.
wIndex
First I saw the
previous declaration of 'CALLBACK_USB_GetDescriptor was here
error. It is because in LUFA,LUFA\Drivers\USB\Core\Device.h
, line 133, has a definition of:And in our code, in
Descriptor.h
, we have:wIndex
has different type. Change that and all will be OK and compilation is good.