osTimerNew() function
Create and Initialize a timer.
Arguments
func
function pointer to callback function.
type
osTimerOnce for one-shot or osTimerPeriodic for periodic behavior.
argument
argument to the timer callback function.
attr
timer attributes; NULL: default values.
Return value
timer ID for reference by other functions or NULL in case of error.
osTimerNew() calls 1 function:
![]()
osTimerNew()
osTimerNew() reads 4 variables:
![]()
osTimerNew()