STM32F103xB HAL User Manual
Functions
De-initialization function
RCC Exported Functions

Functions

ErrorStatus LL_RCC_DeInit (void)
 Reset the RCC clock configuration to the default reset state.

Function Documentation

ErrorStatus LL_RCC_DeInit ( void  )

Reset the RCC clock configuration to the default reset state.

Note:
The default reset state of the clock configuration is given below:
  • HSI ON and used as system clock source
  • HSE PLL, PLL2 & PLL3 are OFF
  • AHB, APB1 and APB2 prescaler set to 1.
  • CSS, MCO OFF
  • All interrupts disabled
This function doesn't modify the configuration of the
  • Peripheral clocks
  • LSI, LSE and RTC clocks
Return values:
AnErrorStatus enumeration value:
  • SUCCESS: RCC registers are de-initialized
  • ERROR: not applicable

Definition at line 103 of file stm32f1xx_ll_rcc.c.

References LL_RCC_ClearResetFlags(), LL_RCC_GetSysClkSource(), LL_RCC_HSI_Enable(), LL_RCC_HSI_IsReady(), LL_RCC_HSI_SetCalibTrimming(), LL_RCC_PLL_IsReady(), LL_RCC_SetSysClkSource(), LL_RCC_SYS_CLKSOURCE_HSI, LL_RCC_SYS_CLKSOURCE_STATUS_HSI, and LL_RCC_WriteReg.