test: kenrel: group sleep tests
Group test using doxygen. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
39b1312392
commit
a816bfdfec
1 changed files with 12 additions and 23 deletions
|
@ -4,25 +4,7 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
|
||||||
* @file
|
|
||||||
* @brief Test early sleep functionality
|
|
||||||
*
|
|
||||||
* @defgroup kernel_earlysleep_tests Early Sleep Tests
|
|
||||||
*
|
|
||||||
* @ingroup all_tests
|
|
||||||
*
|
|
||||||
* This test verifies that k_sleep() can be used to put the calling thread to
|
|
||||||
* sleep for a specified number of ticks during system initialization. In this
|
|
||||||
* test we are calling k_sleep() at POST_KERNEL and APPLICATION level
|
|
||||||
* initialization sequence.
|
|
||||||
*
|
|
||||||
* Note: We can not call k_sleep() during PRE_KERNEL1 or PRE_KERNEL2 level
|
|
||||||
* because the core kernel objects and devices initialization happens at these
|
|
||||||
* levels.
|
|
||||||
* @{
|
|
||||||
* @}
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <zephyr/init.h>
|
#include <zephyr/init.h>
|
||||||
#include <zephyr/arch/cpu.h>
|
#include <zephyr/arch/cpu.h>
|
||||||
|
@ -82,12 +64,19 @@ static int test_early_sleep_app(void)
|
||||||
|
|
||||||
SYS_INIT(test_early_sleep_app, APPLICATION, CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
|
SYS_INIT(test_early_sleep_app, APPLICATION, CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* @brief Test early sleep
|
* @brief Test early sleep functionality
|
||||||
*
|
*
|
||||||
* @ingroup kernel_earlysleep_tests
|
* @ingroup kernel_sleep_tests
|
||||||
*
|
*
|
||||||
* @see k_sleep()
|
* This test verifies that k_sleep() can be used to put the calling thread to
|
||||||
|
* sleep for a specified number of ticks during system initialization. In this
|
||||||
|
* test we are calling k_sleep() at POST_KERNEL and APPLICATION level
|
||||||
|
* initialization sequence.
|
||||||
|
*
|
||||||
|
* Note: We can not call k_sleep() during PRE_KERNEL1 or PRE_KERNEL2 level
|
||||||
|
* because the core kernel objects and devices initialization happens at these
|
||||||
|
* levels.
|
||||||
*/
|
*/
|
||||||
ZTEST(earlysleep, test_early_sleep)
|
ZTEST(earlysleep, test_early_sleep)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue