2 votes

Removing the L from F_CPU in assembly

Just as a complement to the busybee's answer: the avr-libc provides the macros _delay_ms() and _delay_us() for busy-wait delays. Internally, they use __builtin_avr_delay_cycles() and F_CPU to provide ...
Edgar Bonet's user avatar
  • 42.7k
2 votes
Accepted

Removing the L from F_CPU in assembly

You have an XY problem: You want to busy-wait some cycles depending on the system's clock frequency. You think you can realize that with (inline) assembly and a repetition macro. But as you found, the ...
the busybee's user avatar
  • 1,991

Only top scored, non community-wiki answers of a minimum length are eligible