Macro to configure the MCO2 clock.
- Parameters:
-
__MCOCLKSOURCE__ | specifies the MCO clock source. This parameter can be one of the following values:
- RCC_MCO2SOURCE_SYSCLK: System clock (SYSCLK) selected as MCO2 source
- RCC_MCO2SOURCE_PLLI2SCLK: PLLI2S clock selected as MCO2 source, available for all STM32F4 devices except STM32F410xx
- RCC_MCO2SOURCE_I2SCLK: I2SCLK clock selected as MCO2 source, available only for STM32F410Rx devices
- RCC_MCO2SOURCE_HSE: HSE clock selected as MCO2 source
- RCC_MCO2SOURCE_PLLCLK: main PLL clock selected as MCO2 source
|
__MCODIV__ | specifies the MCO clock 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
|
- Note:
- For STM32F410Rx devices, to output I2SCLK clock on MCO2, you should have at least one of the SPI clocks enabled (SPI1, SPI2 or SPI5).
Definition at line 1139 of file stm32f4xx_hal_rcc.h.