FreeRTOS/Demo/CORTEX_MPU_M7_NUCLEO_H743ZI2_GCC_IAR_Keil/ST_Code/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_utils.c
/**
  * @brief  Update number of Flash wait states
  * @param  latency  Flash Latency
  * @retval An ErrorStatus enumeration value:
  *          - SUCCESS: Latency has been modified
  *          - ERROR: Latency cannot be modified
  */
@brief  Update number of Flash wait states
@param  latency  Flash Latency
@retval An ErrorStatus enumeration value:
- SUCCESS: Latency has been modified
- ERROR: Latency cannot be modified
@brief Update number of Flash wait states @param latency Flash Latency @retval An ErrorStatus enumeration value : - SUCCESS : Latency has been modified - ERROR : Latency cannot be modified
static ErrorStatus UTILS_SetFlashLatency(uint32_t latency)
{
  ErrorStatus status = SUCCESS;
  LL_FLASH_SetLatency(latency);
  if(LL_FLASH_GetLatency() != latency)
  {
    status = ERROR;
  }
  return status;
}
static ErrorStatus UTILS_SetFlashLatency ( uint32_t latency ) { ErrorStatus status = SUCCESS ; LL_FLASH_SetLatency ( latency ) ; if ( LL_FLASH_GetLatency ( ) != latency ) { status = ERROR ; } return status ; }
@brief  Update number of Flash wait states
 @param  latency  Flash Latency
 @retval An ErrorStatus enumeration value:
          - SUCCESS: Latency has been modified
          - ERROR: Latency cannot be modified
@brief Update number of Flash wait states @param latency Flash Latency @retval An ErrorStatus enumeration value : - SUCCESS : Latency has been modified - ERROR : Latency cannot be modified
/* Check that the new number of wait states is taken into account to access the Flash
     memory by reading the FLASH_ACR register */