Error messages with gcc-msp430 (4.5.3~mspgcc-20110716-4)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Error messages with gcc-msp430 (4.5.3~mspgcc-20110716-4)

Robert Heller
Is there some missing command line options needed for this:

sep3.c:601:13: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’
sep3.c:609:13: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’
sep3.c:655:13: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’

Lines 601, 609, and 655 look line this:

//lpm4 wakeup.
// Low power mode 4 wakeup
#pragma vector=PORT2_VECTOR
__interrupt void makeItGo()         /* LINE=601 */
{
  _BIC_SR_IRQ(LPM4_bits);
    CLEAR_INTERRUPT;
    }
   
// UART Receive interrupt.
#pragma vector=UART0RX_VECTOR
__interrupt void uartInterrupt (void) /* LINE=609 */
{
  byteReceived++;
 

// Watchdog Timer interrupt service routine
// This function runs once every second, as long as the patch is
// not asleep.
#pragma vector=WDT_VECTOR
__interrupt void watchdog_timer(void) /* LINE=655 */
{
  P1DIR ^= BIT0; //turns LED on testing board on and off.
 

 


--
Robert Heller             -- 978-544-6933 / [hidden email]
Deepwoods Software        -- http://www.deepsoft.com/
()  ascii ribbon campaign -- against html e-mail
/\  www.asciiribbon.org   -- against proprietary attachments


                                                                                   

_______________________________________________
help-gplusplus mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-gplusplus