/* Sets up the RTC timer used for sleep functions.  */
uint32_t UTIL_sleepInit(void)
/* Sets up the RTC timer used for sleep functions.  */
uint32_t UTIL_sleepInit(void)
{
   uint32_t stat;
   stat = RTCDRV_Init();
   if( stat != ECODE_EMDRV_RTCDRV_OK ){
      return stat;
   }
   stat = RTCDRV_AllocateTimer(&rtcId);
   return stat;
}