usbHidReportDescriptor type of confilct
Posted: Mon Oct 20, 2014 5:10 pm
The HID device has 5 bytes of report defined to host,
ie. 0xA, 0xB, 0xC, 0xD, 0x1
the last byte always 0x1
but actually and usb bus logging has been seen with pattern like this, 5 bytes and 6 bytes are constantly swapping.
0xA, 0xB, 0xC, 0xD, 0x1
0x0, 0xA, 0xB, 0xC, 0xD, 0x1
(this is actual screen capture, no picture could be posted here.)
usbdrv is 20120109, compiling is ok and working as aforementioned. we want to swtich to usbdrv 20121206 in order to see if this usbdrv and different version related. however, the same code is not be able to compile and given error message of type of usbHidReportDescriptor of conflict.
gcc avr 4.3.3 (winavr 20100110)
error is following,
please help.
ie. 0xA, 0xB, 0xC, 0xD, 0x1
the last byte always 0x1
Code: Select all
static void buildReport(void)
{
reportBuffer[0] = adcvalue1>>8;
reportBuffer[1] = adcvalue1;
reportBuffer[2] = adcvalue2>>8;
reportBuffer[3] = adcvalue2;
reportBuffer[4] = 0x01;
}
but actually and usb bus logging has been seen with pattern like this, 5 bytes and 6 bytes are constantly swapping.
0xA, 0xB, 0xC, 0xD, 0x1
0x0, 0xA, 0xB, 0xC, 0xD, 0x1
(this is actual screen capture, no picture could be posted here.)
usbdrv is 20120109, compiling is ok and working as aforementioned. we want to swtich to usbdrv 20121206 in order to see if this usbdrv and different version related. however, the same code is not be able to compile and given error message of type of usbHidReportDescriptor of conflict.
gcc avr 4.3.3 (winavr 20100110)
error is following,
Code: Select all
main.c:58: error: conflicting types for 'usbDescriptorHidReport'
usbdrv/usbdrv.h:477: error: previous declaration of 'usbDescriptorHidReport' was here
main.c: In function 'timerPoll':
main.c:140: warning: unused variable 'timerCnt'
make: *** [main.o] Error 1
please help.