Adjust for STM32U5.
This commit is contained in:
@ -24,19 +24,19 @@ pub struct Clocks {
|
||||
#[cfg(not(rcc_g0))]
|
||||
pub apb2_tim: Hertz,
|
||||
|
||||
#[cfg(rcc_wl5)]
|
||||
#[cfg(any(rcc_wl5, rcc_u5))]
|
||||
pub apb3: Hertz,
|
||||
|
||||
#[cfg(any(rcc_l0, rcc_l1, rcc_f0, rcc_f1, rcc_f0x0, rcc_g0))]
|
||||
pub ahb: Hertz,
|
||||
|
||||
#[cfg(any(rcc_l4, rcc_f4, rcc_f7, rcc_h7, rcc_wb, rcc_wl5))]
|
||||
#[cfg(any(rcc_l4, rcc_f4, rcc_f7, rcc_h7, rcc_u5, rcc_wb, rcc_wl5))]
|
||||
pub ahb1: Hertz,
|
||||
|
||||
#[cfg(any(rcc_l4, rcc_f4, rcc_f7, rcc_h7, rcc_wb, rcc_wl5))]
|
||||
#[cfg(any(rcc_l4, rcc_f4, rcc_f7, rcc_h7, rcc_u5, rcc_wb, rcc_wl5))]
|
||||
pub ahb2: Hertz,
|
||||
|
||||
#[cfg(any(rcc_l4, rcc_f4, rcc_f7, rcc_h7, rcc_wb, rcc_wl5))]
|
||||
#[cfg(any(rcc_l4, rcc_f4, rcc_f7, rcc_h7, rcc_u5, rcc_wb, rcc_wl5))]
|
||||
pub ahb3: Hertz,
|
||||
|
||||
#[cfg(any(rcc_h7))]
|
||||
@ -100,6 +100,9 @@ cfg_if::cfg_if! {
|
||||
} else if #[cfg(any(rcc_g0))] {
|
||||
mod g0;
|
||||
pub use g0::*;
|
||||
} else if #[cfg(any(rcc_u5))] {
|
||||
mod u5;
|
||||
pub use u5::*;
|
||||
}
|
||||
}
|
||||
|
||||
|
15
embassy-stm32/src/rcc/u5/mod.rs
Normal file
15
embassy-stm32/src/rcc/u5/mod.rs
Normal file
@ -0,0 +1,15 @@
|
||||
pub struct Config {}
|
||||
|
||||
impl Config {
|
||||
pub fn new() -> Self {
|
||||
Config {}
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for Config {
|
||||
fn default() -> Self {
|
||||
Config::new()
|
||||
}
|
||||
}
|
||||
|
||||
pub unsafe fn init(config: Config) {}
|
Reference in New Issue
Block a user