@CHIP-RTOS C Library V2.00 - 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(1024);
ptr = MK_FP(seg,0);
RTOS API
- This library function invokes a RTOS software interrupt.
Refer to this RTOS API function's
documentation
for more details.
This API List
List of C Libraries
@CHIP-RTOS Main Index
End of document
|