diff options
author | Allan Stephens <allan.stephens@windriver.com> | 2016-10-12 12:39:42 -0500 |
---|---|---|
committer | Benjamin Walsh <benjamin.walsh@windriver.com> | 2016-10-19 18:14:58 +0000 |
commit | 45bfa37f975f3b82c5cebe3c8843db809f96db2f (patch) | |
tree | e37e4dbad16ecd62e4282d3c4f135278df24feec /tests | |
parent | bf684a10bae66a2bf6b1c719ccbd492ea85411f8 (diff) |
unified: Revise timer code to conform to new API specification
Provides users with a more compact and intuitive API for kernel
timers.
Provides legacy support for microkernel timers and nanokernel
timers by building on the new kernel timer infrastructure.
Each timer type requires only a small amount of additional
wrapper code, as well as the addition of a single pointer
field to the underlying timer structure, all of which will be
easily removed when support for the legacy APIs is discontinued.
Change-Id: I282dfaf1ed08681703baabf21e4dbc3516ee7463
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/kernel/test_timer/microkernel/src/timer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/kernel/test_timer/microkernel/src/timer.c b/tests/kernel/test_timer/microkernel/src/timer.c index 8a43ebde6..e9a2a5526 100644 --- a/tests/kernel/test_timer/microkernel/src/timer.c +++ b/tests/kernel/test_timer/microkernel/src/timer.c @@ -32,8 +32,8 @@ This module tests the following microkernel timer routines: #include "fifo_timeout.c" #ifdef CONFIG_KERNEL_V2 -extern bool _k_timer_pool_is_empty(void); /* For white box testing only */ -#define timer_pool_is_empty _k_timer_pool_is_empty +extern bool _timer_pool_is_empty(void); /* For white box testing only */ +#define timer_pool_is_empty _timer_pool_is_empty #else extern struct nano_lifo _k_timer_free; /* For white box testing only */ static inline bool timer_pool_is_empty(void) |