Add clocks for h7

This commit is contained in:
Ulf Lilleengen 2021-06-11 17:53:05 +02:00
parent 2c63393c9e
commit 0b52731897

View file

@ -12,6 +12,15 @@ mod pll;
use pll::pll_setup;
pub use pll::PllConfig;
// Clock type used by peripherals
#[derive(Clone, Copy)]
pub struct Clocks {
pub apb1: Hertz,
pub apb2: Hertz,
pub apb4: Hertz,
pub ahb2: Hertz,
}
const HSI: Hertz = Hertz(64_000_000);
const CSI: Hertz = Hertz(4_000_000);
const HSI48: Hertz = Hertz(48_000_000);