stm32: add opamp mod and update pac

This commit is contained in:
xoviat
2023-10-03 16:34:13 -05:00
parent b012a67df7
commit e561e673c2
5 changed files with 210 additions and 2 deletions

View File

@ -810,6 +810,20 @@ fn main() {
}
}
if regs.kind == "opamp" {
if !pin.signal.starts_with("VP") {
continue;
}
let peri = format_ident!("{}", p.name);
let pin_name = format_ident!("{}", pin.pin);
let ch: u8 = pin.signal.strip_prefix("VP").unwrap().parse().unwrap();
g.extend(quote! {
impl_opamp_pin!( #peri, #pin_name, #ch);
})
}
// DAC is special
if regs.kind == "dac" {
let peri = format_ident!("{}", p.name);