stm32g4:rcc: add uart peripheral clock source helpers

Required so that the common uart infrastructure can be updated. This was
the last family to receive this implementation.

Signed-off-by: Karl Palsson <karlp@tweak.au>
This commit is contained in:
Karl Palsson
2023-02-03 00:02:02 +00:00
parent e9426db222
commit e643f66342
2 changed files with 40 additions and 0 deletions

View File

@@ -1032,6 +1032,11 @@ uint32_t rcc_system_clock_source(void);
void rcc_clock_setup_pll(const struct rcc_clock_scale *clock);
void __attribute__((deprecated("Use rcc_clock_setup_pll as direct replacement"))) rcc_clock_setup_hse_3v3(const struct rcc_clock_scale *clock);
void rcc_set_clock48_source(uint32_t clksel);
/**
* Get the peripheral clock speed for the specified (LP)UxART
* @param usart Base address of USART to get clock frequency for.
*/
uint32_t rcc_get_usart_clk_freq(uint32_t usart);
END_DECLS