/* Programs the FMC User Option Byte: WDTSEL / RSTSTOP / RSTSTDB.  */
void FMC_OPT_ConfigUser(FMC_OPT_IWDT_T iwdt, FMC_OPT_STOP_T stop, FMC_OPT_STDBY_T stdby)
/* Programs the FMC User Option Byte: WDTSEL / RSTSTOP / RSTSTDB.  */
void FMC_OPT_ConfigUser(FMC_OPT_IWDT_T iwdt, FMC_OPT_STOP_T stop, FMC_OPT_STDBY_T stdby)
{
    uint8_t option = 0xFF;
    FMC_STATUS_T status = FMC_COMPLETE;
    status = FMC_WaitForLastOperation();
    if (status == FMC_COMPLETE)
    {
        option = (uint8_t)((*(__IO uint8_t *)OPTCTRL_BYTE0_ADDRESS) & 0x0F);
        *(__IO uint8_t *)OPTCTRL_BYTE0_ADDRESS = ((uint8_t)iwdt | stop | stdby | option);
    }
}