7.1.2.17 timeout_create

This function adds to the queue and starts the timer. If the timer was already active/running it will be replaced by this and the old (active) timer will be removed/cancelled first.

void timeout_create(
    timerStruct_t * timer,    uint32_t timeout
)

Parameters

*timer

Type: timerStruct_t *

- timer instance to be created and added to the list

timeout

Type: uint32_t

- number of timer ticks before this timer expires.

Returns

Type: void