36 HAL_RCC_OSC_HSE = 16u,
37 HAL_RCC_OSC_PLL = 24u,
38 HAL_RCC_OSC_PLLI2S = 26u,
39 HAL_RCC_OSC_PLLSAI = 28u
52 HAL_RCC_HPRE_16 = 11u,
53 HAL_RCC_HPRE_64 = 12u,
54 HAL_RCC_HPRE_128 = 13u,
55 HAL_RCC_HPRE_256 = 14u,
56 HAL_RCC_HPRE_512 = 15u
113 __attribute__((deprecated(
"Please use XXX_ENABLE() or XXX_DISABLE().")));
void hal_rcc_setup_pll(hal_rcc_osc_t pll, hal_rcc_pll_init_t init)
Configures the different pll settings. Don't forget to enable the pll after configuration.
void hal_rcc_set_peripheral(hal_peripheral_t peripheral, hal_bool_t status) __attribute__((deprecated("Please use XXX_ENABLE() or XXX_DISABLE().")))
Enables/Disables the defined periphery.
Initialization structure for system clock configuration.
Definition: hal_rcc.h:91
void hal_rcc_setup_clock(hal_rcc_clk_init_t init)
Configure the system clocks.
hal_rcc_ppre_t
Defines available divider for the advanced peripheral buses.
Definition: hal_rcc.h:64
hal_peripheral_t
Defines a peripheral.
Definition: hal_common.h:58
hal_rcc_hpre_t
Defines available divider for the advanced high-performance bus.
Definition: hal_rcc.h:47
Common #defines and typedefs.
hal_rcc_osc_t
Defines the different oscillators of the SoC.
Definition: hal_rcc.h:34
hal_bool_t
Often used TRUE / FALSE type.
Definition: hal_common.h:31
hal_bool_t hal_rcc_set_osc(hal_rcc_osc_t osc, hal_bool_t status)
Enables the defined clock source. If a pll is choosen, make sure the configured source clock is up an...
void hal_rcc_reset(void)
Resets all involved registers.
Initialization structure for pll configuration.
Definition: hal_rcc.h:76