/* Disable the write protection of the desired sectors, for the first 1 Mb of the FMC.  */
void FMC_OPT_DisableWriteProtect(FMC_OPT_WRP_T wrp)
/* Disable the write protection of the desired sectors, for the first 1 Mb of the FMC.  */
void FMC_OPT_DisableWriteProtect(FMC_OPT_WRP_T wrp)
{
    FMC_STATUS_T status = FMC_COMPLETE;
    status = FMC_WaitForLastOperation();
    if (status == FMC_COMPLETE)
    {
        *(__IO uint16_t *)(OPTCTRL_BYTE2_ADDRESS) |= (uint16_t)wrp;
    }
}