X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=common%2Fdelay.h;h=9b8137601c0d187fdf0dd515a6592df16f40c93e;hb=HEAD;hp=725d22b5b41fe6ce6bcf00eff5373ae847b533e3;hpb=9c37d18b9c70fdb70dfec453398c4649e9e57586;p=model-railway-devices.git diff --git a/common/delay.h b/common/delay.h index 725d22b..9b81376 100644 --- a/common/delay.h +++ b/common/delay.h @@ -16,7 +16,7 @@ static inline void __attribute__((always_inline)) delay_loop16(uint16_t count) __asm__ volatile ( "1: sbiw %0, 1" "\n\t" "brne 1b" - : "=r" (count) + : "=w" (count) : "0" (count) ); }