It might be better....
yet     I've tested different ways and found that aliased declaration sometimes 
snips lots of associated code (like redudant register moves, etc.)
I minded to check this again, but have not done it yet.

~d

> Usually a port is declared as a variable with a constant address:
> #define mc_PORT_u16(x) (*(volatile u16*)(x))
>
> Regards
>
> Rolf F.
>
> [email protected] schrieb am 15.02.04 09:40:44:
> > Hi again,
> >
> > In msp430-libc\include\msp430\dac12.h it states:
> >
> > #define DAC12_0DAT_         0x01C8  /* DAC12 data 0 */
> > sfrw(DAC12IFG,DAC12IFG_);
> > #define DAC12_1DAT_         0x01CA  /* DAC12 data 1 */
> > sfrw(DAC12CTL0,DAC12CTL0_);
> >
> > While I think it should state:
> >
> > #define DAC12_0DAT_         0x01C8  /* DAC12 data 0 */
> > sfrw(DAC12_0DAT,DAC12_0DAT_);
> > #define DAC12_1DAT_         0x01CA  /* DAC12 data 1 */
> > sfrw(DAC12_1DAT,DAC12_1DAT_);
> >
> > Correct?
> >
> > Indrek
> >
> > --
> >   Indrek Rebane           |      Borthwick-Pignon
> >   Electronics Engineer    |    Tartu Science Park
> >   Phone: (+372) 7 302 641 | Riia 185, 51014 Tartu
> >   Fax:   (+372) 7 383 041 |               Estonia
> >   [email protected]        |         www.bps.co.ee
> >
> >
> >
> > -------------------------------------------------------
> > SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> > Build and deploy apps & Web services for Linux with
> > a free DVD software kit from IBM. Click Now!
> > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> > _______________________________________________
> > Mspgcc-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/mspgcc-users
>
> -------------------------------------------------------
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> _______________________________________________
> Mspgcc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users

-- 
/*****************************************************************
     ("`-''-/").___..--''"`-._     (\   Dimmy the Wild     UA1ACZ
      `6_ 6  )   `-.  (     ).`-.__.`)  State Polytechnical Univ.
      (_Y_.)'  ._   )  `._ `. ``-..-'   Radio-Physics Departament
    _..`--'_..-_/  /--'_.' ,'           Saint Petersburg,  Russia
   (il),-''  (li),'  ((!.-'             +7 (812) 5403923, 5585314
 *****************************************************************/


Reply via email to