EasyManuals Logo

ST STM32F2 User Manual

ST STM32F2
1371 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #422 background imageLoading...
Page #422 background image
HAL RCC Generic Driver
UM1940
422/1371
DocID028236 Rev 2
HAL_RCC_MCOConfig
Function name
void HAL_RCC_MCOConfig (uint32_t RCC_MCOx, uint32_t
RCC_MCOSource, uint32_t RCC_MCODiv)
Function description
Selects the clock source to output on MCO1 pin(PA8) or on MCO2
pin(PC9).
Parameters
RCC_MCOx: specifies the output direction for the clock
source. This parameter can be one of the following values:
RCC_MCO1: Clock source to output on MCO1 pin(PA8).
RCC_MCO2: Clock source to output on MCO2 pin(PC9).
RCC_MCOSource: specifies the clock source to output. This
parameter can be one of the following values:
RCC_MCO1SOURCE_HSI: HSI clock selected as
MCO1 source
RCC_MCO1SOURCE_LSE: LSE clock selected as
MCO1 source
RCC_MCO1SOURCE_HSE: HSE clock selected as
MCO1 source
RCC_MCO1SOURCE_PLLCLK: main PLL clock
selected as MCO1 source
RCC_MCO2SOURCE_SYSCLK: System clock
(SYSCLK) selected as MCO2 source
RCC_MCO2SOURCE_PLLI2SCLK: PLLI2S clock
selected as MCO2 source
RCC_MCO2SOURCE_HSE: HSE clock selected as
MCO2 source
RCC_MCO2SOURCE_PLLCLK: main PLL clock
selected as MCO2 source
RCC_MCODiv: specifies the MCOx prescaler. This
parameter can be one of the following values:
RCC_MCODIV_1: no division applied to MCOx clock
RCC_MCODIV_2: division by 2 applied to MCOx clock
RCC_MCODIV_3: division by 3 applied to MCOx clock
RCC_MCODIV_4: division by 4 applied to MCOx clock
RCC_MCODIV_5: division by 5 applied to MCOx clock
Return values
None:
Notes
PA8/PC9 should be configured in alternate function mode.
HAL_RCC_EnableCSS
Function name
void HAL_RCC_EnableCSS (void )
Function description
Enables the Clock Security System.
Return values
None:
Notes
If a failure is detected on the HSE oscillator clock, this
oscillator is automatically disabled and an interrupt is
generated to inform the software about the failure (Clock
Security System Interrupt, CSSI), allowing the MCU to
perform rescue operations. The CSSI is linked to the Cortex-
M3 NMI (Non-Maskable Interrupt) exception vector.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM32F2 and is the answer not in the manual?

ST STM32F2 Specifications

General IconGeneral
BrandST
ModelSTM32F2
CategoryMicrocontrollers
LanguageEnglish

Related product manuals