STM32F103xB HAL User Manual
Defines
HSE Configuration
RCCEx Exported Macros

Defines

#define __HAL_RCC_HSE_PREDIV_CONFIG(__HSE_PREDIV_VALUE__)   MODIFY_REG(RCC->CFGR,RCC_CFGR_PLLXTPRE, (uint32_t)(__HSE_PREDIV_VALUE__))
 Macro to configure the External High Speed oscillator (HSE) Predivision factor for PLL.
#define __HAL_RCC_HSE_GET_PREDIV()   READ_BIT(RCC->CFGR, RCC_CFGR_PLLXTPRE)
 Macro to get prediv1 factor for PLL.

Define Documentation

#define __HAL_RCC_HSE_GET_PREDIV ( )    READ_BIT(RCC->CFGR, RCC_CFGR_PLLXTPRE)

Macro to get prediv1 factor for PLL.

Definition at line 1617 of file stm32f1xx_hal_rcc_ex.h.

Referenced by HAL_RCC_GetOscConfig().

#define __HAL_RCC_HSE_PREDIV_CONFIG (   __HSE_PREDIV_VALUE__)    MODIFY_REG(RCC->CFGR,RCC_CFGR_PLLXTPRE, (uint32_t)(__HSE_PREDIV_VALUE__))

Macro to configure the External High Speed oscillator (HSE) Predivision factor for PLL.

Note:
Predivision factor can not be changed if PLL is used as system clock In this case, you have to select another source of the system clock, disable the PLL and then change the HSE predivision factor.
Parameters:
__HSE_PREDIV_VALUE__specifies the division value applied to HSE. This parameter must be a number between RCC_HSE_PREDIV_DIV1 and RCC_HSE_PREDIV_DIV2.

Definition at line 1601 of file stm32f1xx_hal_rcc_ex.h.

Referenced by HAL_RCC_OscConfig().