CMSIS-RTOS2 Validation  Version 0.9.0-dev77
Validates RTOS2 API Implementation
Thread Flags Functions

Thread Flags Functions Test Cases. More...

Functions

void TC_ThreadFlagsMainThread (void)
 Test case: TC_ThreadFlagsMainThread. More...
 
void TC_ThreadFlagsChildThread (void)
 Test case: TC_ThreadFlagsChildThread. More...
 
void TC_ThreadFlagsChildToParent (void)
 Test case: TC_ThreadFlagsChildToParent. More...
 
void TC_ThreadFlagsChildToChild (void)
 Test case: TC_ThreadFlagsChildToChild. More...
 
void TC_ThreadFlagsWaitTimeout (void)
 Test case: TC_ThreadFlagsWaitTimeout. More...
 
void TC_ThreadFlagsCheckTimeout (void)
 Test case: TC_ThreadFlagsCheckTimeout. More...
 
void TC_ThreadFlagsParam (void)
 Test case: TC_ThreadFlagsParam. More...
 
void TC_ThreadFlagsInterrupts (void)
 Test case: TC_ThreadFlagsInterrupts. More...
 

Description

The test cases check the Thread Flags functions.

Function Documentation

◆ TC_ThreadFlagsCheckTimeout()

void TC_ThreadFlagsCheckTimeout ( void  )
  • Set time thresholds
  • Create wakeup thread to set a thread flag after 10 ticks
  • Wait for a thread flag with a defined timeout
  • Check if the thread flag is raised between the minimum and maximum thresholds
  • Wait for a thread flag with an infinite timeout
  • Check if the thread flag is raised between the minimum and maximum thresholds

◆ TC_ThreadFlagsChildThread()

void TC_ThreadFlagsChildThread ( void  )
  • Create a child thread Within child thread:
  • Verify that all flags are cleared
  • Set all thread flags
  • Verify that all thread flags are set
  • Clear all thread flags
  • Verify that all thread flags are cleared

◆ TC_ThreadFlagsChildToChild()

void TC_ThreadFlagsChildToChild ( void  )
  • Create two child threads Within child thread:
  • Verify that all flags are cleared
  • Set all thread flags
  • Verify that all thread flags are set
  • Clear all thread flags
  • Verify that all thread flags are cleared

◆ TC_ThreadFlagsChildToParent()

void TC_ThreadFlagsChildToParent ( void  )
  • Create signaling thread
  • Send signal to the signaling thread

◆ TC_ThreadFlagsInterrupts()

void TC_ThreadFlagsInterrupts ( void  )
  • Call all flag management functions from the ISR

◆ TC_ThreadFlagsMainThread()

void TC_ThreadFlagsMainThread ( void  )
  • Set all thread flags for the main thread
  • Clear all thread flags for the main thread

◆ TC_ThreadFlagsParam()

void TC_ThreadFlagsParam ( void  )
  • Test flag management functions with invalid parameters

◆ TC_ThreadFlagsWaitTimeout()

void TC_ThreadFlagsWaitTimeout ( void  )
  • Clear all flags for current thread
  • Wait for any single flag without timeout
  • Wait for any single flag with timeout
  • Wait for all flags without timeout
  • Wait for all flags with timeout
  • Wait for various flag masks from a signaling thread