8.3.2 _NOP macro
A macro that performs no operation.
Include
<avr/cpufunc.h>
Prototype
void _NOP(void);
Remarks
This macro executes a nop
instruction.
This macro should not be used to implement delays. It is better use the
functions from <util/delay_basic.h>
or
<util/delay.h>
for this. As the nop
instruction is not
optimized away, it can be reliably used as the location for a breakpoint for debugging
purposes.
Example
#include <avr/cpufunc.h>
int main(void)
{
while(1)
_NOP();
}