Skip to content

Commit

Permalink
add cmu.hfperclken0
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobrosenthal committed Feb 1, 2019
1 parent d004c74 commit adea5bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cmu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,8 @@ impl I2C0Clk {
}
}


macro_rules! timerclk {
($TIMERnClk: ident, $timerN: ident) => {

pub struct $TIMERnClk {
_private: (),
}
Expand All @@ -87,7 +85,7 @@ macro_rules! timerclk {
}
}
}
}
};
}

timerclk!(TIMER0Clk, timer0);
Expand All @@ -106,6 +104,8 @@ impl GPIOClk {
let cmu = &*registers::CMU::ptr();
#[cfg(feature = "chip-efm32gg")]
cmu.hfperclken0.modify(|_, w| w.gpio().bit(true));
#[cfg(feature = "chip-efm32hg")]
cmu.hfperclken0.modify(|_, w| w.gpio().bit(true));
#[cfg(feature = "chip-efr32xg1")]
cmu.hfbusclken0.modify(|_, w| w.gpio().bit(true));
}
Expand Down

0 comments on commit adea5bd

Please sign in to comment.