pub fn new(mut systick: SYST, sysclk: u32) -> Self {
            systick.disable_counter();

            Systick {
                systick,
                cnt: 0,
                reload: (sysclk + TIMER_HZ / 2) / TIMER_HZ - 1,
            }
        }
/// Provide a new `Monotonic` based on SysTick.
///
/// Note that the `sysclk` parameter should come from e.g. the HAL's clock generation function
/// so the real speed and the declared speed can be compared.
Provide a new `Monotonic` based on SysTick.
Note that the `sysclk` parameter should come from e.g. the HAL's clock generation function
so the real speed and the declared speed can be compared.
Provide a new ` Monotonic ` based on SysTick . Note that the ` sysclk ` parameter should come from e . g . the HAL ' s clock generation function so the real speed and the declared speed can be compared .
pub fn new(mut systick: SYST, sysclk: u32) -> Self {
            systick.disable_counter();
            Systick {
                systick,
                cnt: 0,
                reload: (sysclk + TIMER_HZ / 2) / TIMER_HZ - 1,
            }
        }
pub fn new ( mut systick : SYST , sysclk : u32 ) -> Self { systick . disable_counter ( ) ; Systick { systick , cnt : 0 , reload : ( sysclk + TIMER_HZ / 2 ) / TIMER_HZ - 1 , } }
Provide a new `Monotonic` based on SysTick.
Provide a new ` Monotonic ` based on SysTick .
systick
SYST
sysclk
u32