<< Previous | Next >>

OSMemCreate

OS_MEM * OSMemCreate( void * addr, INT32U nblks, INT32U blksize, INT8U * err );

Description

Creates a fixed-sized memory partition that will be managed by µC/OS-II.

Parameters

addr
Pointer to starting address of the partition.

nblks
Number of memory blocks to create in the partition.

blksize
The size (in bytes) of the memory blocks.

err
Pointer to variable containing an error message.

Return value

Pointer to the created memory partition control block if one is available, null pointer otherwise.

Library

UCOS2.LIB

See also

OSMemGet, OSMemPut, OSMemQuery


Dynamic C Functions << Previous | Next >> rabbit.com