OS Timer¶
-
void
os_timer_arm_ticks
(os_timer_t *ptimer, uint32_t ticks, bool repeat_flag)¶ Set a software timer using the Timer2 tick value.
This function has been added to Sming for more efficient and flexible use of software timers. It can be used alongside the SDK
os_timer_arm_new()
function.- Parameters
ptimer
: Timer structureticks
: Tick count duration for the timerrepeat_flag
: true if timer will automatically repeat