stm32h7xx-hal icon indicating copy to clipboard operation
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.

Open richardeoin opened this issue 6 years ago • 1 comments

richardeoin avatar Jul 17 '19 10:07 richardeoin

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).

richardeoin avatar Jul 17 '19 10:07 richardeoin