1Title: cooperative thread Sleep and Wakeup APIs 2 3Description: 4 5This test verifies that cooperative sleep and wakeup APIs operate as 6expected. 7 8--------------------------------------------------------------------------- 9 10Building and Running Project: 11 12This project outputs to the console. It can be built and executed 13on QEMU as follows: 14 15 make run 16 17--------------------------------------------------------------------------- 18 19Troubleshooting: 20 21Problems caused by out-dated project information can be addressed by 22issuing one of the following commands then rebuilding the project: 23 24 make clean # discard results of previous builds 25 # but keep existing configuration info 26or 27 make pristine # discard results of previous builds 28 # and restore pre-defined configuration info 29 30--------------------------------------------------------------------------- 31 32Sample Output: 33 34Running test suite sleep 35=================================================================== 36starting test - test_sleep 37Kernel objects initialized 38Test thread started: id = 0x00400040 39Helper thread started: id = 0x00400000 40Testing normal expiration of k_sleep() 41Testing: test thread sleep + helper thread wakeup test 42Testing: test thread sleep + isr offload wakeup test 43Testing: test thread sleep + main wakeup test thread 44Testing kernel k_sleep() 45PASS - test_sleep 46=================================================================== 47starting test - test_usleep 48elapsed_ms = 1000 49PASS - test_usleep 50=================================================================== 51Test suite sleep succeeded 52=================================================================== 53PROJECT EXECUTION SUCCESSFUL 54