cancel
Showing results for 
Search instead for 
Did you mean: 

Traveo II

shivrajd1
New Contributor

We have two variables , 1 is being updated by one Core (FBL-CM4) and are being used by other core (FBL-CM0).

2nd variable is common to both FBL CM4 and CM0.

But these variables should not be updated by other cores such as APPL CM4 and APPL CM0 ( for 1st variable FBL CM0 too ).

Could you please provide a sample code to protect these 2 variables using IPC. 

1. volatile uint32 TempState1;

2. static TempStatetype TempState2;

typedef struct

{

       Statevalue; //Holds enum value        

       DataFeild; //Holds uint32 value

}TempStatetype

0 Likes
1 Reply