/* This function determines the flash sector size on the Tiva device. This size determines the erase granularity of the device flash. */
uint32_t SysCtlFlashSectorSizeGet(void)
/* This function determines the flash sector size on the Tiva device. This size determines the erase granularity of the device flash. */
uint32_t SysCtlFlashSectorSizeGet(void)
{
    if(CLASS_IS_TM4C129)
    {
        return(1 << (10 +
                     ((HWREG(FLASH_PP) &
                       FLASH_PP_MAINSS_M) >> FLASH_PP_MAINSS_S)));
    }
    else
    {
        return(1024);
    }
}