What were you trying to do exactly?

#define ARRAY_SIZE  50

uint8_t ar0[ARRAY_SIZE];
uint8_t ar1[ARRAY_SIZE*2];

Should work just fine.

Kevin

On 9/13/07, John Griessen <[EMAIL PROTECTED]> wrote:
> Kevin Klues wrote:
> > You can't allocate an array dynamically.  All arrays must be
> > statically allocated using constant sizes defined at compile time.
>
> I think this is what I was hitting against in one module I made for
> using MSP430Adc12Multichannel.  I thought it would be convenient to have
> one constant defined in a .h file and use it to get multiples to define
> another variable array, but when I put that as another variable into the
> definition of a new array, I could not find a way to make the compiler
> happy.  So, it's (statically allocated) AND (using constants for array
> sizes defined at compile time).  Right?
>
> John Griessen
>
> --
> Ecosensory
> tinyOS devel on:  ubuntu Linux;   tinyOS v2.0.2;   telosb ecosens1
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>


-- 
~Kevin
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to