pub fn new(mut syst: SYST, calibration: &SysTickCalibration) -> Self {
        syst.disable_interrupt();
        syst.set_clock_source(SystClkSource::Core);
        syst.set_reload(calibration.ticks_per_ms);
        syst.enable_counter();

        PollingSysTick {
            syst: UnsafeCell::new(syst),
            counter: UnsafeCell::default(),
        }
    }
/// Configures SysTick based on the values provided in the calibration.
Configures SysTick based on the values provided in the calibration.
Configures SysTick based on the values provided in the calibration .
pub fn new(mut syst: SYST, calibration: &SysTickCalibration) -> Self {
        syst.disable_interrupt();
        syst.set_clock_source(SystClkSource::Core);
        syst.set_reload(calibration.ticks_per_ms);
        syst.enable_counter();
        PollingSysTick {
            syst: UnsafeCell::new(syst),
            counter: UnsafeCell::default(),
        }
    }
pub fn new ( mut syst : SYST , calibration : & SysTickCalibration ) -> Self { syst . disable_interrupt ( ) ; syst . set_clock_source ( SystClkSource :: Core ) ; syst . set_reload ( calibration . ticks_per_ms ) ; syst . enable_counter ( ) ; PollingSysTick { syst : UnsafeCell :: new ( syst ) , counter : UnsafeCell :: default ( ) , } }
Configures SysTick based on the values provided in the calibration.
Configures SysTick based on the values provided in the calibration .
syst
SYST
calibration
&SysTickCalibration
syst
SYST
calibration
&SysTickCalibration