File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ const char* HardwareTimer::purpose() const
48
48
return model ();
49
49
}
50
50
51
- void HardwareTimer::change_function (Function<void (const RegisterState&)> callback)
51
+ void HardwareTimer::set_callback (Function<void (const RegisterState&)> callback)
52
52
{
53
53
disable_irq ();
54
54
m_callback = move (callback);
Original file line number Diff line number Diff line change @@ -48,7 +48,8 @@ class HardwareTimer
48
48
virtual const char * model () const = 0;
49
49
virtual const char * purpose () const override ;
50
50
51
- virtual void change_function (Function<void (const RegisterState&)>);
51
+ void set_callback (Function<void (const RegisterState&)>);
52
+
52
53
virtual size_t ticks_per_second () const = 0;
53
54
54
55
virtual bool is_periodic () const = 0;
Original file line number Diff line number Diff line change @@ -190,10 +190,10 @@ bool TimeManagement::probe_and_set_non_legacy_hardware_timers()
190
190
}
191
191
}
192
192
193
- m_system_timer->change_function (Scheduler::timer_tick);
193
+ m_system_timer->set_callback (Scheduler::timer_tick);
194
194
dbg () << " Reset timers" ;
195
195
m_system_timer->try_to_set_frequency (m_system_timer->calculate_nearest_possible_frequency (1024 ));
196
- m_time_keeper_timer->change_function (TimeManagement::update_time);
196
+ m_time_keeper_timer->set_callback (TimeManagement::update_time);
197
197
m_time_keeper_timer->try_to_set_frequency (OPTIMAL_TICKS_PER_SECOND_RATE);
198
198
199
199
return true ;
You can’t perform that action at this time.
0 commit comments