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.

proper use of the IDLE command



I'd like to try to make use of the IDLE assembly instruction (SPRU732J, page 239).  Obviously I need to make sure the appropriate wake interrupts are configured properly and enabled first.

Is there a C macro I can use to perform the IDLE function?

If not, what other inline assembly instructions do I need to wrap around the IDLE instruction to deal with all the "thou shalt/shalt not" restrictions on this instruction?