Pumpkin, Inc.

Pumpkin User Forums

Newbie example question

If you can't make Salvo do what you want it to do, post it here.

Newbie example question

Postby tiki12revolt » Mon Jul 16, 2007 12:15 am

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.

tiki12revolt
 
Posts: 1
Joined: Sun Jul 15, 2007 11:00 pm
Location: Redondo Beach, CA

Re: Newbie example question

Postby aek » Mon Jul 16, 2007 1:26 am

Those are MSP430-specific defines. They're found in the compiler's include directory, in msp430xxx.h.

--Andrew

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

-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm


Return to Coding

Who is online

Users browsing this forum: No registered users and 4 guests

cron