Hello,
Can someone provide a way to replace the following "nop\n\t" statements with a loop? I apologize in advance for not spending the time to try and figure this out, but I must admit that I find GCC ASM somewhat difficult. I would appreciate any help.
Sam
static __inline__ void _delay_20(uint16_t __count) { __asm__ volatile ( "1: sbiw %0,1" "\n\t" "nop\n\t" "nop\n\t" "nop\n\t" "nop\n\t" "nop\n\t" "nop\n\t" "nop\n\t" "nop\n\t" "nop\n\t" "nop\n\t" "nop\n\t" "nop\n\t" "nop\n\t" "nop\n\t" "nop\n\t" "nop\n\t" "brne 1b" : "=w" (__count) : "0" (__count) ); }