Reset and clock control (RCC)
18.2.8.6 RCC_RTCCLKConfig
void RCC_RTCCLKConfig ( uint32_t RCC_RTCCLKSource)
Configures the RTC clock (RTCCLK).
ï‚· RCC_RTCCLKSource : specifies the RTC clock source.
This parameter can be one of the following values:
ï€ RCC_RTCCLKSource_LSE : LSE selected as RTC
clock
ï€ RCC_RTCCLKSource_LSI : LSI selected as RTC clock
ï€ RCC_RTCCLKSource_HSE_Div32 : HSE divided by
32 selected as RTC clock
ï‚· As the RTC clock configuration bits are in the Backup domain
and write access is denied to this domain after reset, you
have to enable write access using
PWR_BackupAccessCmd(ENABLE) function before to
configure the RTC clock source (to be done once after reset).
ï‚· Once the RTC clock is configured it can't be changed unless
the RTC is reset using RCC_BackupResetCmd function, or
by a Power On Reset (POR)
ï‚· If the LSE or LSI is used as RTC clock source, the RTC
continues to work in STOP and STANDBY modes, and can
be used as wakeup source. However, when the HSE clock is
used as RTC clock source, the RTC cannot be used in STOP
and STANDBY modes.
ï‚· The maximum input clock frequency for RTC is 2MHz (when
using HSE as RTC clock source).
18.2.8.7 RCC_I2SCLKConfig
void RCC_I2SCLKConfig ( uint32_t RCC_I2SCLKSource)
Configures the I2S clock source (I2SCLK).
ï‚· RCC_I2SCLKSource : specifies the I2S clock source. This
parameter can be one of the following values:
ï€ RCC_I2S2CLKSource_SYSCLK : SYSCLK clock used
as I2S clock source
ï€ RCC_I2S2CLKSource_Ext : External clock mapped on
the I2S_CKIN pin used as I2S clock source
ï‚· This function must be called before enabling the SPI2 and
SPI3 clocks.