/* Check for Disabled FLASH INFO space. 
Use this function to determine whether FLASH INFO erasure is disabled. */
bool am_hal_flash_info_erase_disable_check(void)
/* Check for Disabled FLASH INFO space. 
Use this function to determine whether FLASH INFO erasure is disabled. */
bool am_hal_flash_info_erase_disable_check(void)
{
    if ( customer_info_signature_erased() )
    {
        return false;
    }
    if ( !am_hal_flash_customer_info_signature_check() )
    {
        return false;
    }
    return AM_REGVAL(AM_HAL_FLASH_INFO_SECURITY_ADDR)   &
                     AM_HAL_FLASH_INFO_SECURITY_ENINFOERASE_M  ? false : true;
}