zephyr/samples/nanokernel/test/test_timer/src
Javier B Perez Hernandez f7fffae8aa Change BSD-3 licenses to Apache 2
Change all the Intel and Wind River code license from BSD-3 to Apache 2.

Change-Id: Id8be2c1c161a06ea8a0b9f38e17660e11dbb384b
Signed-off-by: Javier B Perez Hernandez <javier.b.perez.hernandez@linux.intel.com>
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
2016-02-05 20:24:29 -05:00
..
Makefile Use ccflags-y and asflags-y instead of EXTRA_CFLAGS 2016-02-05 20:14:14 -05:00
README test_timer: remove lingering mentions of 'node' in API names 2016-02-05 20:15:36 -05:00
timer.c Change BSD-3 licenses to Apache 2 2016-02-05 20:24:29 -05:00

Starting a timer
 Case 1: Add to an empty timer list
 Case 2: Add to the end of the timer list (big tick value)
 Case 3: Add to the start of the timer list (small tick value)
 Case 4: Add to the middle of the timer list (medium tick value)

Stopping a timer
 No point to stop a non-existent timer
 Case 1: Stop one at the head of the list (nothing waiting on it)
 Case 2: Stop one at the end of the list (nothing waiting on it)
 Case 3: Stop one in the middle of the list (nothing waiting on it)
 Case 4: Stop the last in the list (nothing waiting on it)
 Case 5: Stop a timer that had a fiber waiting on it

Timer Expiry
 Case 1: Timer has expired
 Case 2: Timer has not expired
 Case 3: Wait for a timer to expire

Expired timers can use the nano_tick_get_32() and nano_tick_delta() routines
to check the results against the timer routines.

This test set does not yet test/verify nano_cycle_get_32()--that must still be
done.

APIs tested in this test set
============================

nano_timer_init   (implicitly done--called as part of platform init)
nano_fiber_timer_start
nano_task_timer_start
nano_fiber_timer_stop
nano_task_timer_stop
nano_fiber_timer_test
nano_fiber_timer_wait
nano_task_timer_test
nano_task_timer_wait

--------------------------------
nanoTimeInit (implicitly done)
nano_tick_get_32
nano_tick_delta