Collaboration diagram for OS Timer API:

Functions

void os_timer_arm_ticks (os_timer_t *ptimer, uint32_t ticks, bool repeat_flag)
 Set a software timer using the Timer2 tick value. More...
 

Detailed Description

Function Documentation

◆ os_timer_arm_ticks()

void os_timer_arm_ticks ( os_timer_t *  ptimer,
uint32_t  ticks,
bool  repeat_flag 
)

Set a software timer using the Timer2 tick value.

Parameters
ptimerTimer structure
ticksTick count duration for the timer
repeat_flagtrue if timer will automatically repeat

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.