cantata
Macros
RCC Extended MCOx Clock Config
Collaboration diagram for RCC Extended MCOx Clock Config:

Macros

#define __HAL_RCC_MCO1_CONFIG(__MCOCLKSOURCE__, __MCODIV__)   MODIFY_REG(RCC->CFGR, RCC_CFGR_MCO, (__MCOCLKSOURCE__))
 Macro to configure the MCO clock. More...
 

Detailed Description

Macro Definition Documentation

◆ __HAL_RCC_MCO1_CONFIG

#define __HAL_RCC_MCO1_CONFIG (   __MCOCLKSOURCE__,
  __MCODIV__ 
)    MODIFY_REG(RCC->CFGR, RCC_CFGR_MCO, (__MCOCLKSOURCE__))

Macro to configure the MCO clock.

Parameters
<strong>MCOCLKSOURCE</strong>specifies the MCO clock source. This parameter can be one of the following values:
  • RCC_MCO1SOURCE_NOCLOCK No clock selected as MCO clock
  • RCC_MCO1SOURCE_SYSCLK System clock (SYSCLK) selected as MCO clock
  • RCC_MCO1SOURCE_HSI HSI selected as MCO clock
  • RCC_MCO1SOURCE_HSE HSE selected as MCO clock
  • RCC_MCO1SOURCE_PLLCLK PLL clock divided by 2 selected as MCO clock
<strong>MCODIV</strong>specifies the MCO clock prescaler. This parameter can be one of the following values:
  • RCC_MCODIV_1 No division applied on MCO clock source