LL RCC Functions

LSI

group RCC_LL_EF_LSI

Functions

void LL_RCC_LSI_Enable ( void )

Enable LSI oscillator (LSI ON).

Reference Manual to LL API cross reference (Register Field Functions)

RTCCR LSION LL_RCC_LSI_Enable

void LL_RCC_LSI_Disable ( void )

Disable LSI oscillator (LSI ON).

Reference Manual to LL API cross reference (Register Field Functions)

RTCCR LSION LL_RCC_LSI_Disable

uint32_t LL_RCC_LSI_IsReady ( void )

Check if LSI oscillator is ready.

Reference Manual to LL API cross reference (Register Field Functions)

RTCCR LSIRDY LL_RCC_LSI_IsReady

Return values :

State – of bit (1 or 0).

uint32_t LL_RCC_LSI_IsEnabled ( void )

Check if LSI oscillator is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

RTCCR LSION LL_RCC_LSI_IsEnabled

Return values :

State – of bit (1 or 0).

LSE

group RCC_LL_EF_LSE

Functions

void LL_RCC_LSE_Enable ( void )

Enable LSE oscillatord (LSE ON).

Reference Manual to LL API cross reference (Register Field Functions)

RTCCR LSEON LL_RCC_LSE_Enable

void LL_RCC_LSE_Disable ( void )

Disable LSE oscillatord (LSE ON).

Reference Manual to LL API cross reference (Register Field Functions)

RTCCR LSEON LL_RCC_LSE_Disable

uint32_t LL_RCC_LSE_IsReady ( void )

Check if LSE oscillator is ready.

Reference Manual to LL API cross reference (Register Field Functions)

RTCCR LSERDY LL_RCC_LSE_IsReady

Return values :

State – of bit (1 or 0).

uint32_t LL_RCC_LSE_IsEnabled ( void )

Check if LSE oscillator is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

RTCCR LSEON LL_RCC_LSE_IsEnabled

Return values :

State – of bit (1 or 0).

void LL_RCC_LSE_EnableBypass ( void )

Enable external clock source (LSE bypass).

Reference Manual to LL API cross reference (Register Field Functions)

RTCCR LSEBYP LL_RCC_LSE_EnableBypass

void LL_RCC_LSE_ConfigBypass ( uint32_t lse_mode )

Configure LSE external oscillator in bypass.

Reference Manual to LL API cross reference (Register Field Functions)

RTCCR LSEBYP LL_RCC_LSE_ConfigBypass

RTCCR LSEEXT LL_RCC_LSE_ConfigBypass

Parameters :

lse_mode – This parameter can be one of the following values:

void LL_RCC_LSE_DisableBypass ( void )

Disable external clock source (LSE bypass).

Reference Manual to LL API cross reference (Register Field Functions)

RTCCR LSEBYP LL_RCC_LSE_DisableBypass

uint32_t LL_RCC_LSE_IsBypassed ( void )

Check if LSE oscillator is bypassed.

Reference Manual to LL API cross reference (Register Field Functions)

RTCCR LSEBYP LL_RCC_LSE_IsBypassed

Return values :

State – of bit (1 or 0).

void LL_RCC_LSE_SetClockMode ( uint32_t lse_mode )

Set external LSE clock mode.

Reference Manual to LL API cross reference (Register Field Functions)

RTCCR LSEEXT LL_RCC_LSE_SetClockMode

Note

This bit can be written only if the LSE oscillator is disabled.

Parameters :

lse_mode – This parameter can be one of the following values:

uint32_t LL_RCC_LSE_GetClockMode ( void )

Get External LSE clock mode.

Reference Manual to LL API cross reference (Register Field Functions)

RTCCR LSEEXT LL_RCC_LSE_GetClockMode

Return values :

Returned – value can be one of the following values:

void LL_RCC_LSE_SetDriveCapability ( uint32_t lse_drive )

Set LSE oscillator drive capability.

Reference Manual to LL API cross reference (Register Field Functions)

RTCCR LSEDRV LL_RCC_LSE_SetDriveCapability

Note

The oscillator is in Xtal mode when it is not in bypass mode.

Parameters :

lse_drive – This parameter can be one of the following values:

uint32_t LL_RCC_LSE_GetDriveCapability ( void )

Get LSE oscillator drive capability.

Reference Manual to LL API cross reference (Register Field Functions)

RTCCR LSEDRV LL_RCC_LSE_GetDriveCapability

Return values :

Returned – value can be one of the following values:

void LL_RCC_LSE_EnableCSS ( void )

Enable LSE clock security system (LSE CSSON).

Reference Manual to LL API cross reference (Register Field Functions)

RTCCR LSECSSON LL_RCC_LSE_EnableCSS

void LL_RCC_LSE_DisableCSS ( void )

Disable LSE clock security system (LSE CSSON).

Reference Manual to LL API cross reference (Register Field Functions)

RTCCR LSECSSON LL_RCC_LSE_DisableCSS

uint32_t LL_RCC_LSE_IsCSSDetected ( void )

Check if CSS on LSE failure Detection.

Reference Manual to LL API cross reference (Register Field Functions)

RTCCR LSECSSD LL_RCC_LSE_IsCSSDetected

Return values :

State – of bit (1 or 0).

HSI

group RCC_LL_EF_HSI

Functions

void LL_RCC_HSIS_Enable ( void )

Enable HSIS clock (HSIS ON).

Reference Manual to LL API cross reference (Register Field Functions)

CR1 HSISON LL_RCC_HSIS_Enable

void LL_RCC_HSIS_Disable ( void )

Disable HSIS clock (HSIS ON).

Reference Manual to LL API cross reference (Register Field Functions)

CR1 HSISON LL_RCC_HSIS_Disable

uint32_t LL_RCC_HSIS_IsEnabled ( void )

Check if HSIS oscillator is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 HSISON LL_RCC_HSIS_IsEnabled

Return values :

State – of bit (1 or 0).

void LL_RCC_HSIDIV3_Enable ( void )

Enable HSIDIV3 clock (HSIDIV3 ON).

Reference Manual to LL API cross reference (Register Field Functions)

CR1 HSIDIV3ON LL_RCC_HSIDIV3_Enable

void LL_RCC_HSIDIV3_Disable ( void )

Disable HSIDIV3 clock (HSIDIV3 ON).

Reference Manual to LL API cross reference (Register Field Functions)

CR1 HSIDIV3ON LL_RCC_HSIDIV3_Disable

uint32_t LL_RCC_HSIDIV3_IsEnabled ( void )

Check if HSIDIV3 oscillator is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 HSIDIV3ON LL_RCC_HSIDIV3_IsEnabled

Return values :

State – of bit (1 or 0).

void LL_RCC_HSIK_Enable ( void )

Enable HSIK clock (HSIK ON).

Reference Manual to LL API cross reference (Register Field Functions)

CR1 HSIKON LL_RCC_HSIK_Enable

void LL_RCC_HSIK_Disable ( void )

Disable HSIK clock (HSIK ON).

Reference Manual to LL API cross reference (Register Field Functions)

CR1 HSIKON LL_RCC_HSIK_Disable

uint32_t LL_RCC_HSIK_IsEnabled ( void )

