diff --git a/src/rcc.rs b/src/rcc.rs index baa136fb..73e9cc6d 100644 --- a/src/rcc.rs +++ b/src/rcc.rs @@ -80,6 +80,16 @@ impl APB1 { } } + +impl APB1 { + /// Set power interface clock (PWREN) bit in RCC_APB1ENR + pub fn set_pwren(&mut self) { + self.enr().modify(|_r, w| { + w.pwren().set_bit() + }) + } +} + /// Advanced Peripheral Bus 2 (APB2) registers pub struct APB2 { _0: (),