
Dear Reinhard Meyer,
In message 4DE47046.3010703@emk-elektronik.de you wrote:
Excuse me, but THIS API does not prevent the user to do a "(get_timer() - start) < timeout" inside the loop, making your argument moot.
You can be pretty sure that I will NAK any design that _prevents_ me from doing this when I have specific reasons to do exactly this or something similar.
It is definitely a good idea to provide simple and reliable ways for standard tasks - but you also must provide the freedom to do things differently when the standard way does not fit for a reason or another.
This is also why I consider it mandatory that get_timer() (or time_read() or whatever it is going t be called) uses a standard unit of time like milliseconds, and not som random internal scaling.
Best regards,
Wolfgang Denk