In the Arduino repo (https://github.com/arduino/Arduino), hardware/arduino/avr/cores/arduino/wiring.c at line 120 starts the function for microsecond delay including an asm loop at the end of the function (line 234). Cycles are counted carefully throughout the function.
This may be a good enough model to follow for the rust version.
In the Arduino repo (https://github.com/arduino/Arduino), hardware/arduino/avr/cores/arduino/wiring.c at line 120 starts the function for microsecond delay including an asm loop at the end of the function (line 234). Cycles are counted carefully throughout the function.
This may be a good enough model to follow for the rust version.