force function to be compiled in IAR

or else IAR will remove useless function
add function to get max idle time

atomTimerGetIdle()
prepare to use halt in idle
add RTC support