/* Initialize RTC. 
This API is used to initialize the RTC to .97 ms per tick.  */
void adi_RTCInit(void)
/* Initialize RTC. 
This API is used to initialize the RTC to .97 ms per tick.  */
void adi_RTCInit(void)
{
    ADI_RTC_RESULT eRTCResult;
    eRTCResult = adi_rtc_Open(ADI_RTC_DEVICE_NUM, aRtcDevMem, ADI_RTC_MEMORY_SIZE, &hDevice);
    if(eRTCResult == ADI_RTC_SUCCESS)
    {
    	eRTCResult = adi_rtc_SetPreScale(hDevice, ADI_RTC_PRESCALAR);
	}    
    if(eRTCResult == ADI_RTC_SUCCESS)
    {
    	eRTCResult =  adi_rtc_Enable(hDevice, true);
	}
}