RTOSAdap_genDriverMemoryAlloc

Generates code for dynamic memory allocation of object of type arg_objType and stores the address of allocated object in arg_destPtrBuffer.

The allocated memory is suitable for direct usage in LDD driver code (paging, protection). If an allocation is not successful, statement arg_errCode will be executed. If dynamic allocation is not supported, the help static object is generated into thread arg_globDefsThread, and the address of such static object is stored in arg_destBufferPtr.