This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PARK_Handle PARK_init(void *pMemory,const u32 numBytes)

Other Parts Discussed in Thread: MOTORWARE

clarkeHandle_I = CLARKE_init(&clarke_I,sizeof(clarke_I));

PARK_Handle PARK_init(void *pMemory,const u32 numBytes)
{
PARK_Handle handle;
if(numBytes < sizeof(PARK_Obj))
return((PARK_Handle)NULL);
handle = (PARK_Handle)pMemory;
return(handle);
}

clarkeHandle_I = CLARKE_init(&clarke_I,sizeof(clarke_I));  就等效于clarkeHandle_I =&clarke_I;为什么要用上面的函数呢?上面的函数有点像存储空间分配。

问题:上面的函数在这里 有什么作用,为什么要这样处理?