Hi,
I’m modifying the firmware coding of device controller which found from DE2 CD.
My target is to send 16 bytes data block per transmission.
I had modify the coding from ISR.c and mainloop.c
But I still fail to make it transfer 16 bytes data per packet.
(this is the coding from interrupt service routine,ISR.c)
void Isr_Ep02Done(void)
{
unsigned char bbuf[16];
int i = 0;
Hal4D13_GetEndpointStatusWInteruptClear(EPINDEX4EP02);
Hal4D13_ReadEndpoint(EPINDEX4EP02,&bbuf, 16);
//error was found here : passing arg 2 of //'hal4d13_readendpoint' from incompatible pointer type. if( sendCount < length)
{
Hal4D13_WriteEndpoint(EPINDEX4EP02, data + sendCount, 16);
Hal4D13_GetEndpointStatusWInteruptClear(EPINDEX4EP02);
sendCount += 16;
if(sendCount > length)
{
sendCount = 0;
length = 0;
for( i = 0; i < 65; i++)
data[i] = 0;
}
}
}
Can anyone give me suggestion on how can I debug this error? I’m stuck….
Thanks,
Summer