Check if HSIK oscillator is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 HSIK LL_RCC_HSIK_IsEnabled

Return values :

State – of bit (1 or 0).

void LL_RCC_HSI_EnableInStopMode ( void )

Enable HSI clock used as kernel clock for peripheral in Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 HSIKERON LL_RCC_HSI_EnableInStopMode

void LL_RCC_HSI_DisableInStopMode ( void )

Disable HSI clock used as kernel clock for peripheral in Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 HSIKERON LL_RCC_HSI_DisableInStopMode

uint32_t LL_RCC_HSI_IsEnabledInStopMode ( void )

Check if HSI clock used as kernel clock for peripheral is enabled in stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 HSIKERON LL_RCC_HSI_IsEnabledInStopMode

Return values :

State – of bit (1 or 0).

uint32_t LL_RCC_HSIS_IsReady ( void )

Check if HSIS clock is ready.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 HSISRDY LL_RCC_HSIS_IsReady

Return values :

State – of bit (1 or 0).

uint32_t LL_RCC_HSIDIV3_IsReady ( void )

Check if HSIDIV3 clock is ready.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 HSIDIV3RDY LL_RCC_HSIDIV3_IsReady

Return values :

State – of bit (1 or 0).

uint32_t LL_RCC_HSIK_IsReady ( void )

Check if HSIK clock is ready.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 HSIKRDY LL_RCC_HSIK_IsReady

Return values :

State – of bit (1 or 0).

void LL_RCC_HSIK_SetDivider ( uint32_t value )

Set HSIK clock out divider factor (HSIK DIV).

Reference Manual to LL API cross reference (Register Field Functions)

CR2 HSIKDIV LL_RCC_HSIK_SetDivider

Parameters :

value – This parameter can be one of the following values:

uint32_t LL_RCC_HSIK_GetDivider ( void )

Get HSIK clock out divider factor (HSIK DIV).

Reference Manual to LL API cross reference (Register Field Functions)

CR2 HSIKDIV LL_RCC_HSIK_GetDivider

Return values :

Returned – value can be one of the following values:

PSI

group RCC_LL_EF_PSI

Functions

void LL_RCC_PSIS_Enable ( void )

Enable PSIS clock (PSIS ON).

Reference Manual to LL API cross reference (Register Field Functions)

CR1 PSISON LL_RCC_PSIS_Enable

void LL_RCC_PSIS_Disable ( void )

Disable PSIS clock (PSIS ON).

Reference Manual to LL API cross reference (Register Field Functions)

CR1 PSISON LL_RCC_PSIS_Disable

uint32_t LL_RCC_PSIS_IsEnabled ( void )

Check if PSIS oscillator is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 PSISON LL_RCC_PSIS_IsEnabled

Return values :

State – of bit (1 or 0).

void LL_RCC_PSIDIV3_Enable ( void )

Enable PSIDIV3 clock (PSIDIV3 ON).

Reference Manual to LL API cross reference (Register Field Functions)

CR1 PSIDIV3ON LL_RCC_PSIDIV3_Enable

void LL_RCC_PSIDIV3_Disable ( void )

Disable PSIDIV3 clock (PSIDIV3 ON).

Reference Manual to LL API cross reference (Register Field Functions)

CR1 PSIDIV3ON LL_RCC_PSIDIV3_Disable

uint32_t LL_RCC_PSIDIV3_IsEnabled ( void )

Check if PSIDIV3ON oscillator is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 PSIDIV3ON LL_RCC_PSIDIV3_IsEnabled

Return values :

State – of bit (1 or 0).

void LL_RCC_PSIK_Enable ( void )

Enable PSIK clock (PSIK ON).

Reference Manual to LL API cross reference (Register Field Functions)

CR1 PSIKON LL_RCC_PSIK_Enable

void LL_RCC_PSIK_Disable ( void )

Disable PSIK clock (PSIK ON).

Reference Manual to LL API cross reference (Register Field Functions)

CR1 PSIKON LL_RCC_PSIK_Disable

uint32_t LL_RCC_PSIK_IsEnabled ( void )

Check if PSIKON oscillator is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 PSIKON LL_RCC_PSIK_IsEnabled

Return values :

State – of bit (1 or 0).

void LL_RCC_PSI_EnableInStopMode ( void )

Enable PSI clock in Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 PSIKERON LL_RCC_PSI_EnableInStopMode

void LL_RCC_PSI_DisableInStopMode ( void )

Disable PSI clock in Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 PSIKERON LL_RCC_PSI_DisableInStopMode

uint32_t LL_RCC_PSI_IsEnabledInStopMode ( void )

Check if PSI is enabled in stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 PSIKERON LL_RCC_PSI_IsEnabledInStopMode

Return values :

State – of bit (1 or 0).

uint32_t LL_RCC_PSIS_IsReady ( void )

Check if PSIS clock is ready.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 PSISRDY LL_RCC_PSIS_IsReady

Return values :

State – of bit (1 or 0).

uint32_t LL_RCC_PSIDIV3_IsReady ( void )

Check if PSIDIV3 clock is ready.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 PSIDIV3RDY LL_RCC_PSIDIV3_IsReady

Return values :

State – of bit (1 or 0).

uint32_t LL_RCC_PSIK_IsReady ( void )

Check if PSIK clock is ready.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 PSIKRDY LL_RCC_PSIK_IsReady

Return values :

State – of bit (1 or 0).

void LL_RCC_PSIK_SetDivider ( uint32_t value )

Set PSIK clock out divider factor (PSIK DIV).

Reference Manual to LL API cross reference (Register Field Functions)

CR2 PSIKDIV LL_RCC_PSIK_SetDivider

Parameters :

value – This parameter can be one of the following values:

uint32_t LL_RCC_PSIK_GetDivider ( void )

Get PSIK clock out divider factor (PSIK DIV).

Reference Manual to LL API cross reference (Register Field Functions)

CR2 PSIKDIV LL_RCC_PSIK_GetDivider

Return values :

Returned – value can be one of the following values:

void LL_RCC_SetPSIFreqOutput ( uint32_t freq )

Configure the PSI target frequency output.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 PSIFREQ LL_RCC_SetPSIFreqOutput

Parameters :

freq – This parameter can be one of the following values:

uint32_t LL_RCC_GetPSIFreqOutput ( void )

Get the PSI target frequency output.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 PSIFREQ LL_RCC_GetPSIFreqOutput

Return values :

Returned – value can be one of the following values:

void LL_RCC_SetPSIRef ( uint32_t source )

Configure the PSI ref clock frequency selection.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 PSIREF LL_RCC_SetPSIRef

Parameters :

source – This parameter can be one of the following values:

uint32_t LL_RCC_GetPSIRef ( void )

Get the PSI ref clock frequency selection.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 PSIREF LL_RCC_GetPSIRef

Return values :

Returned – value can be one of the following values:

void LL_RCC_SetPSIClkSource ( uint32_t ref )

Configure the PSI clock source.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 PSIREFSRC LL_RCC_SetPSIClkSource

Parameters :

ref – This parameter can be one of the following values:

uint32_t LL_RCC_GetPSIClkSource ( void )

Get the PSI clock source.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 PSIREFSRC LL_RCC_GetPSIClkSource

Return values :

