[fpc-pascal] AVR Busy Wait implementation

Marc Santhoff M.Santhoff at web.de
Sat Jan 23 14:17:33 CET 2016

On Sa, 2016-01-23 at 11:53 +0100, Florian Klaempfl wrote:

> IMO the only proper solution is to implement delaying as compiler
> intrinsics as it is done by gcc as well.

Besides using a hardware timer on embedded platforms. Older ┬ÁC like AVR
do not have too much hardware timers, but modern ones normally have a

Waiting in a loop is not the best way to delay when using multitasking.
One will never know if the timing is disturbed by an interrupt. Or does
the gcc implementation handle this case?

Marc Santhoff <M.Santhoff at web.de>

More information about the fpc-pascal mailing list