When using '_delay_loop_x()' in 'delay.h' it seems that the actual
delay is not correct.
When looking at the code there is no init of the '__count' to any
Maybe this dependant of optimization. I use -Os?
So I changed the code to:
asm volatile (
"L%=: dec %0" "\n\t"
: "r" (__count)
Which at least seems to produce correct code.
Can someone (Joerg?) that does understand all the i/o operands of
the inline asm comment this.