Returned – value can be one of the following values:

void LL_RCC_ConfigPSI ( uint32_t freq , uint32_t ref , uint32_t source )

Configure the PSI clock.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 PSIFREQ LL_RCC_ConfigPSI

CR2 PSIREF LL_RCC_ConfigPSI

CR2 PSIREFSRC LL_RCC_ConfigPSI

Parameters :
void LL_RCC_GetConfigPSI ( uint32_t * p_freq , uint32_t * p_ref , uint32_t * p_source )

Get PSI configuration.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 PSIFREQ LL_RCC_GetConfigPSI

CR2 PSIREF LL_RCC_GetConfigPSI

CR2 PSIREFSRC LL_RCC_GetConfigPSI

Parameters :
  • p_freq – Pointer on LL_RCC_PSIFREQ

  • p_ref – Pointer on LL_RCC_PSIREF

  • p_source – Pointer on LL_RCC_PSISOURCE

HSE

group RCC_LL_EF_HSE

Functions

void LL_RCC_HSE_Enable ( void )

Enable HSE clock (HSE ON).

Reference Manual to LL API cross reference (Register Field Functions)

CR1 HSEON LL_RCC_HSE_Enable

void LL_RCC_HSE_Disable ( void )

Disable HSE clock (HSE ON).

Reference Manual to LL API cross reference (Register Field Functions)

CR1 HSEON LL_RCC_HSE_Disable

uint32_t LL_RCC_HSE_IsEnabled ( void )

Check if HSE oscillator is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 HSEON LL_RCC_HSE_IsEnabled

Return values :

State – of bit (1 or 0).

uint32_t LL_RCC_HSE_IsReady ( void )

Check if HSE clock is ready.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 HSERDY LL_RCC_HSE_IsReady

Return values :

State – of bit (1 or 0).

void LL_RCC_HSE_SetClockMode ( uint32_t hse_mode )

Set external HSE clock mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 HSEEXT LL_RCC_HSE_SetClockMode

Note

This bit can be written only if the HSE oscillator is disabled.

Parameters :

hse_mode – This parameter can be one of the following values:

uint32_t LL_RCC_HSE_GetClockMode ( void )

Get External HSE clock mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 HSEEXT LL_RCC_HSE_GetClockMode

Return values :

Returned – value can be one of the following values:

void LL_RCC_HSE_EnableBypass ( void )

Enable HSE external oscillator (HSE Bypass).

Reference Manual to LL API cross reference (Register Field Functions)

CR1 HSEBYP LL_RCC_HSE_EnableBypass

void LL_RCC_HSE_ConfigBypass ( uint32_t hse_mode )

Configure HSE external oscillator in bypass.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 HSEBYP LL_RCC_HSE_ConfigBypass

CR1 HSEEXT LL_RCC_HSE_ConfigBypass

Parameters :

hse_mode – This parameter can be one of the following values:

void LL_RCC_HSE_DisableBypass ( void )

Disable HSE external oscillator (HSE Bypass).

Reference Manual to LL API cross reference (Register Field Functions)

CR1 HSEBYP LL_RCC_HSE_DisableBypass

uint32_t LL_RCC_HSE_IsBypassed ( void )

Check if HSE is bypassed.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 HSEBYP LL_RCC_HSE_IsBypassed

Return values :

State – of bit (1 or 0).

void LL_RCC_HSE_SelectAnalogClock ( void )

Select the Analog HSE external clock type in Bypass mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 HSEEXT LL_RCC_HSE_SelectAnalogClock

void LL_RCC_HSE_SelectDigitalClock ( void )

Select the Digital HSE external clock type in Bypass mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 HSEEXT LL_RCC_HSE_SelectDigitalClock

void LL_RCC_HSE_EnableCSS ( void )

Enable HSE clock security system.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 HSECSSON LL_RCC_HSE_EnableCSS

LSCO

group RCC_LL_EF_LSCO

Functions

void LL_RCC_LSCO_Enable ( void )

Enable Low speed clock.

Reference Manual to LL API cross reference (Register Field Functions)

RTCCR LSCOEN LL_RCC_LSCO_Enable

void LL_RCC_LSCO_Disable ( void )

Disable Low speed clock.

Reference Manual to LL API cross reference (Register Field Functions)

RTCCR LSCOEN LL_RCC_LSCO_Disable

void LL_RCC_LSCO_SetSource ( uint32_t source )

Configure Low speed clock selection.

Reference Manual to LL API cross reference (Register Field Functions)

RTCCR LSCOSEL LL_RCC_LSCO_SetSource

Parameters :

source – This parameter can be one of the following values:

uint32_t LL_RCC_LSCO_GetSource ( void )

Get Low speed clock selection.

Reference Manual to LL API cross reference (Register Field Functions)

RTCCR LSCOSEL LL_RCC_LSCO_GetSource

Return values :

Returned – value can be one of the following values:

void LL_RCC_ConfigLSCO ( uint32_t source )

Configure Low speed clock.

Reference Manual to LL API cross reference (Register Field Functions)

RTCCR LSCOSEL LL_RCC_ConfigLSCO

RTCCR LSCOEN LL_RCC_ConfigLSCO

Note

PWR and backup domain must be previously enabled.

Parameters :

source – This parameter can be one of the following values:

System

group RCC_LL_EF_System

Functions

void LL_RCC_SetSysClkSource ( uint32_t source )

Configure the system clock source.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR1 SW LL_RCC_SetSysClkSource

Parameters :

source – This parameter can be one of the following values:

uint32_t LL_RCC_GetSysClkSource ( void )

Get the system clock source.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR1 SWS LL_RCC_GetSysClkSource

Return values :

Returned – value can be one of the following values:

void LL_RCC_SetAHBPrescaler ( uint32_t prescaler )

Set AHB prescaler.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR2 HPRE LL_RCC_SetAHBPrescaler

Parameters :

prescaler – This parameter can be one of the following values:

uint32_t LL_RCC_GetAHBPrescaler ( void )

Get AHB prescaler.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR2 HPRE LL_RCC_GetAHBPrescaler

Return values :

Returned – value can be one of the following values:

void LL_RCC_SetSystickClockSource ( uint32_t SystickSource )

Set Systick clock source.

Reference Manual to LL API cross reference (Register Field Functions)

CCIPR2 SYSTICKSEL LL_RCC_SetSystickClockSource

Parameters :

SystickSource – This parameter can be one of the following values:

uint32_t LL_RCC_GetSystickClockSource ( void )

Get Sysctick clock source.

Reference Manual to LL API cross reference (Register Field Functions)

CCIPR2 SYSTICKSEL LL_RCC_GetSystickClockSource

Return values :

Returned – value can be one of the following values:

void LL_RCC_SetAPB1Prescaler ( uint32_t prescaler )

Set APB1 prescaler.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR2 PPRE1 LL_RCC_SetAPB1Prescaler

Parameters :

prescaler – This parameter can be one of the following values:

uint32_t LL_RCC_GetAPB1Prescaler ( void )

Get APB1 prescaler.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR2 PPRE1 LL_RCC_GetAPB1Prescaler

Return values :

Returned – value can be one of the following values:

void LL_RCC_SetAPB2Prescaler ( uint32_t prescaler )

