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

Event Flags Functions Test Cases. More...

Functions

void TC_osEventFlagsNew_1 (void)
 Test case: TC_osEventFlagsNew_1. More...
 
void TC_osEventFlagsNew_2 (void)
 Test case: TC_osEventFlagsNew_2. More...
 
void TC_osEventFlagsNew_3 (void)
 Test case: TC_osEventFlagsNew_3. More...
 
void TC_osEventFlagsSet_1 (void)
 Test case: TC_osEventFlagsSet_1. More...
 
void TC_osEventFlagsClear_1 (void)
 Test case: TC_osEventFlagsClear_1. More...
 
void TC_osEventFlagsGet_1 (void)
 Test case: TC_osEventFlagsGet_1. More...
 
void TC_osEventFlagsWait_1 (void)
 Test case: TC_osEventFlagsWait_1. More...
 
void TC_osEventFlagsDelete_1 (void)
 Test case: TC_osEventFlagsDelete_1. More...
 
void TC_osEventFlagsGetName_1 (void)
 Test case: TC_osEventFlagsGetName_1. More...
 
void TC_EventFlagsInterThreads (void)
 Test case: TC_EventFlagsInterThreads. More...
 
void TC_EventFlagsWaitTimeout (void)
 Test case: TC_EventFlagsWaitTimeout. More...
 
void TC_EventFlagsDeleteWaiting (void)
 Test case: TC_EventFlagsDeleteWaiting. More...
 
void TC_EventFlagsCheckTimeout (void)
 Test case: TC_EventFlagsCheckTimeout. More...
 
void TC_EventFlagsAllocation (void)
 Test case: TC_EventFlagsAllocation. More...
 

Description

The test cases check the Event Flags functions.

Function Documentation

◆ TC_EventFlagsAllocation()

void TC_EventFlagsAllocation ( void  )
  • Test event flags object allocation

◆ TC_EventFlagsCheckTimeout()

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

◆ TC_EventFlagsDeleteWaiting()

void TC_EventFlagsDeleteWaiting ( void  )
  • Create a thread that waits for an event flag
  • Delete event flags object
  • Try to terminate thread

◆ TC_EventFlagsInterThreads()

void TC_EventFlagsInterThreads ( 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_EventFlagsWaitTimeout()

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

◆ TC_osEventFlagsClear_1()

void TC_osEventFlagsClear_1 ( void  )
  • Call osEventFlagsClear to clear all available flags in event flags object
  • Call osEventFlagsClear from ISR
  • Call osEventFlagsClear with null object

◆ TC_osEventFlagsDelete_1()

void TC_osEventFlagsDelete_1 ( void  )
  • Call osEventFlagsDelete to delete a event flags object
  • Call osEventFlagsDelete from ISR
  • Call osEventFlagsDelete with null object

◆ TC_osEventFlagsGet_1()

void TC_osEventFlagsGet_1 ( void  )
  • Call osEventFlagsGet to retrieve the flags in event flags object when all flags are cleared
  • Call osEventFlagsGet to retrieve the flags in event flags object when all flags are set
  • Call osEventFlagsGet from ISR
  • Call osEventFlagsGet with null object

◆ TC_osEventFlagsGetName_1()

void TC_osEventFlagsGetName_1 ( void  )
  • Call osEventFlagsGetName to retrieve a name of an unnamed event flags
  • Call osEventFlagsGetName to retrieve a name of a event flags with assigned name
  • Call osEventFlagsGetName from ISR
  • Call osEventFlagsGetName with null object

◆ TC_osEventFlagsNew_1()

void TC_osEventFlagsNew_1 ( void  )
  • Call osEventFlagsNew to create event flags object
  • Call osEventFlagsNew from ISR

◆ TC_osEventFlagsNew_2()

void TC_osEventFlagsNew_2 ( void  )
  • Call osEventFlagsNew to create event flags object and assign a name to it

◆ TC_osEventFlagsNew_3()

void TC_osEventFlagsNew_3 ( void  )
  • Call osEventFlagsNew to create event flags object by specifying memory for control block in attributes

◆ TC_osEventFlagsSet_1()

void TC_osEventFlagsSet_1 ( void  )
  • Call osEventFlagsSet to set all available flags in event flags object
  • Call osEventFlagsSet from ISR

◆ TC_osEventFlagsWait_1()

void TC_osEventFlagsWait_1 ( void  )
  • Call osEventFlagsWait without timeout to retrieve the event flags
  • Call osEventFlagsWait with timeout to retrieve the event flags
  • Call osEventFlagsWait from ISR with timeout
  • Call osEventFlagsWait from ISR without timeout
  • Call osEventFlagsWait with null object
  • Call osEventFlagsWait with the highest bit in flags set