/* Get flash cache sleep mode status. 
This function returns flash cache sleep mode statuses. */
uint32_t am_hal_cachectrl_sleep_mode_status(void)
/* Get flash cache sleep mode status. 
This function returns flash cache sleep mode statuses. */
uint32_t am_hal_cachectrl_sleep_mode_status(void)
{
    uint32_t ui32Status, ui32Ret;
    ui32Status = AM_REG(CACHECTRL, CACHECTRL);
    ui32Ret = (ui32Status &                                                 \
                AM_REG_CACHECTRL_CACHECTRL_FLASH0_SLM_STATUS_M) >>          \
                (AM_REG_CACHECTRL_CACHECTRL_FLASH0_SLM_STATUS_S - 0);
    ui32Ret |= (ui32Status &                                                \
                AM_REG_CACHECTRL_CACHECTRL_FLASH1_SLM_STATUS_M) >>          \
                (AM_REG_CACHECTRL_CACHECTRL_FLASH1_SLM_STATUS_S - 1);
    return ui32Ret;
}