/* Waits until the LCD FCR register is synchronized in the LCDCLK domain. This function must be called after any write operation to LCD_FCR register.  */
void LCD_WaitForSynchro(void)
/* Waits until the LCD FCR register is synchronized in the LCDCLK domain. This function must be called after any write operation to LCD_FCR register.  */
void LCD_WaitForSynchro(void)
{
  uint32_t synchrocounter = 0;
  uint32_t synchrostatus = 0x00;
  do
  {
    synchrostatus = LCD->SR & LCD_FLAG_FCRSF;
    synchrocounter++;  
  } while((synchrocounter != SYNCHRO_TIMEOUT) && (synchrostatus == 0x00));
}