pub fn new(wwdg: WWDG, ccdr: &Ccdr) -> Self {
        // enable the peripheral inside the APB3
        #[cfg(not(feature = "rm0455"))]
        ccdr.rb.apb3enr.modify(|_, w| w.wwdg1en().set_bit());
        #[cfg(feature = "rm0455")]
        ccdr.rb.apb3enr.modify(|_, w| w.wwdgen().set_bit());

        SystemWindowWatchdog {
            wwdg,
            down_counter: 0,
            pclk3_frequency: ccdr.clocks.pclk3(),
        }
    }
/// Returns a System Window Watchdog object with down_counter intialized to zero
/// to indicate the clock has not been used yet
Returns a System Window Watchdog object with down_counter intialized to zero
to indicate the clock has not been used yet
Returns a System Window Watchdog object with down_counter intialized to zero to indicate the clock has not been used yet
pub fn new(wwdg: WWDG, ccdr: &Ccdr) -> Self {
        // enable the peripheral inside the APB3
        #[cfg(not(feature = "rm0455"))]
        ccdr.rb.apb3enr.modify(|_, w| w.wwdg1en().set_bit());
        #[cfg(feature = "rm0455")]
        ccdr.rb.apb3enr.modify(|_, w| w.wwdgen().set_bit());
        SystemWindowWatchdog {
            wwdg,
            down_counter: 0,
            pclk3_frequency: ccdr.clocks.pclk3(),
        }
    }
pub fn new ( wwdg : WWDG , ccdr : & Ccdr ) -> Self { // enable the peripheral inside the APB3 # [ cfg ( not ( feature " " ) ) ] ccdr . rb . apb3enr . modify ( | _ , w | w . wwdg1en ( ) . set_bit ( ) ) ; # [ cfg ( feature " " ) ] ccdr . rb . apb3enr . modify ( | _ , w | w . wwdgen ( ) . set_bit ( ) ) ; SystemWindowWatchdog { wwdg , down_counter : 0 , pclk3_frequency : ccdr . clocks . pclk3 ( ) , } }
Returns a System Window Watchdog object with down_counter intialized to zero
to indicate the clock has not been used yet
Returns a System Window Watchdog object with down_counter intialized to zero to indicate the clock has not been used yet
wwdg
WWDG
ccdr
&Ccdr
wwdg
WWDG
ccdr
&Ccdr