Set APB2 prescaler.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR2 PPRE2 LL_RCC_SetAPB2Prescaler

Parameters :

prescaler – This parameter can be one of the following values:

uint32_t LL_RCC_GetAPB2Prescaler ( void )

Get APB2 prescaler.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR2 PPRE2 LL_RCC_GetAPB2Prescaler

Return values :

Returned – value can be one of the following values:

void LL_RCC_SetAPB3Prescaler ( uint32_t prescaler )

Set APB3 prescaler.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR2 PPRE3 LL_RCC_SetAPB3Prescaler

Parameters :

prescaler – This parameter can be one of the following values:

uint32_t LL_RCC_GetAPB3Prescaler ( void )

Get APB3 prescaler.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR2 PPRE3 LL_RCC_GetAPB3Prescaler

Return values :

Returned – value can be one of the following values:

void LL_RCC_ConfigBusClock ( uint32_t ahb_apb1_apb2_apb3pres )

Configure buses prescalers (AHB, APB1, APB2, APB3).

Reference Manual to LL API cross reference (Register Field Functions)

CFGR2 HPRE LL_RCC_ConfigBusClock

CFGR2 PPRE1 LL_RCC_ConfigBusClock

CFGR2 PPRE2 LL_RCC_ConfigBusClock

CFGR2 PPRE3 LL_RCC_ConfigBusClock

Parameters :

ahb_apb1_apb2_apb3pres – Bus Prescalers values of AHB, ABP1 , ABP2 and ABP3 This parameter can be one or a combination of the following values:

void LL_RCC_SetClkAfterWakeFromStop ( uint32_t clock )

Set Clock After Wake-Up From Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR1 STOPWUCK LL_RCC_SetClkAfterWakeFromStop

Parameters :

clock – This parameter can be one of the following values:

uint32_t LL_RCC_GetClkAfterWakeFromStop ( void )

Get Clock After Wake-Up From Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR1 STOPWUCK LL_RCC_GetClkAfterWakeFromStop

Return values :

Returned – value can be one of the following values:

MCO

group RCC_LL_EF_MCO

Functions

void LL_RCC_ConfigMCO ( uint32_t mcox_source , uint32_t mcox_prescaler )

Configure MCOx.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR1 MCO1SEL LL_RCC_ConfigMCO

CFGR1 MCO2SEL LL_RCC_ConfigMCO

CFGR1 MCO1PRE LL_RCC_ConfigMCO

CFGR1 MCO2PRE LL_RCC_ConfigMCO

Note

The clock provided to the MCOx outputs must not exceed the maximum IO speed, refer to the product datasheet for information about the supported IO speed.

Parameters :

Peripheral Clock Source

group RCC_LL_EF_Peripheral_Clock_Source

Functions

void LL_RCC_SetClockSource ( uint32_t clk_src )

Configure peripheral clock source.

Reference Manual to LL API cross reference (Register Field Functions)

CCIPR1 * LL_RCC_SetClockSource

CCIPR2 * LL_RCC_SetClockSource

CCIPR3 * LL_RCC_SetClockSource

Parameters :

clk_src – This parameter can be one of the following values:

void LL_RCC_SetUSARTClockSource ( uint32_t clk_src )

Configure USARTx clock source.

Reference Manual to LL API cross reference (Register Field Functions)

CCIPR1 USART1SEL LL_RCC_SetUSARTClockSource

CCIPR1 USART2SEL LL_RCC_SetUSARTClockSource

CCIPR1 USART3SEL LL_RCC_SetUSARTClockSource

CCIPR1 USART6SEL LL_RCC_SetUSARTClockSource

Parameters :

clk_src – This parameter can be one of the following values:

void LL_RCC_SetUARTClockSource ( uint32_t clk_src )

Configure UARTx clock source.

Reference Manual to LL API cross reference (Register Field Functions)

CCIPR1 UART4SEL LL_RCC_SetUARTClockSource

CCIPR1 UART5SEL LL_RCC_SetUARTClockSource

CCIPR1 UART7SEL LL_RCC_SetUARTClockSource

Parameters :

clk_src – This parameter can be one of the following values:

void LL_RCC_SetLPUARTClockSource ( uint32_t clk_src )

Configure LPUARTx clock source.

Reference Manual to LL API cross reference (Register Field Functions)

CCIPR1 LPUART1SEL LL_RCC_SetLPUARTClockSource

Parameters :

clk_src – This parameter can be one of the following values:

void LL_RCC_SetSPIClockSource ( uint32_t clk_src )

Configure SPIx clock source.

Reference Manual to LL API cross reference (Register Field Functions)

CCIPR1 SPI1SEL LL_RCC_SetSPIClockSource

CCIPR1 SPI2SEL LL_RCC_SetSPIClockSource

CCIPR1 SPI3SEL LL_RCC_SetSPIClockSource

Parameters :

clk_src – This parameter can be one of the following values:

void LL_RCC_SetFDCANClockSource ( uint32_t clk_src )

Configure FDCANx clock source.

Reference Manual to LL API cross reference (Register Field Functions)

CCIPR1 FDCANSEL LL_RCC_SetFDCANClockSource

Parameters :

clk_src – This parameter can be one of the following values:

void LL_RCC_SetI2CClockSource ( uint32_t clk_src )

Configure I2Cx clock source.

Reference Manual to LL API cross reference (Register Field Functions)

CCIPR2 I2C1SEL LL_RCC_SetI2CClockSource

CCIPR2 I2C2SEL LL_RCC_SetI2CClockSource

Parameters :

clk_src – This parameter can be one of the following values:

void LL_RCC_SetI3CClockSource ( uint32_t clk_src )

Configure I3Cx clock source.

Reference Manual to LL API cross reference (Register Field Functions)

CCIPR2 I3C1SEL LL_RCC_SetI3CClockSource

Parameters :

clk_src – This parameter can be one of the following values:

void LL_RCC_SetADCDACClockSource ( uint32_t clk_src )

Configure ADCDACx clock source.

Reference Manual to LL API cross reference (Register Field Functions)

CCIPR2 ADCDACSEL LL_RCC_SetADCDACClockSource

Note

This bit must not be changed when ADC or DAC enabled.

Parameters :

clk_src – This parameter can be one of the following values:

void LL_RCC_SetADCDACPrescaler ( uint32_t Prescaler )

Configure ADCDACx clock prescaler.

Reference Manual to LL API cross reference (Register Field Functions)

CCIPR2 ADCDACPRE LL_RCC_SetADCDACPrescaler

Note

This bit must not be changed when ADC or DAC enabled.

Parameters :

Prescaler – This parameter can be between the following values:

void LL_RCC_SetDACSHClockSource ( uint32_t clk_src )

Configure DACSH kernel clock source.

Reference Manual to LL API cross reference (Register Field Functions)

CCIPR2 DACSEL LL_RCC_SetDACSHClockSource

Parameters :

clk_src – This parameter can be one of the following values:

void LL_RCC_SetLPTIMClockSource ( uint32_t clk_src )

Configure LPTIMx clock source.

Reference Manual to LL API cross reference (Register Field Functions)

CCIPR2 LPTIM1SEL LL_RCC_SetLPTIMClockSource

