/* Mask off 1 to 4 quadrants of FLASH INFO space for programming. 
Use this function to set the state of the 128 valid bits at the beginning of customer info space, if needed. Then and the mask bits with the INFO space programming disable bits. */
int32_t am_hal_flash_info_program_disable(uint32_t ui32Mask)
/* Mask off 1 to 4 quadrants of FLASH INFO space for programming. 
Use this function to set the state of the 128 valid bits at the beginning of customer info space, if needed. Then and the mask bits with the INFO space programming disable bits. */
int32_t am_hal_flash_info_program_disable(uint32_t ui32Mask)
{
    int iRC;
    uint32_t ui32SecurityValue;
    iRC = customer_info_signature_set();
    if ( iRC )
    {
        return iRC;
    }
    ui32Mask <<= AM_HAL_FLASH_INFO_SECURITY_ENINFOPRGM_S;
    ui32Mask &= AM_HAL_FLASH_INFO_SECURITY_ENINFOPRGM_M;
    ui32SecurityValue = AM_REGVAL(AM_HAL_FLASH_INFO_SECURITY_ADDR) & ~ui32Mask;
    return g_am_hal_flash.flash_program_info(
            AM_HAL_FLASH_PROGRAM_KEY,
            0,
            &ui32SecurityValue,
            AM_HAL_FLASH_INFO_SECURITY_O / 4,
            1 );
}