timer_add_task

Add timer task.

int32_t timer_add_task(
    struct timer_descriptor *const descr,
    struct timer_task *const task
)

This function adds the given timer task to the given timer. It checks if the given hardware is initialized.

Parameters

descr

Type: struct timer_descriptor Struct *const

The timer descriptor of a timer to add task to

task

Type: struct timer_task Struct *const

A task to add

Returns

Type: int32_t

Timer's task adding status.