Page 1 of 1

Newbie example question

PostPosted: Mon Jul 16, 2007 12:15 am
by tiki12revolt
I have read through most of the documentation and tried to sift through the header files for the main.c examples but maybe I am missing something.

Where are BIT0...6 defined and what are their default values (if they change)? I am trying to understand generally how the code works, but I can not seem to figure that out.

code:

void TaskTalkMHX( void )
{
...

saveP4DIR = P4DIR;
saveP4OUT = P4OUT;
saveP4SEL = P4SEL;
saveP6DIR = P6DIR;
saveP6OUT = P6OUT;

...

/* disable all control signals */
P6OUT |= ( BIT6+BIT5+BIT4+BIT3 );
P6DIR |= ( BIT6+BIT5+BIT4+BIT3 );
P6DIR &= ~( BIT2+BIT1+BIT0);


Thanks.


Re: Newbie example question

PostPosted: Mon Jul 16, 2007 1:26 am
by aek
Those are MSP430-specific defines. They're found in the compiler's include directory, in msp430xxx.h.

--Andrew

------------------