Change all timeouts which use kEventTimeOut to something like following:
tmr_timestamp(&fTMR[0]);
while(1)
{
tmr_timestamp(&fTMR[1]);
tmr_diff(fTMR[0],fTMR[1],0,&fTimeStampElapsed);
if(fTimeStampElapsed.tv_sec>10)
{
tmr_timestamp(&fTMR[0]);
}
}