Parameters :

clk_src – This parameter can be one of the following values:

void LL_RCC_SetCK48ClockSource ( uint32_t clk_src )

Configure CKx clock source.

Reference Manual to LL API cross reference (Register Field Functions)

CCIPR2 CK48SEL LL_RCC_SetCK48ClockSource

Parameters :

clk_src – This parameter can be one of the following values:

void LL_RCC_ConfigADCDAC ( uint32_t adcdacx_source , uint32_t adcdacx_prescaler )

Configure ADCDACx.

Reference Manual to LL API cross reference (Register Field Functions)

CCIPR2 ADCDACSEL LL_RCC_ConfigADCDAC

CCIPR2 ADCDACPRE LL_RCC_ConfigADCDAC

Note

These bits can be written only if the ADCDAC clock is disabled.

Parameters :
void LL_RCC_GetConfigADCDAC ( uint32_t * p_adcdacx_source , uint32_t * p_adcdacx_prescaler )

Get ADCDACx configuration.

Reference Manual to LL API cross reference (Register Field Functions)

CCIPR2 ADCDACSEL LL_RCC_GetConfigADCDAC

CCIPR2 ADCDACPRE LL_RCC_GetConfigADCDAC

Parameters :
  • p_adcdacx_source – Pointer on LL_RCC_ADCDAC_CLKSOURCE

  • p_adcdacx_prescaler – Pointer on LL_RCC_ADCDAC_PRESCALER

uint32_t LL_RCC_GetClockSource ( uint32_t Periph )

Get periph clock source.

Reference Manual to LL API cross reference (Register Field Functions)

CCIPR1 * LL_RCC_GetClockSource

CCIPR2 * LL_RCC_GetClockSource

CCIPR3 * LL_RCC_GetClockSource

Parameters :

Periph – This parameter can be one of the following values:

Return values :

Returned – value can be one of the following values:

uint32_t LL_RCC_GetUSARTClockSource ( uint32_t Periph )

Get USARTx clock source.

Reference Manual to LL API cross reference (Register Field Functions)

CCIPR1 USART1SEL LL_RCC_GetUSARTClockSource

CCIPR1 USART2SEL LL_RCC_GetUSARTClockSource

CCIPR1 USART3SEL LL_RCC_GetUSARTClockSource

CCIPR1 USART6SEL LL_RCC_GetUSARTClockSource

Parameters :

Periph – This parameter can be one of the following values:

Return values :

Returned – value can be one of the following values:

uint32_t LL_RCC_GetUARTClockSource ( uint32_t Periph )

Get UARTx clock source.

Reference Manual to LL API cross reference (Register Field Functions)

CCIPR1 UART4SEL LL_RCC_GetUARTClockSource

CCIPR1 UART5SEL LL_RCC_GetUARTClockSource

CCIPR1 UART7SEL LL_RCC_GetUARTClockSource

Parameters :

Periph – This parameter can be one of the following values:

Return values :

Returned – value can be one of the following values:

uint32_t LL_RCC_GetLPUARTClockSource ( uint32_t Periph )

Get LPUARTx clock source.

Reference Manual to LL API cross reference (Register Field Functions)

CCIPR1 LPUART1SEL LL_RCC_GetLPUARTClockSource

Parameters :

Periph – This parameter can be one of the following values:

Return values :

Returned – value can be one of the following values:

uint32_t LL_RCC_GetSPIClockSource ( uint32_t Periph )

Get SPIx clock source.

Reference Manual to LL API cross reference (Register Field Functions)

CCIPR1 SPI1SEL LL_RCC_GetSPIClockSource

CCIPR1 SPI2SEL LL_RCC_GetSPIClockSource

CCIPR1 SPI3SEL LL_RCC_GetSPIClockSource

Parameters :

Periph – This parameter can be one of the following values:

Return values :

Returned – value can be one of the following values:

uint32_t LL_RCC_GetFDCANClockSource ( uint32_t Periph )

Get FDCANx clock source.

Reference Manual to LL API cross reference (Register Field Functions)

CCIPR1 FDCANSEL LL_RCC_GetFDCANClockSource

Parameters :

Periph – This parameter can be one of the following values:

Return values :

Returned – value can be one of the following values:

uint32_t LL_RCC_GetI2CClockSource ( uint32_t Periph )

Get I2Cx clock source.

Reference Manual to LL API cross reference (Register Field Functions)

CCIPR2 I2C1SEL LL_RCC_GetI2CClockSource

CCIPR2 I2C2SEL LL_RCC_GetI2CClockSource

Parameters :

Periph – This parameter can be one of the following values:

Return values :

Returned – value can be one of the following values:

uint32_t LL_RCC_GetI3CClockSource ( uint32_t Periph )

Get I3Cx clock source.

Reference Manual to LL API cross reference (Register Field Functions)

CCIPR2 I3C1SEL LL_RCC_GetI3CClockSource

Parameters :

Periph – This parameter can be one of the following values:

Return values :

Returned – value can be one of the following values:

uint32_t LL_RCC_GetADCDACClockSource ( uint32_t Periph )

Get ADCDACx clock source.

Reference Manual to LL API cross reference (Register Field Functions)

CCIPR2 ADCDACSEL LL_RCC_GetADCDACClockSource

Parameters :

Periph – This parameter can be one of the following values:

Return values :

Returned – value can be one of the following values:

uint32_t LL_RCC_GetADCDACPrescaler ( uint32_t Periph )

Get ADCDACx clock prescaler.

Reference Manual to LL API cross reference (Register Field Functions)

CCIPR2 ADCDACSEL LL_RCC_GetADCDACPrescaler

Parameters :

Periph – This parameter can be one of the following values:

Return values :

Returned – value can be between the following values:

uint32_t LL_RCC_GetDACSHClockSource ( uint32_t Periph )

Get DACSH kernel Clock Source.

Reference Manual to LL API cross reference (Register Field Functions)

CCIPR2 DACSEL LL_RCC_GetDACSHClockSource

Parameters :

Periph – This parameter can be one of the following values:

Return values :

Returned – value can be one of the following values:

uint32_t LL_RCC_GetLPTIMClockSource ( uint32_t Periph )

Get LPTIMx clock source.

Reference Manual to LL API cross reference (Register Field Functions)

CCIPR2 LPTIM1SEL LL_RCC_GetLPTIMClockSource

Parameters :

Periph – This parameter can be one of the following values:

Return values :

Returned – value can be one of the following values:

uint32_t LL_RCC_GetCKClockSource ( uint32_t Periph )

Get CKx clock source.

Reference Manual to LL API cross reference (Register Field Functions)

CCIPR2 CK48SEL LL_RCC_GetCKClockSource

Parameters :

Periph – This parameter can be one of the following values:

Return values :

Returned – value can be one of the following values:

RTC

group RCC_LL_EF_RTC

Functions

void LL_RCC_SetRTCClockSource ( uint32_t Source )

Set RTC Clock Source.

Reference Manual to LL API cross reference (Register Field Functions)

RTCCR RTCSEL LL_RCC_SetRTCClockSource

Note

Once the RTC clock source has been selected, it cannot be changed anymore unless the Backup domain is reset, or unless a failure is detected on LSE (LSECSSD is set). The VSWRST bit can be used to reset them.

