HAL
__HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST is only used within HAL.
 
Symbols
loading...
Files
loading...
CodeScopeSTM32 Libraries and SamplesHAL__HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST

__HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST macro

Macro to adjust the Internal High Speed oscillator (HSI) calibration value.

Syntax

#define __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(__HSICalibrationValue__) (MODIFY_REG(RCC->CR,\     RCC_CR_HSITRIM, (uint32_t)(__HSICalibrationValue__) << RCC_CR_HSITRIM_Pos))

Arguments

__HSICalibrationValue__

specifies the calibration trimming value. (default is RCC_HSICALIBRATION_DEFAULT). This parameter must be a number between 0 and 0x1F.

Notes

The calibration is used to compensate for the variations in voltage and temperature that influence the frequency of the internal HSI RC.

References

LocationText
stm32f4xx_hal_rcc.h:841
#define __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(__HSICalibrationValue__) (MODIFY_REG(RCC->CR,\
stm32f4xx_hal_rcc.c:301
__HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
stm32f4xx_hal_rcc.c:325
__HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
stm32f4xx_hal_rcc_ex.c:3451
__HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
stm32f4xx_hal_rcc_ex.c:3475
__HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);