Hello
When I use the RTC timer interrupt. I will write the code in interrup function.
Like this:
void rtc_secIntc(void)
{
CSL_FINST(CSL_RTC_REGS->RTCINTFL, RTC_RTCINTFL_SECFL, SET);
if (....)
removeQueue();
}
and in the main function, like this
main()
{
while(1)
{
if(.....)
updateQueue();
}
}
When the program is executed in while{..}, RTC timer interrupted. This is very dangerous.
But I don't know how to add mutex in my program.
And I want to know whether C55X support mutex lock?
Thanks
William Zhu