61
Nov 2020: uTasker i.MX RT V1.4.12 is productive - with complete secure loading concept.
Follow uTasker updates at www.twitter.com/uTasker !!
Online Forum registration has now been disabled. Please send an email to an address at the bottom of the home page with your preferred user name and email address if you would like an account.
Return to uTasker main site: www.utasker.com
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Error : illegal implicit conversion from 'unsigned long **' to 'unsigned long *' my_uart.c line 245 fnAddNode(&pList, RXBuffer);
Error : illegal implicit conversion from 'unsigned long *' to 'unsigned long **' my_util.c line 107 pTmpNode = *pTmpNode;
I've following the examples from http://en.wikipedia.org/wiki/Linked_list#Language_supportunsigned long *pList=NULL;
void fnProcessRx(CHAR *RXBuffer, QUEUE_TRANSFER length){
fnAddNode(&pList, RXBuffer); //this line fails in the compiler (line 245)
}
//take an array and allocate a chunk of ram for it on the heap
//then copy the array into the data section
//structure is an array: |ptr|string data|
void fnAddNode(unsigned long** pNode, CHAR * data){
unsigned long * pTmp;
unsigned long **pTmpNode;
pTmpNode = pNode;
pTmp = uMalloc(uStrlen(data)+1+4); //extra bytes added, one for the NULL string terminator and 4 for the address pointer
if (pTmp == NULL) {
//return NULL;
}
*pTmp=NULL; //make sure that the new pointer is NULL
uStrcpy((CHAR*)(pTmp+1),data); //copy the data into the new link node
//go to the end of the list to add
if (pTmpNode != NULL) {
while (*pTmpNode != NULL) {
pTmpNode = *pTmpNode; //this line fails to compile in CW
}
*pTmpNode = pTmp;
}else{
//the list appears to be empty
//*pNode = pTmp;
*pNode = pTmp;
}
}
0x0a,m,e,s,s,2
#ifdef TEST_MSG_CNT_MODE
while (fnMsgs(SerialPortID) != 0) {
unsigned char ucLength;
fnRead( SerialPortID, &ucLength, 1); // get message length
Length = fnRead( SerialPortID, ucInputMessage, ucLength);
fnInitialiseRND();
rnd = fnRandom(); //rnd is an unsigned short