mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-22 06:55:22 +00:00
The 'test_sleep' nanokernel project tests the following functionality: 1. Normal expiration of fiber_sleep() 2. Waking a sleeping fiber via fiber_fiber_wakeup() 3. Waking a sleeping fiber via isr_fiber_wakeup() 4. Waking a sleeping fiber via task_fiber_wakeup() 5. Normal expiration of task_sleep() Change-Id: Ie51997ace9a4413f62d77daacd6dff97b6b3a4dd Signed-off-by: Peter Mitsis <peter.mitsis@windriver.com>
46 lines
1.4 KiB
Plaintext
46 lines
1.4 KiB
Plaintext
Title: Nanokernel Sleep and Wakeup APIs
|
|
|
|
Description:
|
|
|
|
This test verifies that the nanokernel sleep and wakeup APIs operate as
|
|
expected.
|
|
|
|
---------------------------------------------------------------------------
|
|
|
|
Building and Running Project:
|
|
|
|
This nanokernel project outputs to the console. It can be built and executed
|
|
on QEMU as follows:
|
|
|
|
make qemu
|
|
|
|
---------------------------------------------------------------------------
|
|
|
|
Troubleshooting:
|
|
|
|
Problems caused by out-dated project information can be addressed by
|
|
issuing one of the following commands then rebuilding the project:
|
|
|
|
make clean # discard results of previous builds
|
|
# but keep existing configuration info
|
|
or
|
|
make pristine # discard results of previous builds
|
|
# and restore pre-defined configuration info
|
|
|
|
---------------------------------------------------------------------------
|
|
|
|
Sample Output:
|
|
|
|
tc_start() - Test Nanokernel Sleep and Wakeup APIs
|
|
|
|
Nanokernel objects initialized
|
|
Test fiber started: id = 0x001030b8
|
|
Helper fiber started: id = 0x001028e8
|
|
Testing normal expiration of fiber_sleep()
|
|
Testing fiber_sleep() + fiber_fiber_wakeup()
|
|
Testing fiber_sleep() + isr_fiber_wakeup()
|
|
Testing fiber_sleep() + task_fiber_wakeup()
|
|
Testing nanokernel task_sleep()
|
|
===================================================================
|
|
PROJECT EXECUTION SUCCESSFUL
|