www.beck-ipc.com

@CHIP-RTOS C Library - Helper Functions


helper_alloc_rtos_mem

Allocate memory from @CHIP-RTOS memory pool (Int21h function 48h)

unsigned int helper_alloc_rtos_mem(unsigned long size);

Parameters

size

Requested memory size in bytes

Return Value

If 0, memory allocation failed. Else segment of the allocated memory area

Comments

The returned segment can be used to build a normalized pointer to the allocated memory area e.g. seg=helper_alloc_rtos_mem(1024);
ptr = MK_FP(seg,0);

See Also

RTOS API

This library function invokes a RTOS software interrupt. Refer to this RTOS API function's documentation for more details.

Supported since or modified in @CHIP-RTOS version

    SC12SC13SC11SC1x3SC2x
    V1.00V1.00V1.00V0.90V1.00

This API List
List of C Libraries
@CHIP-RTOS Main Index


End of document