Other Parts Discussed in Thread: HALCOGEN
Hi,
I have written a piece of code for configuring the message boxes for CAN controller-
In below code msgBoxList is array of structure initialised in another C file and used in this file using extern declaration as shown below-
extern msgBoxType msgBoxList[MSGBOX_MAXSIZE];
void arinc825Configuration()
{
uint32 i;
msgBoxType *msgBox;
for(i=0;i<MSGBOX_MAXSIZE;i++)
{
*msgBox = msgBoxList[i]; //from this code line control goes to dataEntry
can you please tell me what is the reason behind it and how should I fix it?
Thanks
Archana