Hi,
I am using StartWare USB Generic Bulk device library. There are some errors and warning when I build my application.
1. warning: #145-D a value of type "unsigned long(*) (void*, unsigned long, unsigned long, void*) cannot be used to initialize an entity of type "tUSBCallback".
For simplity, I don't use buffer. My tUSBDBulkDevice structure is:
const tUSBDBulkDevice g_sBulkDevice = {
USB_VID, USB_PID, 500, USB_CONF_ATTR_SELF_PWR,
myUSBReceiveEventCallback,
*pvRxCBData, myUSBTransmitEventCallback, *pvTxCBData, *ppStringDescriptors, ulNumStringDescriptors, *psPrivateBulkData }
my usb receive callback function is:
unsigned long myUSBReceiveEventCallback(void* pvcBdata, unsigned long ulEvent, unsigned long ulMsgParam, void* pvMsgData) .
2. Compilation failure.
undefined symbol ,
IntAINTCInit, IntChannelSet,...
It looks like the application can't find the functions about interrupts although I added "interrupt.h".
3. #Include search path
In the Include options, is it possible to search the path recursively. For instance, only adding C:\ti\OMAPL138_StarterWare_1_10_03_03 instead of adding individual paths like C:\ti|OMAPL138_StarterWare_1_10_03_03\include\hw and C:\ti\OMAPL138_StarterWare_1_10_03_03\usblib\include, etc.
Any suggestion is welcome!
Jian