/* Wait until the LCD FCTRL register is synchronized in the LCDCLK domain. This function must be called after any write operation to LCD_FCTRL register.  */
LCD_ErrorTypeDef LCD_WaitForSynchro(void)
/* Wait until the LCD FCTRL register is synchronized in the LCDCLK domain. This function must be called after any write operation to LCD_FCTRL register.  */
LCD_ErrorTypeDef LCD_WaitForSynchro(void)
{
    uint32_t timeout;
    timeout = 0;
    while (RESET == (__LCD_GET_FLAG(LCD_FLAG_FCRSF)))
    {
        if (++timeout >= LCD_TIME_OUT)
        {
            return LCD_ERROR_FCRSF;
        }
    }
    return LCD_ERROR_OK;
}