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.

CCS/MSP-EXP430F5529LP: Error #18: expected a ")"

Part Number: MSP-EXP430F5529LP

Tool/software: Code Composer Studio

8304.4011.main.c
#include <msp430.h>
// lab 14: interrupt


void REDblink();
void GREENblink();
void DelayMS();
#define LED_RED BIT0;
#define LED_GREEN BIT7;
#define BUTTON  BIT1;

#pragma vector = PORT1_VECTOR
    __interrupt void Port_1(void){
        if (P1IFG & BUTTON){
            GREENblink();
            P1OUT ^=LED_RED;
            P1IFG &= ~BUTTON;
        }
    }

void main(void){
    WDTCTL = WDTPW | WDTHOLD;
    P1DIR |= LED_RED;
    P4DIR |= LED_GREEN;

    P1REN |= BUTTON;
    P1IES |= BUTTON;
    P1IFG &= ~BUTTON;
    P1IE |= BUTTON;
    _BIS_SR(GIE);
    while (1){
        REDblink();
        DelayMS(500);
        }

    }


void DelayMS(unsigned int ms){
    volatile unsigned int d;
    for (d=ms*100; d>0; d--);
}

void REDblink(){
    P1DIR |= 0x01;
    P1OUT |= 0x01;
    DelayMS(500);
    P1OUT &= 0x00;
}

void GREENblink(){
    P4DIR |= 0x80;
    P4OUT |= 0x80;
    DelayMS(500);
    P4OUT = 0x00;
}


Hi all,

So in my lab that I've been working on recently I keep encountering "Error #18: expected a ")" in line 14 of my code even though me and several of my classmates and lab instructor have tried looking over my code and weren't able to understand why I keep getting this error. I attached the code below.

Thanks.