2025-03-29 00:21:29 -05:00

10 lines
186 B
Rust

#![macro_use]
macro_rules! new_pin {
($name: ident, $pf_type: expr) => {{
let pin = $name;
pin.set_as_pf(pin.pf_num(), $pf_type);
Some(pin.into())
}};
}