Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
Sleep Tests

Test sleep and wakeup APIs. More...

Functions

void test_sleep (void)
 Test sleep functionality. More...
 

Detailed Description

Test sleep and wakeup APIs.

This module tests the following sleep and wakeup scenarios:

  1. k_sleep() without cancellation
  2. k_sleep() cancelled via k_wakeup()
  3. k_sleep() cancelled via k_wakeup()
  4. k_sleep() cancelled via k_wakeup()
  5. k_sleep() - no cancellation exists

Function Documentation

◆ test_sleep()

void test_sleep ( void  )

#include <tests/kernel/sleep/src/main.c>

Test sleep functionality.

See also
k_sleep(), k_wakeup(), k_uptime_get_32()