void systick_init(void) { systick_ms = 0; systick_set_frequency(1000, rcc_ppre2_frequency*2); systick_interrupt_enable(); systick_counter_enable(); }
void init_systick(void) { systick_set_frequency(HZ, 72000000); systick_interrupt_enable(); systick_counter_enable(); }
void stick_init(int32_t hz) { ticks = 0; systick_set_frequency(hz, rcc_ppre2_frequency*2); systick_interrupt_enable(); systick_counter_enable(); }
/** * initialise and start SysTick counter. This will trigger the * sys_tick_handler() periodically once interrupts have been enabled * by archFirstThreadRestore() */ static void systick_setup(void) { //systick_set_frequency(SYSTEM_TICKS_PER_SEC, 72000000); OLD :: MOD systick_set_frequency(SYSTEM_TICKS_PER_SEC, 24000000); systick_interrupt_enable(); systick_counter_enable(); }