stm32/wl: add stub APB3 to get it to build.
Completely untested.
This commit is contained in:
parent
637fcdd316
commit
9f51f9a170
@ -10,6 +10,8 @@ pub struct Clocks {
|
|||||||
pub sys: Hertz,
|
pub sys: Hertz,
|
||||||
pub apb1: Hertz,
|
pub apb1: Hertz,
|
||||||
pub apb2: Hertz,
|
pub apb2: Hertz,
|
||||||
|
#[cfg(rcc_wl5)]
|
||||||
|
pub apb3: Hertz,
|
||||||
|
|
||||||
pub apb1_tim: Hertz,
|
pub apb1_tim: Hertz,
|
||||||
pub apb2_tim: Hertz,
|
pub apb2_tim: Hertz,
|
||||||
|
@ -190,6 +190,9 @@ impl RccExt for RCC {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// TODO: completely untested
|
||||||
|
let apb3_freq = ahb_freq;
|
||||||
|
|
||||||
Clocks {
|
Clocks {
|
||||||
sys: sys_clk.hz(),
|
sys: sys_clk.hz(),
|
||||||
ahb1: ahb_freq.hz(),
|
ahb1: ahb_freq.hz(),
|
||||||
@ -197,6 +200,7 @@ impl RccExt for RCC {
|
|||||||
ahb3: ahb_freq.hz(),
|
ahb3: ahb_freq.hz(),
|
||||||
apb1: apb1_freq.hz(),
|
apb1: apb1_freq.hz(),
|
||||||
apb2: apb2_freq.hz(),
|
apb2: apb2_freq.hz(),
|
||||||
|
apb3: apb3_freq.hz(),
|
||||||
apb1_tim: apb1_tim_freq.hz(),
|
apb1_tim: apb1_tim_freq.hz(),
|
||||||
apb2_tim: apb2_tim_freq.hz(),
|
apb2_tim: apb2_tim_freq.hz(),
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,7 @@ defmt = "0.2.0"
|
|||||||
defmt-rtt = "0.2.0"
|
defmt-rtt = "0.2.0"
|
||||||
|
|
||||||
cortex-m = "0.7.1"
|
cortex-m = "0.7.1"
|
||||||
cortex-m-rt = "0.6.14"
|
cortex-m-rt = "0.7.0"
|
||||||
embedded-hal = { version = "0.2.4" }
|
embedded-hal = { version = "0.2.4" }
|
||||||
panic-probe = { version = "0.2.0", features= ["print-defmt"] }
|
panic-probe = { version = "0.2.0", features= ["print-defmt"] }
|
||||||
futures = { version = "0.3.8", default-features = false, features = ["async-await"] }
|
futures = { version = "0.3.8", default-features = false, features = ["async-await"] }
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit f56c24e9995fd7ff1182d936073f1fd4fde32832
|
Subproject commit d3c03a41de925d07e26a5f6157eb85307692a651
|
Loading…
Reference in New Issue
Block a user