Function stm32wlxx_hal::util::new_delay
source · pub fn new_delay(syst: SYST, rcc: &RCC) -> Delay
Expand description
Create a new [cortex_m::delay::Delay
] from the current CPU systick
frequency.
Example
use stm32wlxx_hal::{pac, util::new_delay};
let dp = pac::Peripherals::take().unwrap();
let cp = pac::CorePeripherals::take().unwrap();
let delay = new_delay(cp.SYST, &dp.RCC);