kernel: timeout: z_add_timeout to return expiration tick
Add return value to z_add_timeout. It returns system tick when timeout will expire. Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
6d35969a55
commit
5f55fed4bb
3 changed files with 21 additions and 12 deletions
|
@ -325,8 +325,8 @@ ZTEST_USER(timer_api_error, test_timer_user_data_set_null)
|
|||
k_thread_join(tid, K_FOREVER);
|
||||
}
|
||||
|
||||
extern void z_add_timeout(struct _timeout *to, _timeout_func_t fn,
|
||||
k_timeout_t timeout);
|
||||
extern k_ticks_t z_add_timeout(struct _timeout *to, _timeout_func_t fn, k_timeout_t timeout);
|
||||
|
||||
static void test_timer_handle(struct _timeout *t)
|
||||
{
|
||||
/**do nothing here**/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue