Hi everyone,
to get straight to the point, i'm getting the following errors:
Error! E1009: Expecting ',' but found '*'
Error! E1116: An id list not allowed except for function definition
and it refers to the following file and code:
file:
sja1000.h,
code:
Code:
extern sja1000_result_t sja1000_xmit(HwCanMsgTxType* CAN_TxQueue, TxQueueCtrlType* CAN_TxQueueCtrl);
the prototype function wrong, but i have no idea what the problem could be.
the function is writting in sja1000.c
Code:
sja1000_result_t sja1000_xmit(HwCanMsgTxType* CAN_TxQueue, TxQueueCtrlType* CAN_TxQueueCtrl)
{
}
and i call the function a few times from pcancommon.c with different parameters:
Code:
sja1000_result = sja1000_xmit(&CAN11_TxQueue, &CAN11_TxQueueCtrl);
sja1000_result = sja1000_xmit(&CAN12_TxQueue, &CAN12_TxQueueCtrl);
sja1000_result = sja1000_xmit(&CAN21_TxQueue, &CAN21_TxQueueCtrl);
sja1000_result = sja1000_xmit(&CAN22_TxQueue, &CAN22_TxQueueCtrl);
'HwCanMsgTxType' and 'TxQueueCtrlType' are structs.
I don't know if this is enough information to clear things up. the code is compiled using the watcom compiler. the codes are used in Matlab.
Thanks for your help!
Robbin