Parameters :

Source – This parameter can be one of the following values:

uint32_t LL_RCC_GetRTCClockSource ( void )

Get RTC Clock Source.

Reference Manual to LL API cross reference (Register Field Functions)

RTCCR RTCSEL LL_RCC_GetRTCClockSource

Return values :

Returned – value can be one of the following values:

void LL_RCC_EnableRTC ( void )

Enable RTC.

Reference Manual to LL API cross reference (Register Field Functions)

RTCCR RTCEN LL_RCC_EnableRTC

void LL_RCC_DisableRTC ( void )

Disable RTC.

Reference Manual to LL API cross reference (Register Field Functions)

RTCCR RTCEN LL_RCC_DisableRTC

uint32_t LL_RCC_IsEnabledRTC ( void )

Check if RTC has been enabled or not.

Reference Manual to LL API cross reference (Register Field Functions)

RTCCR RTCEN LL_RCC_IsEnabledRTC

Return values :

State – of bit (1 or 0).

void LL_RCC_ForceRTCDomainReset ( void )

Force the Backup domain reset.

Reference Manual to LL API cross reference (Register Field Functions)

RTCCR RTCDRST LL_RCC_ForceRTCDomainReset

void LL_RCC_ReleaseRTCDomainReset ( void )

Release the Backup domain reset.

Reference Manual to LL API cross reference (Register Field Functions)

RTCCR RTCDRST LL_RCC_ReleaseRTCDomainReset

uint32_t LL_RCC_GetRTC_HSEPrescaler ( void )

Get HSE Prescaler for RTC Clock.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR1 RTCPRE LL_RCC_GetRTC_HSEPrescaler

Return values :

Returned – value can be a value between 1 and 511

void LL_RCC_SetRTC_HSEPrescaler ( uint32_t prescaler )

Set HSE Prescaler for RTC Clock.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR1 RTCPRE LL_RCC_SetRTC_HSEPrescaler

Note

prescaler must be correctly set to ensure that the clock supplied to the RTC is lower than 1MHz.

Parameters :

prescaler – parameter can be a value between 0 and 511 with 0 and 1 values meaning no clock output

FLAG Management

group RCC_LL_EF_FLAG_Management

Functions

void LL_RCC_ClearFlag ( uint32_t mask )

Clear RCC interrupt flags.

Reference Manual to LL API cross reference (Register Field Functions)

CICR LSIRDYC LL_RCC_ClearFlag

CICR LSERDYC LL_RCC_ClearFlag

CICR HSIRDYC LL_RCC_ClearFlag

CICR HSIDIV3RDYC LL_RCC_ClearFlag

CICR HSIKRDYC LL_RCC_ClearFlag

CICR PSIRDYC LL_RCC_ClearFlag

CICR PSIDIV3RDYC LL_RCC_ClearFlag

CICR PSIKRDYC LL_RCC_ClearFlag

CICR HSERDYC LL_RCC_ClearFlag

CICR HSECSSC LL_RCC_ClearFlag

CICR LSECSSC LL_RCC_ClearFlag

Parameters :

mask – specifies the RCC flags to be cleared. This parameter can be any combination of the following values:

void LL_RCC_ClearFlag_LSIRDY ( void )

Clear LSIRDY ready interrupt flag.

Reference Manual to LL API cross reference (Register Field Functions)

CICR LSIRDYC LL_RCC_ClearFlag_LSIRDY

void LL_RCC_ClearFlag_LSERDY ( void )

Clear LSERDY ready interrupt flag.

Reference Manual to LL API cross reference (Register Field Functions)

CICR LSERDYC LL_RCC_ClearFlag_LSERDY

void LL_RCC_ClearFlag_HSIRDY ( void )

Clear HSIRDY ready interrupt flag.

Reference Manual to LL API cross reference (Register Field Functions)

CICR HSIRDYC LL_RCC_ClearFlag_HSIRDY

void LL_RCC_ClearFlag_HSIDIV3RDY ( void )

Clear HSIDIV3RDY ready interrupt flag.

Reference Manual to LL API cross reference (Register Field Functions)

CICR HSIDIV3RDYC LL_RCC_ClearFlag_HSIDIV3RDY

void LL_RCC_ClearFlag_HSIKRDY ( void )

Clear HSIKRDY ready interrupt flag.

Reference Manual to LL API cross reference (Register Field Functions)

CICR HSIKRDYC LL_RCC_ClearFlag_HSIKRDY

void LL_RCC_ClearFlag_PSIRDY ( void )

Clear PSIRDY ready interrupt flag.

Reference Manual to LL API cross reference (Register Field Functions)

CICR PSIRDYC LL_RCC_ClearFlag_PSIRDY

void LL_RCC_ClearFlag_PSIDIV3RDY ( void )

Clear PSIDIV3RDY ready interrupt flag.

Reference Manual to LL API cross reference (Register Field Functions)

CICR PSIDIV3RDYC LL_RCC_ClearFlag_PSIDIV3RDY

void LL_RCC_ClearFlag_PSIKRDY ( void )

Clear PSIKRDY ready interrupt flag.

Reference Manual to LL API cross reference (Register Field Functions)

CICR PSIKRDYC LL_RCC_ClearFlag_PSIKRDY

void LL_RCC_ClearFlag_HSERDY ( void )

Clear HSERDY ready interrupt flag.

Reference Manual to LL API cross reference (Register Field Functions)

CICR HSERDYC LL_RCC_ClearFlag_HSERDY

void LL_RCC_ClearFlag_HSECSS ( void )

Clear HSECSS ready interrupt flag.

Reference Manual to LL API cross reference (Register Field Functions)

CICR HSECSSC LL_RCC_ClearFlag_HSECSS

void LL_RCC_ClearFlag_LSECSS ( void )

Clear LSECSS ready interrupt flag.

Reference Manual to LL API cross reference (Register Field Functions)

CICR LSECSSC LL_RCC_ClearFlag_LSECSS

uint32_t LL_RCC_IsActiveFlag ( uint32_t mask )

Check if RCC ready interrupt occurred or not.

Reference Manual to LL API cross reference (Register Field Functions)

CIFR LSIRDYF LL_RCC_IsActiveFlag

CIFR LSERDYF LL_RCC_IsActiveFlag

CIFR HSIRDYF LL_RCC_IsActiveFlag

CIFR HSIDIV3RDYF LL_RCC_IsActiveFlag

CIFR HSIKRDYF LL_RCC_IsActiveFlag

CIFR PSIRDYF LL_RCC_IsActiveFlag

CIFR PSIDIV3RDYF LL_RCC_IsActiveFlag

CIFR PSIKRDYF LL_RCC_IsActiveFlag

CIFR HSERDYF LL_RCC_IsActiveFlag

CIFR HSECSSF LL_RCC_IsActiveFlag

CIFR LSECSSF LL_RCC_IsActiveFlag

Parameters :

mask – specifies the RCC flags to be cleared. This parameter can be any combination of the following values:

Return values :

State – of flags (1 or 0).

uint32_t LL_RCC_IsActiveFlag_LSIRDY ( void )

Check if LSIRDY ready interrupt occurred or not.

