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 lot. 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.santh...@web.de> _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal