mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-09-28 21:01:06 +00:00
10 lines
186 B
Rust
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())
|
|
}};
|
|
}
|