RCC_FLAG_SFTRST: Software reset.
RCC_FLAG_IWDGRST: Independent
Watchdog reset.
RCC_FLAG_WWDGRST: Window
Watchdog reset.
RCC_FLAG_LPWRRST: Low Power
reset.
Return value:
The: new state of __FLAG__ (TRUE or
FALSE).
Get Clock source
Description:
Macro to configure the system clock source.
Parameters:
__RCC_SYSCLKSOURCE__: specifies the
system clock source. This parameter can be
one of the following values:
RCC_SYSCLKSOURCE_HSI: HSI
oscillator is used as system clock source.
RCC_SYSCLKSOURCE_HSE: HSE
oscillator is used as system clock source.
RCC_SYSCLKSOURCE_PLLCLK: PLL
output is used as system clock source.
__HAL_RCC_GET_SYSCLK_SOU
RCE
Description:
Macro to get the clock source used as system
clock.
Return value:
The: clock source used as system clock. The
returned value can be one of the following:
RCC_SYSCLKSOURCE_STATUS_HSI:
HSI used as system clock.
RCC_SYSCLKSOURCE_STATUS_HSE:
HSE used as system clock.
RCC_SYSCLKSOURCE_STATUS_PLLCL
K: PLL used as system clock.
__HAL_RCC_GET_PLL_OSCSOU
RCE
Description:
Macro to get the oscillator used as PLL clock
source.
Return value:
The: oscillator used as PLL clock source. The
returned value can be one of the following:
RCC_PLLSOURCE_HSI: HSI oscillator is
used as PLL clock source.