CMSIS-RTOS Validation  Version 1.0
RTOS Validation
 All Data Structures Files Functions Variables Macros Groups Pages
Message Queue Functions

Message Queue Functions Test Cases. More...

Functions

void TC_MsgQBasic (void)
 Test case: TC_MsgQBasic. More...
 
void TC_MsgQWait (void)
 Test case: TC_MsgQWait. More...
 
void TC_MsgQCheckTimeout (void)
 Test case: TC_MsgQCheckTimeout. More...
 
void TC_MsgQParam (void)
 Test case: TC_MsgQParam. More...
 
void TC_MsgQInterrupts (void)
 Test case: TC_MsgQInterrupts. More...
 
void TC_MsgFromThreadToISR (void)
 Test case: TC_MsgFromThreadToISR. More...
 
void TC_MsgFromISRToThread (void)
 Test case: TC_MsgFromISRToThread. More...
 

Description

The test cases check the osMessage* functions.

Function Documentation

void TC_MsgFromISRToThread ( void  )
  • Periodically put messages into queue from the ISR
  • Pool for messages in a thread
  • Get and verify these messages
void TC_MsgFromThreadToISR ( void  )
  • Continuously put messages into queue from a thread
  • Periodically trigger ISR, then get and verify message in it
void TC_MsgQBasic ( void  )
  • Fill message queue with messages
  • Get all messages from queue
  • Check if messages are correct
void TC_MsgQCheckTimeout ( void  )
  • Set time thresholds
  • Create wakeup thread to put a message after 10 ticks
  • Wait for a message with a defined timeout
  • Check if the message is obtained between the minimum and maximum thresholds
  • Wait for a message with an infinite timeout
  • Check if the message is obtained between the minimum and maximum thresholds
void TC_MsgQInterrupts ( void  )
  • Call all message queue management functions from the ISR
void TC_MsgQParam ( void  )
  • Test message queue management functions with invalid parameters
void TC_MsgQWait ( void  )
  • Reset global counter
  • Create a thread that increments a counter and waits for message
  • Verify if counter incremented
  • Send message to the waiting thread
  • Verify if counter incremented
  • Verify if message received