Add support for generating PAC for dual cores

* Chips that have multiple cores will be exposed as chipname_corename,
  i.e. stm32wl55jc_cm4
* Chips that have single cores will use the chip family as feature name
  and pick the first and only core from the list
* Add support for stm32wl55 chip family
This commit is contained in:
Ulf Lilleengen
2021-06-16 15:12:07 +02:00
parent c9bf039cae
commit b6a8703698
12 changed files with 463 additions and 90 deletions

View File

@ -16,13 +16,13 @@ pub struct Clocks {
#[cfg(any(rcc_l0))]
pub ahb: Hertz,
#[cfg(any(rcc_l4, rcc_f4, rcc_h7, rcc_wb55))]
#[cfg(any(rcc_l4, rcc_f4, rcc_h7, rcc_wb55, rcc_wl55))]
pub ahb1: Hertz,
#[cfg(any(rcc_l4, rcc_f4, rcc_h7, rcc_wb55))]
#[cfg(any(rcc_l4, rcc_f4, rcc_h7, rcc_wb55, rcc_wl55))]
pub ahb2: Hertz,
#[cfg(any(rcc_l4, rcc_f4, rcc_h7, rcc_wb55))]
#[cfg(any(rcc_l4, rcc_f4, rcc_h7, rcc_wb55, rcc_wl55))]
pub ahb3: Hertz,
#[cfg(any(rcc_h7))]
@ -62,6 +62,9 @@ cfg_if::cfg_if! {
} else if #[cfg(rcc_wb55)] {
mod wb55;
pub use wb55::*;
} else if #[cfg(rcc_wl55)] {
mod wl55;
pub use wl55::*;
}
}