aboutsummaryrefslogtreecommitdiff
path: root/embassy-mspm0/src/macros.rs
blob: 3a12a528aac997eaff720b4a379e0ec1a88d16d1 (plain)
1
2
3
4
5
6
7
8
9
10
#![macro_use]

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