stm32h7xx-hal
stm32h7xx-hal copied to clipboard
Trait `GetClk` would benefit from being and is generic enough to be moved into embedded-hal. Together with the Ccdr construction.
The GetClk abstraction is generic enough to be moved into embedded-hal. But note embedded-hal asks for "two implementations of the trait(s) for different platforms", whilst the H7 crate is unique in using the kernel_clk multiplexer settings to determine the peripheral source clock at peripheral initialisation time.
We still have some way to go: An initialised peripheral should own its kernel_clk multiplexer so it can control if it is switched on the fly (and update registers if it is).