Skip to content

Commit

Permalink
remove unused macro items
Browse files Browse the repository at this point in the history
  • Loading branch information
burrbull committed Nov 17, 2021
1 parent 78a09cb commit 1381122
Showing 1 changed file with 3 additions and 25 deletions.
28 changes: 3 additions & 25 deletions src/timer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -351,12 +351,7 @@ pub trait Instance:
}

macro_rules! timer {
($({
$TIMX:ident: (
$timXsw:ident,
$INTERRUPT:ident
),
},)+) => {
($($TIMX:ident,)+) => {
$(
impl CommonRegisterBlock for crate::pac::$TIMX {
#[inline]
Expand Down Expand Up @@ -416,21 +411,6 @@ macro_rules! timer {
}
)+
};

([ $($X:literal),+ ]) => {
paste::paste! {
timer! {
$(
{
[<TIM $X>]: (
[<tim $X sw>],
[<TIM $X _INTERRUPT_TYPES>]
),
},
)+
}
}
};
}

#[allow(unused)]
Expand Down Expand Up @@ -469,10 +449,9 @@ macro_rules! timer_var_clock {
timer_var_clock!(
$([<TIM $X>], [<tim $Y sw>]),+
);
timer! { $( [<TIM $X>], )+ }

}

timer!([$($X),+]);
};
($($X:literal),+) => {
timer_var_clock!($(($X: $X)),+);
Expand All @@ -496,9 +475,8 @@ macro_rules! timer_static_clock {
timer_static_clock!(
$([<TIM $X>]),+
);
timer! { $( [<TIM $X>], )+ }
}

timer!([$($X),+]);
};
}

Expand Down

0 comments on commit 1381122

Please sign in to comment.