use cortex_m::peripheral::syst::SystClkSource;
pub fn sys_tick_config() {
let p = cortex_m::Peripherals::take().unwrap();
let mut syst = p.SYST;
syst.set_clock_source(SystClkSource::Core);
syst.set_reload(4_000_000);
syst.clear_current();
syst.enable_counter();
syst.enable_interrupt();
}