stm32/wl: add stub APB3 to get it to build.

Completely untested.
This commit is contained in:
Dario Nieuwenhuis
2021-08-19 22:51:41 +02:00
parent 637fcdd316
commit 9f51f9a170
4 changed files with 8 additions and 2 deletions

View File

@ -10,6 +10,8 @@ pub struct Clocks {
pub sys: Hertz,
pub apb1: Hertz,
pub apb2: Hertz,
#[cfg(rcc_wl5)]
pub apb3: Hertz,
pub apb1_tim: Hertz,
pub apb2_tim: Hertz,

View File

@ -190,6 +190,9 @@ impl RccExt for RCC {
}
};
// TODO: completely untested
let apb3_freq = ahb_freq;
Clocks {
sys: sys_clk.hz(),
ahb1: ahb_freq.hz(),
@ -197,6 +200,7 @@ impl RccExt for RCC {
ahb3: ahb_freq.hz(),
apb1: apb1_freq.hz(),
apb2: apb2_freq.hz(),
apb3: apb3_freq.hz(),
apb1_tim: apb1_tim_freq.hz(),
apb2_tim: apb2_tim_freq.hz(),
}