Event Flags Functions Test Cases.
More...
The test cases check the Event Flags functions.
◆ 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