title: Error: Expected an identifier, in C with CCS for MSP430
body: <p>I'm currently taking over a project for MSP430 that was previously compiled with MSPGCC, and I was asked to update it so it works with TI's C compiler using CCSv6. However, I'm getting a set of errors that I don't really understand. Here's a sample of my code where there are some errors:</p>
  
  <pre><code>struct UART_UCxxCTL_BITS
  {
      UINT8_T UCSWRST : 1;    /**&lt; R/W Software reset enable                  */
      UINT8_T UCTXBRK : 1;    /**&lt; R/W Transmit break                         */
      UINT8_T UCTXADDR: 1;    /**&lt; R/W Transmit address                       */
      UINT8_T UCDORM  : 1;    /**&lt; R/W Dormant                                */
      UINT8_T UCBRKIE : 1;    /**&lt; R/W Receive break character interrupt      */
      UINT8_T UCRXEIE : 1;    /**&lt; R/W Receive eroneous-character interrupt   */
      UINT8_T UCSSEL  : 2;    /**&lt; R/W USCI clock source select               */
      UINT8_T UCSYNC  : 1;    /**&lt; R/W Synchronous mode select    */
      UINT8_T UCMODE  : 2;    /**&lt; R/W Mode select                */
      UINT8_T UCSPB   : 1;    /**&lt; R/W Stop bit select            */
      UINT8_T UC7BIT  : 1;    /**&lt; R/W Character length           */
      UINT8_T UCMSB   : 1;    /**&lt; R/W MSB first select           */
      UINT8_T UCPAR   : 1;    /**&lt; R/W Parity select              */
      UINT8_T UCPEN   : 1;    /**&lt; R/W Parity enable              */
  };
  </code></pre>
  
  <p>For all these lines inside the struct, except for <code>UCMODE</code> and <code>UCSSEL</code>, I'm getting the error: "#41 expected an identifier"
  In total, I have 38 errors #41 in my project, all of them on structs, but not every struct and not every declarations inside them. They appear in two header files, one for the UART and one for the SPI. These two files are not linked though. In both files structs are declared, some of them quite similar.</p>
  
  <p>For instance, in both files, <code>UCMODE</code> and <code>UCSSEL</code> aren't considered as errors, but the rest is. That's what I find strange.</p>
  
  <p>Please note that <code>UINT8_T</code> is an <code>unsigned char</code>.</p>
  
  <p>Do you know what could bring these errors ?</p>
  
  <p>Thanks a lot.</p>