/* Returns SRTC time in seconds. 
This function is used internally to get actual SRTC time in seconds. */
static uint32_t SNVS_LP_SRTC_GetSeconds(SNVS_Type *base)
/* Returns SRTC time in seconds. 
This function is used internally to get actual SRTC time in seconds. */
static uint32_t SNVS_LP_SRTC_GetSeconds(SNVS_Type *base)
{
    uint32_t seconds = 0;
    uint32_t tmp     = 0;
    do
    {
        seconds = tmp;
        tmp     = (base->LPSRTCMR << 17U);
        tmp |= (base->LPSRTCLR >> 15U);
    } while (tmp != seconds);
    return seconds;
}