This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello,
I want to program MSP432 RTC, my code is as follow:
const RTC_C_Calendar currentTime =
{
0,
25,
11,
4,
28,
1,
2016
};
I initialized RTC as shown above, Now I want to reprogram it using the structure which is shown as follow:
currentTime.hours=Rxhours[0];
currentTime.minutes=Rxminutes[0];;
currentTime.dayOfmonth=Rxdate[0];
currentTime.month=Rxmonth[0];
currentTime.year=Rxyear[0];
It sows error saying "#138-D expression must be a modifiable lvalue" I dont know the proper syntax to be used. Can anyone please tell me what is the proper syntax?
Here Rxhours[0],Rxminutes[0],Rxdate[0],Rxmonth[0],Rxyear[0] are the buffers where I store the time taken by the PC
Regards.
Nafeesa
**Attention** This is a public forum