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/MSP430F5418A: About the optimization and "volatile"

Part Number: MSP430F5418A

Tool/software: TI C/C++ Compiler

Hi,

My customers use MSP430.
They have a question about optimization and how to write code.

Are Timer1 and Timer2 set to "volatile" when written as follows?
----------------------------------------------
static volatile
DSTATUS Stat = STA_NOINIT; 
 
int Timer1,Timer2;
----------------------------------------------
This is a general software question, but please let me know if you know it.

(The version of the compiler that the customer is using is unknown, assume MSP430 C / C ++ Compiler v18.1.0.LTS.)

Regards, Rei

**Attention** This is a public forum