avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] arrays in avrgcc


From: Reza Naima
Subject: Re: [avr-gcc-list] arrays in avrgcc
Date: Fri, 26 Sep 2003 21:01:38 -0700
User-agent: Mutt/1.5.4i

I've actually tried putting PORTn or PINn in a struct, and the code
didn't work.  I never figured out how the macros expanded, but it just
seems like you can't do it.  

Reza

On Fri, Sep 26, 2003 at 09:47:13PM +1000, Jack Valmadre sent me this...
> I need to be able to access values in an array like this:
> PORTD = the_array[PORTA];
> How would I do this.
> Jack
> 
> ----- Original Message ----- 
> From: "Russell Shaw" <address@hidden>
> Cc: <address@hidden>
> Sent: Friday, September 26, 2003 7:35 PM
> Subject: Re: [avr-gcc-list] arrays in avrgcc
> 
> 
> > Jack Valmadre wrote:
> > > So does that mean the array "a" will have space for ten variables or
> does it
> > > mean that the first value in the array "a" will be 10.
> > > How big can each value of the array be?
> > > Thanks,
> > > Jack
> > >
> > >>Jack Valmadre wrote:
> > >>
> > >>>Hi,
> > >>>How do I set up an array in AVR GCC?
> > >>
> > >>int a[10];
> > >>
> >
> > Means space for 10 integers with "a" pointing to
> > the first one. You needs a C book.
> >
> >
> > _______________________________________________
> > avr-gcc-list mailing list
> > address@hidden
> > http://www.avr1.org/mailman/listinfo/avr-gcc-list
> 
> 
> _______________________________________________
> avr-gcc-list mailing list
> address@hidden
> http://www.avr1.org/mailman/listinfo/avr-gcc-list


reply via email to

[Prev in Thread] Current Thread [Next in Thread]