Platform/ECM3532/M3/hw/csp/ecm3532/m3/csp/src/eta_csp_rtc.c
/***************************************************************************/
/**
 *
 *  EtaCspRtcTmrDelayMs - Polled RTC delay in milliseconds.
 *
 *  @param ui32TimeMs - The desired number of approximate milliseconds
 *                      (1000/1024) to delay for.
 *
 ******************************************************************************/
Polled RTC delay in milliseconds.
@param ui32TimeMs - The desired number of approximate milliseconds
(1000/1024) to delay for.
Polled RTC delay in milliseconds . @param ui32TimeMs - The desired number of approximate milliseconds ( 1000 / 1024 ) to delay for .
void
EtaCspRtcTmrDelayMs(uint32_t ui32TimeMs)
{
     Setup the RTC for the delay.
    REG_W4(RTC_TMR, TIMER, 1, INT_ENABLE, 1, INT_STAT, 1, COUNT, ui32TimeMs);
    EtaCspRtcFenceFast();
     Wait for the RTC to generate an interrupt.
    while(REG_RTC_TMR.BF.INT_STAT == 0)
    {
    }
     Clear the RTC interrupt.
    EtaCspRtcTmrIntClear();
}
void EtaCspRtcTmrDelayMs ( uint32_t ui32TimeMs ) { REG_W4 ( RTC_TMR , TIMER , 1 , INT_ENABLE , 1 , INT_STAT , 1 , COUNT , ui32TimeMs ) ; EtaCspRtcFenceFast ( ) ; while ( REG_RTC_TMR . BF . INT_STAT == 0 ) { } EtaCspRtcTmrIntClear ( ) ; }
EtaCspRtcTmrDelayMs - Polled RTC delay in milliseconds.
EtaCspRtcTmrDelayMs - Polled RTC delay in milliseconds .
// // Setup the RTC for the delay. // // // Wait for the RTC to generate an interrupt. // // // Clear the RTC interrupt. //