Hi,
how can i mimic IARs way to declare an atomic function (IAR "__monitor"), that is a function with interrupts disabled automatically once the function is called?
Regard
Ulf
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.
There is no equivalent feature in the TI compiler. For now, you'll have to use the __enable_interrupts and __disable_interrupts intrinsics. See the "MSP430 Optimizing C/C++ Compiler v 4.0 User's Guide" (SLAU132), section 6.7.1 "MSP430 Intrinsics" http://www.ti.com/lit/pdf/slau132