Am 15.06.2010 11:19, schrieb pouly amaury:


unsigned long x;
for (x = (unsigned)(FREQ>>22); x; x--)
    asm volatile("":::"memory");

The nop instruction adds 1 instruction, maybe you can just adjust the loop counter so it's effectively the same as before.

But I wouldn't worry about it too much. The counter cannot be higher than 1024, and this is quite a low delay so making it a bit longer with a nop should have a noticeable impact.


Best regards.

Reply via email to