This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How can I install a list?

How can I install a list in a ARM controller?

typedef struct {
        volatile unsigned int *p_NextHdr;                       volatile unsigned int *p_PrevHdr;                       volatile unsigned int *p_data;
}*Hdr;

*p_NextHdr: ptr to the next list element
*p_PrevHdr: ptr to the previous list element
*p_data: ptr to the buffer (for this list element)

Hdr HdrPtr;

// ptr to the struct

At the beginning:

*p_NextHdr = *p_PrevHdr = *p_data = NULL;

But how can I install a few list elements? Could you tell me the next steps I have to do? How can I allocate storage for the struct?

best regards
Ingo

0