Reference Manual to LL API cross reference (Register Field Functions)

CIFR LSIRDYF LL_RCC_IsActiveFlag_LSIRDY

Return values :

State – of bit (1 or 0).

uint32_t LL_RCC_IsActiveFlag_LSERDY ( void )

Check if LSERDY ready interrupt occurred or not.

Reference Manual to LL API cross reference (Register Field Functions)

CIFR LSERDYF LL_RCC_IsActiveFlag_LSERDY

Return values :

State – of bit (1 or 0).

uint32_t LL_RCC_IsActiveFlag_HSIRDY ( void )

Check if HSIRDY ready interrupt occurred or not.

Reference Manual to LL API cross reference (Register Field Functions)

CIFR HSIRDYF LL_RCC_IsActiveFlag_HSIRDY

Return values :

State – of bit (1 or 0).

uint32_t LL_RCC_IsActiveFlag_HSIDIV3RDY ( void )

Check if HSIDIV3RDY ready interrupt occurred or not.

Reference Manual to LL API cross reference (Register Field Functions)

CIFR HSIDIV3RDYF LL_RCC_IsActiveFlag_HSIDIV3RDY

Return values :

State – of bit (1 or 0).

uint32_t LL_RCC_IsActiveFlag_HSIKRDY ( void )

Check if HSIKRDY ready interrupt occurred or not.

Reference Manual to LL API cross reference (Register Field Functions)

CIFR HSIKRDYF LL_RCC_IsActiveFlag_HSIKRDY

Return values :

State – of bit (1 or 0).

uint32_t LL_RCC_IsActiveFlag_PSIRDY ( void )

Check if PSIRDY ready interrupt occurred or not.

Reference Manual to LL API cross reference (Register Field Functions)

CIFR PSIRDYF LL_RCC_IsActiveFlag_PSIRDY

Return values :

State – of bit (1 or 0).

uint32_t LL_RCC_IsActiveFlag_PSIDIV3RDY ( void )

Check if PSIDIV3RDY ready interrupt occurred or not.

Reference Manual to LL API cross reference (Register Field Functions)

CIFR PSIDIV3RDYF LL_RCC_IsActiveFlag_PSIDIV3RDY

Return values :

State – of bit (1 or 0).

uint32_t LL_RCC_IsActiveFlag_PSIKRDY ( void )

Check if PSIKRDY ready interrupt occurred or not.

Reference Manual to LL API cross reference (Register Field Functions)

CIFR PSIKRDYF LL_RCC_IsActiveFlag_PSIKRDY

Return values :

State – of bit (1 or 0).

uint32_t LL_RCC_IsActiveFlag_HSERDY ( void )

Check if HSERDY ready interrupt occurred or not.

Reference Manual to LL API cross reference (Register Field Functions)

CIFR HSERDYF LL_RCC_IsActiveFlag_HSERDY

Return values :

State – of bit (1 or 0).

uint32_t LL_RCC_IsActiveFlag_HSECSS ( void )

Check if HSECSS ready interrupt occurred or not.

Reference Manual to LL API cross reference (Register Field Functions)

CIFR HSECSSF LL_RCC_IsActiveFlag_HSECSS

Return values :

State – of bit (1 or 0).

uint32_t LL_RCC_IsActiveFlag_LSECSS ( void )

Check if LSECSS ready interrupt occurred or not.

Reference Manual to LL API cross reference (Register Field Functions)

CIFR LSECSSF LL_RCC_IsActiveFlag_LSECSS

Return values :

State – of bit (1 or 0).

void LL_RCC_ForceClearResetFlags ( void )

Set RMVF bit to clear the reset flags.

Reference Manual to LL API cross reference (Register Field Functions)

RSR RMVF LL_RCC_ForceClearResetFlags

void LL_RCC_ReleaseClearResetFlags ( void )

Reset RMVF bit to release the clear of reset flags.

Reference Manual to LL API cross reference (Register Field Functions)

RSR RMVF LL_RCC_ReleaseClearResetFlags

uint32_t LL_RCC_IsActiveFlag_PINRST ( void )

Check if RCC pin reset flag (NRST) is set or not.

Reference Manual to LL API cross reference (Register Field Functions)

RSR PINRSTF LL_RCC_IsActiveFlag_PINRST

Return values :

State – of bit (1 or 0).

uint32_t LL_RCC_IsActiveFlag_BORRST ( void )

Check if RCC POR reset flag is set or not.

Reference Manual to LL API cross reference (Register Field Functions)

RSR BORRSTF LL_RCC_IsActiveFlag_BORRST

Return values :

State – of bit (1 or 0).

uint32_t LL_RCC_IsActiveFlag_SFTRST ( void )

Check if RCC system reset from CPU reset flag is set or not.

Reference Manual to LL API cross reference (Register Field Functions)

RSR SFTRSTF LL_RCC_IsActiveFlag_SFTRST

Return values :

State – of bit (1 or 0).

uint32_t LL_RCC_IsActiveFlag_IWDGRST ( void )

Check if RCC independent watchdog reset flag is set or not.

Reference Manual to LL API cross reference (Register Field Functions)

RSR IWDGRSTF LL_RCC_IsActiveFlag_IWDGRST

Return values :

State – of bit (1 or 0).

uint32_t LL_RCC_IsActiveFlag_WWDGRST ( void )

Check if RCC window watchdog reset flag is set or not.

Reference Manual to LL API cross reference (Register Field Functions)

RSR WWDGRSTF LL_RCC_IsActiveFlag_WWDGRST

Return values :

State – of bit (1 or 0).

uint32_t LL_RCC_IsActiveFlag_LPWRRST ( void )

Check if RCC Low-power reset flag is set or not.

Reference Manual to LL API cross reference (Register Field Functions)

RSR LPWRRSTF LL_RCC_IsActiveFlag_LPWRRST

Return values :

State – of bit (1 or 0).

Privilege Services

group RCC_LL_EF_Privilege_Services

Functions

void LL_RCC_SetPrivAttr ( uint32_t item , uint32_t priv_attr )

Set the privileged access level attribute for item(s).

Reference Manual to LL API cross reference (Register Field Functions) PRIVCFGR PRIV LL_RCC_SetPrivAttr

Parameters :
uint32_t LL_RCC_GetPrivAttr ( uint32_t item )

Get the privileged access level attribute of an item.

Reference Manual to LL API cross reference (Register Field Functions) PRIVCFGR PRIV LL_RCC_GetPrivAttr

Parameters :

item – This parameter can be one of the following values:

Return values :

Returned – value can be one of the following values:

IT Management

group RCC_LL_EF_IT_Management

Functions

void LL_RCC_EnableIT ( uint32_t mask )

Enable RCC interrupts.

Reference Manual to LL API cross reference (Register Field Functions)

CIER LSIRDYIE LL_RCC_EnableIT

CIER LSERDYIE LL_RCC_EnableIT

CIER HSIRDYIE LL_RCC_EnableIT

CIER HSIDIV3RDYIE LL_RCC_EnableIT

CIER HSIKRDYIE LL_RCC_EnableIT

CIER PSIRDYIE LL_RCC_EnableIT

CIER PSIDIV3RDYIE LL_RCC_EnableIT

