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.

GRACE call variables



Hello good day:

I have a question I'm working on Grace of CCS and I'm driving several breaks but not how to call a variable of an interruption to the main program ie I call the variable main.c that is in interrupt vector and i don´t know or how call a variable x of an interrupt vector to interrupts Timer0_A3 thank you for your help .

  • Hello fellow:

    I already have an answer to this question and I want to share because it seems to work grace for MSP430 is very useful but did not know how to call a variable from other classes.

    The first thing that must be made in the main.c example define variable int i;

    and where you want to use the name as interrupts_vector example extern int i = 1; and I can also work with the variable in the two classes.

**Attention** This is a public forum