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.
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;为什么要用上面的函数呢?上面的函数有点像存储空间分配。
问题:上面的函数在这里 有什么作用,为什么要这样处理?
这应该是一种统一格式的写法,其实含义跟你说的一样。应该是他那样写更规范。所以motorware的例程可以很高级别的优化都没问题。
C:\ti\motorware\motorware_1_01_00_17\docs
motorware_coding_standards.pdf
你可以看这个文档,里面有谈到。