STM32L4xx_HAL_Driver  1.14.0
LCD Private Functions

Functions

HAL_StatusTypeDef LCD_WaitForSynchro (LCD_HandleTypeDef *hlcd)
 Wait until the LCD FCR register is synchronized in the LCDCLK domain. This function must be called after any write operation to LCD_FCR register. More...
 

Detailed Description

Function Documentation

◆ LCD_WaitForSynchro()

HAL_StatusTypeDef LCD_WaitForSynchro ( LCD_HandleTypeDef hlcd)

Wait until the LCD FCR register is synchronized in the LCDCLK domain. This function must be called after any write operation to LCD_FCR register.

Return values
None

Definition at line 573 of file stm32l4xx_hal_lcd.c.

574 {
575  uint32_t tickstart;
576 
577  /* Get timeout */
578  tickstart = HAL_GetTick();
579 
580  /* Loop until FCRSF flag is set */
581  while (__HAL_LCD_GET_FLAG(hlcd, LCD_FLAG_FCRSF) == RESET)
582  {
583  if ((HAL_GetTick() - tickstart) > LCD_TIMEOUT_VALUE)
584  {
585  hlcd->ErrorCode = HAL_LCD_ERROR_FCRSF;
586  return HAL_TIMEOUT;
587  }
588  }
589 
590  return HAL_OK;
591 }
uint32_t HAL_GetTick(void)
Provide a tick value in millisecond.
return HAL_OK
__IO uint32_t ErrorCode