/* The function is used to Get reset source from last operation.  */
unsigned long SysCtlResetSrcGet(void)
/* The function is used to Get reset source from last operation.  */
unsigned long SysCtlResetSrcGet(void)
{
    unsigned long ulResetSrc = 0;
    if((xHWREGB(RCM_SRS0)&SYSCTL_RSTSRC_PAD))
    {
        return SYSCTL_RSTSRC_PAD;
    }
    if((xHWREGB(RCM_SRS0)&SYSCTL_RSTSRC_LOC))
    {
        return SYSCTL_RSTSRC_LOC;
    }
    if((xHWREGB(RCM_SRS0)&SYSCTL_RSTSRC_LOL))
    {
        return SYSCTL_RSTSRC_LOL;
    }
    if((xHWREGB(RCM_SRS0)&SYSCTL_RSTSRC_WDG))
    {
        return SYSCTL_RSTSRC_WDG;
    }
    else
    {
        ulResetSrc = xHWREGB(RCM_SRS0);
        ulResetSrc = ulResetSrc | xHWREGB(RCM_SRS1);
        return ulResetSrc;
    }
}