CIER PSIKRDYIE LL_RCC_EnableIT

CIER HSERDYIE LL_RCC_EnableIT

Parameters :

mask – specifies the RCC IT to be enabled. This parameter can be any combination of the following values:

void LL_RCC_EnableIT_LSIRDY ( void )

Enable LSI ready interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

CIER LSIRDYIE LL_RCC_EnableIT_LSIRDY

void LL_RCC_EnableIT_LSERDY ( void )

Enable LSE ready interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

CIER LSERDYIE LL_RCC_EnableIT_LSERDY

void LL_RCC_EnableIT_HSIRDY ( void )

Enable HSI ready interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

CIER HSIRDYIE LL_RCC_EnableIT_HSIRDY

void LL_RCC_EnableIT_HSIDIV3RDY ( void )

Enable HSIDIV3 ready interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

CIER HSIDIV3RDYIE LL_RCC_EnableIT_HSIDIV3RDY

void LL_RCC_EnableIT_HSIKRDY ( void )

Enable HSIK ready interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

CIER HSIKRDYIE LL_RCC_EnableIT_HSIKRDY

void LL_RCC_EnableIT_PSIRDY ( void )

Enable PSI ready interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

CIER PSIRDYIE LL_RCC_EnableIT_PSIRDY

void LL_RCC_EnableIT_PSIDIV3RDY ( void )

Enable PSIDIV3 ready interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

CIER PSIDIV3RDYIE LL_RCC_EnableIT_PSIDIV3RDY

void LL_RCC_EnableIT_PSIKRDY ( void )

Enable PSIK ready interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

CIER PSIKRDYIE LL_RCC_EnableIT_PSIKRDY

void LL_RCC_EnableIT_HSERDY ( void )

Enable HSE ready interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

CIER HSERDYIE LL_RCC_EnableIT_HSERDY

void LL_RCC_DisableIT ( uint32_t mask )

Disable RCC interrupts.

Reference Manual to LL API cross reference (Register Field Functions)

CIER LSIRDYIE LL_RCC_DisableIT

CIER LSERDYIE LL_RCC_DisableIT

CIER HSIRDYIE LL_RCC_DisableIT

CIER HSIDIV3RDYIE LL_RCC_DisableIT

CIER HSIKRDYIE LL_RCC_DisableIT

CIER PSIRDYIE LL_RCC_DisableIT

CIER PSIDIV3RDYIE LL_RCC_DisableIT

CIER PSIKRDYIE LL_RCC_DisableIT

CIER HSERDYIE LL_RCC_DisableIT

Parameters :

mask – specifies the RCC IT to be disabled. This parameter can be any combination of the following values:

void LL_RCC_DisableIT_LSIRDY ( void )

Disable LSI ready interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

CIER LSIRDYIE LL_RCC_DisableIT_LSIRDY

void LL_RCC_DisableIT_LSERDY ( void )

Disable LSI ready interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

CIER LSERDYIE LL_RCC_DisableIT_LSERDY

void LL_RCC_DisableIT_HSIRDY ( void )

Disable LSI ready interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

CIER HSIRDYIE LL_RCC_DisableIT_HSIRDY

void LL_RCC_DisableIT_HSIDIV3RDY ( void )

Disable LSI ready interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

CIER HSIDIV3RDYIE LL_RCC_DisableIT_HSIDIV3RDY

void LL_RCC_DisableIT_HSIKRDY ( void )

Disable LSI ready interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

CIER HSIKRDYIE LL_RCC_DisableIT_HSIKRDY

void LL_RCC_DisableIT_PSIRDY ( void )

Disable LSI ready interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

CIER PSIRDYIE LL_RCC_DisableIT_PSIRDY

void LL_RCC_DisableIT_PSIDIV3RDY ( void )

Disable LSI ready interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

CIER PSIDIV3RDYIE LL_RCC_DisableIT_PSIDIV3RDY

void LL_RCC_DisableIT_PSIKRDY ( void )

Disable LSI ready interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

CIER PSIKRDYIE LL_RCC_DisableIT_PSIKRDY

void LL_RCC_DisableIT_HSERDY ( void )

Disable LSI ready interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

CIER HSERDYIE LL_RCC_DisableIT_HSERDY

uint32_t LL_RCC_IsEnabledIT_LSIRDY ( void )

Check if LSI ready interrupt source is enabled or disabled.

Reference Manual to LL API cross reference (Register Field Functions)

CIER LSIRDYIE LL_RCC_IsEnabledIT_LSIRDY

Return values :

State – of bit (1 or 0).

uint32_t LL_RCC_IsEnabledIT_LSERDY ( void )

Check if LSI ready interrupt source is enabled or disabled.

Reference Manual to LL API cross reference (Register Field Functions)

CIER LSERDYIE LL_RCC_IsEnabledIT_LSERDY

Return values :

State – of bit (1 or 0).

uint32_t LL_RCC_IsEnabledIT_HSIRDY ( void )

Check if LSI ready interrupt source is enabled or disabled.

Reference Manual to LL API cross reference (Register Field Functions)

CIER HSIRDYIE LL_RCC_IsEnabledIT_HSIRDY

Return values :

State – of bit (1 or 0).

uint32_t LL_RCC_IsEnabledIT_HSIDIV3RDY ( void )

Check if LSI ready interrupt source is enabled or disabled.

Reference Manual to LL API cross reference (Register Field Functions)

CIER HSIDIV3RDYIE LL_RCC_IsEnabledIT_HSIDIV3RDY

Return values :

State – of bit (1 or 0).

uint32_t LL_RCC_IsEnabledIT_HSIKRDY ( void )

Check if LSI ready interrupt source is enabled or disabled.

Reference Manual to LL API cross reference (Register Field Functions)

CIER HSIKRDYIE LL_RCC_IsEnabledIT_HSIKRDY

Return values :

State – of bit (1 or 0).

uint32_t LL_RCC_IsEnabledIT_PSIRDY ( void )

Check if LSI ready interrupt source is enabled or disabled.

Reference Manual to LL API cross reference (Register Field Functions)

CIER PSIRDYIE LL_RCC_IsEnabledIT_PSIRDY

Return values :

State – of bit (1 or 0).

uint32_t LL_RCC_IsEnabledIT_PSIDIV3RDY ( void )

Check if LSI ready interrupt source is enabled or disabled.

Reference Manual to LL API cross reference (Register Field Functions)

CIER PSIDIV3RDYIE LL_RCC_IsEnabledIT_PSIDIV3RDY

Return values :

State – of bit (1 or 0).

uint32_t LL_RCC_IsEnabledIT_PSIKRDY ( void )

Check if LSI ready interrupt source is enabled or disabled.

Reference Manual to LL API cross reference (Register Field Functions)

CIER PSIKRDYIE LL_RCC_IsEnabledIT_PSIKRDY

Return values :

State – of bit (1 or 0).

uint32_t LL_RCC_IsEnabledIT_HSERDY ( void )

Check if LSI ready interrupt source is enabled or disabled.

Reference Manual to LL API cross reference (Register Field Functions)

CIER HSERDYIE LL_RCC_IsEnabledIT_HSERDY

Return values :

State – of bit (1 or 0).