8.9.2 builtin_avr_delay_cycles Built-in Function

Inserts a simple delay instruction sequence.

Prototype

void __builtin_avr_delay_cycles(unsigned long tick)

Remarks

The built-in will produce code that delays for tick cycles. The tick operand must be a constant expression. It cannot take into account the effect of interrupts that might increase delay time.

Example

void toggle(void) {
  PORTB = 0x0F;
  __builtin_avr_delay_cycles(10);
  PORTB = 0x00;
}