/* Disable FLASH INFO space. 
Use this function to set the state of the 128 valid bits at the beginning of customer info space, if needed. Then disable FLASH erasure. */
int32_t am_hal_flash_info_erase_disable(void)
/* Disable FLASH INFO space. 
Use this function to set the state of the 128 valid bits at the beginning of customer info space, if needed. Then disable FLASH erasure. */
int32_t am_hal_flash_info_erase_disable(void)
{
    int iRC;
    uint32_t ui32SecurityValue;
    iRC = customer_info_signature_set();
    if ( iRC )
    {
        return iRC;
    }
    ui32SecurityValue = AM_REGVAL(AM_HAL_FLASH_INFO_SECURITY_ADDR)  &
                        ~AM_HAL_FLASH_INFO_SECURITY_ENINFOERASE_M;
    return g_am_hal_flash.flash_program_info(
            AM_HAL_FLASH_PROGRAM_KEY,
            0,
            &ui32SecurityValue,
            AM_HAL_FLASH_INFO_SECURITY_O / 4,
            1 );
}