This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/MSP430F5659: Naming an individual port bit inn CCS7

Part Number: MSP430F5659

Tool/software: TI C/C++ Compiler

Support Path: /Tools & software/Help me with an issue/Embedded Product Development Tools/Code Composer Studio/CCS Desktop IDE/CCSv6 general issues/

Hello,

 I had an issue with this before and got things working with CCS6, but now  I'm doing a new project in CCS7(I doubt if CCS6 or 7 is the issue)

I'm frustrated trying to do something simple! I merely want to use names for individual output or input port pins. For Example: to set a port bit to 1, I'd like to just say RED_LED=1;

Please tell me the  simplest way to do this, either a defined structure/macro  or whatever.

Instead of using  P1OUT ^= BIT0;   

If I 

#define RED_LED= B8_0(&P0OUT)

#define B8_0(x) (((volatile struct bits8 *) (x)) ->b0)

i get an (error #29 expression expected)

Very Much Appreciated

Thank You