/*---------------------------------------------------------------------------*/ void clock_init(void) { ticks = 0; seconds = 0; st_lib_hal_systick_clk_source_config(SYSTICK_CLKSOURCE_HCLK); st_lib_hal_systick_config(st_lib_hal_rcc_get_hclk_freq()/CLOCK_SECOND); }
/*---------------------------------------------------------------------------*/ void clock_init(void) { ticks = 0; st_lib_hal_systick_clk_source_config(SYSTICK_CLKSOURCE_HCLK); st_lib_hal_systick_config(RELOAD_VALUE); }