资 源 简 介
应用背景void Init_IEC103_Buf(unsigned char ucPort)
{
STATUS status;
VOID * pointer;
unsigned short usStep1;
unsigned char * pTempBuf;
BufStruct * pTempBufList, * pTempBufList1;
status = NU_Allocate_Memory(&System_Memory,&pointer,sizeof(IECDefStruct),NU_NO_SUSPEND);
if(status != NU_SUCCESS)
while(1);
pIEC103_Struct[ucPort] = (IEC103DefStruct *)pointer;
status = NU_Allocate_Memory (&System_Memory, &pointer, 8*sizeof(BufStruct), NU_NO_SUSPEND);
if (status != NU_SUCCESS)
&nbs