CMSIS-RTOS2 Validation  Version 0.9.0-dev77
Validates RTOS2 API Implementation
Memory Pool Functions

Memory Pool Functions Test Cases. More...

Functions

void TC_osMemoryPoolNew_1 (void)
 Test case: TC_osMemoryPoolNew_1. More...
 
void TC_osMemoryPoolNew_2 (void)
 Test case: TC_osMemoryPoolNew_2. More...
 
void TC_osMemoryPoolNew_3 (void)
 Test case: TC_osMemoryPoolNew_3. More...
 
void TC_osMemoryPoolGetName_1 (void)
 Test case: TC_osMemoryPoolGetName_1. More...
 
void TC_osMemoryPoolAlloc_1 (void)
 Test case: TC_osMemoryPoolAlloc_1. More...
 
void TC_osMemoryPoolFree_1 (void)
 Test case: TC_osMemoryPoolFree_1. More...
 
void TC_osMemoryPoolGetCapacity_1 (void)
 Test case: TC_osMemoryPoolGetCapacity_1. More...
 
void TC_osMemoryPoolGetBlockSize_1 (void)
 Test case: TC_osMemoryPoolGetBlockSize_1. More...
 
void TC_osMemoryPoolGetCount_1 (void)
 Test case: TC_osMemoryPoolGetCount_1. More...
 
void TC_osMemoryPoolGetSpace_1 (void)
 Test case: TC_osMemoryPoolGetSpace_1. More...
 
void TC_osMemoryPoolDelete_1 (void)
 Test case: TC_osMemoryPoolDelete_1. More...
 
void TC_MemPoolAllocAndFree (void)
 Test case: TC_MemPoolAllocAndFree. More...
 
void TC_MemPoolAllocAndFreeComb (void)
 Test case: TC_MemPoolAllocAndFreeComb. More...
 
void TC_MemPoolZeroInit (void)
 Test case: TC_MemPoolZeroInit. More...
 
void TC_MemPoolAllocation (void)
 Test case: TC_MemPoolAllocation. More...
 

Description

The test cases check the osPool* functions.

Function Documentation

◆ TC_MemPoolAllocAndFree()

void TC_MemPoolAllocAndFree ( void  )
  • Allocate all memory blocks
  • Verify that only available blocks can be allocated
  • Return all memory blocks back to a memory pool

◆ TC_MemPoolAllocAndFreeComb()

void TC_MemPoolAllocAndFreeComb ( void  )
  • Allocate all memory blocks
  • Verify that only available blocks can be allocated
  • Return all memory blocks back to a memory pool

◆ TC_MemPoolAllocation()

void TC_MemPoolAllocation ( void  )
  • Test memory pool object allocation

◆ TC_MemPoolZeroInit()

void TC_MemPoolZeroInit ( void  )
  • Allocate all memory blocks and fill them with pattern
  • Return all blocks to a memory pool
  • Allocate all memory blocks with osPoolCAlloc
  • Check if memory was zero initialized
  • Return all blocks to a memory pool

◆ TC_osMemoryPoolAlloc_1()

void TC_osMemoryPoolAlloc_1 ( void  )
  • Call osMemoryPoolAlloc to allocate a memory block from the memory pool
  • Call osMemoryPoolAlloc from ISR with timeout == 0
  • Call osMemoryPoolAlloc from ISR with timeout != 0
  • Call osMemoryPoolAlloc with null object

◆ TC_osMemoryPoolDelete_1()

void TC_osMemoryPoolDelete_1 ( void  )
  • Call osMemoryPoolDelete to delete a memory pool
  • Call osMemoryPoolDelete from ISR
  • Call osMemoryPoolDelete with null object

◆ TC_osMemoryPoolFree_1()

void TC_osMemoryPoolFree_1 ( void  )
  • Call osMemoryPoolFree to free a memory block from the memory pool
  • Call osMemoryPoolFree from ISR
  • Call osMemoryPoolFree with null object
  • Call osMemoryPoolFree from ISR with null object
  • Call osMemoryPoolFree from ISR with null block pointer

◆ TC_osMemoryPoolGetBlockSize_1()

void TC_osMemoryPoolGetBlockSize_1 ( void  )
  • Call osMemoryPoolGetBlockSize to retrieve the memory block size
  • Call osMemoryPoolGetBlockSize from ISR
  • Call osMemoryPoolGetBlockSize from ISR with null object
  • Call osMemoryPoolGetBlockSize with null object

◆ TC_osMemoryPoolGetCapacity_1()

void TC_osMemoryPoolGetCapacity_1 ( void  )
  • Call osMemoryPoolGetCapacity to retrieve the maximum number of available memory blocks
  • Call osMemoryPoolGetCapacity from ISR
  • Call osMemoryPoolGetCapacity from ISR with null object
  • Call osMemoryPoolGetCapacity with null object

◆ TC_osMemoryPoolGetCount_1()

void TC_osMemoryPoolGetCount_1 ( void  )
  • Call osMemoryPoolGetCount to retrieve the number of memory blocks used
  • Call osMemoryPoolGetCount from ISR
  • Call osMemoryPoolGetCount from ISR with null object
  • Call osMemoryPoolGetCount with null object

◆ TC_osMemoryPoolGetName_1()

void TC_osMemoryPoolGetName_1 ( void  )
  • Call osMemoryPoolGetName to retrieve a name of an unnamed memory pool
  • Call osMemoryPoolGetName to retrieve a name of a memory pool with assigned name
  • Call osMemoryPoolGetName from ISR
  • Call osMemoryPoolGetName with null object

◆ TC_osMemoryPoolGetSpace_1()

void TC_osMemoryPoolGetSpace_1 ( void  )
  • Call osMemoryPoolGetSpace to retrieve the number of available memory blocks
  • Call osMemoryPoolGetSpace from ISR
  • Call osMemoryPoolGetSpace from ISR with null object
  • Call osMemoryPoolGetSpace with null object

◆ TC_osMemoryPoolNew_1()

void TC_osMemoryPoolNew_1 ( void  )
  • Call osMemoryPoolNew to create a memory pool object
  • Call osMemoryPoolNew from ISR

◆ TC_osMemoryPoolNew_2()

void TC_osMemoryPoolNew_2 ( void  )
  • Call osMemoryPoolNew to create memory pool object and assign a name to it

◆ TC_osMemoryPoolNew_3()

void TC_osMemoryPoolNew_3 ( void  )
  • Call osMemoryPoolNew to create memory pool object by specifying memory for control block and data in attributes