volkswagenb
Programmer
Hello, everyone , one question,
I am defining a list of numbers like this:
#define stuff (0, 0,255, 0, 0,255,\
5, 5,255, 5, 5,255)
And am declaring this pointer:
UINT16 *pattern_pointer;
And would like to use these numbers at run time from
a function, this is what I'm trying:
pattern_pointer=&stuff;
But it won't compile (claims syntax error).
I wonder, how can you point to these types of lists and read them?
-Thanks in advance to anyone out there sorry if the question is too basic.
Context: I'm programming an embedded device (Atmel 8-bit uP). Actual number list is much bigger.
I am defining a list of numbers like this:
#define stuff (0, 0,255, 0, 0,255,\
5, 5,255, 5, 5,255)
And am declaring this pointer:
UINT16 *pattern_pointer;
And would like to use these numbers at run time from
a function, this is what I'm trying:
pattern_pointer=&stuff;
But it won't compile (claims syntax error).
I wonder, how can you point to these types of lists and read them?
-Thanks in advance to anyone out there sorry if the question is too basic.
Context: I'm programming an embedded device (Atmel 8-bit uP). Actual number list is much bigger.