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.
Hi everyone,
What does this line do?
while((IRQ_PORT & IRQ_PIN) == IRQ_PIN);
Hello Neil,
This is an MSP430 directive which will pull the device out of the Low Power Mode (LPM) specified. After a quick review though, it looks like that line of code actually isn't really needed as we don't enter any LPM's with the current example, so all it really is doing is using up a couple of clock cycles unnecessarily.
You can find out more details about LPM's in the MSP430G2553 datasheet.