Hi, yes i think so too. By the way: Why are the ports declared with volatile unsigned int x asm(#x_) ?
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
