Closed mikepurvis closed 8 years ago
Maybe use the weak
-attribute or weak pragma of gcc?
I'm interested in this. Would you entertain a PR for a weak-attribute based solution?
It's unclear to me if weak linking can work for a static class method like MillisecondTimer, or if it would need to pass through to a separate free function. Either way, the inline
is going to be gone, whether effectively or explicitly.
weak
could work. The only problem with weak
is that when multiple implementations are weak
then it's undefined who wins. That shouldn't be an issue here though.
closed by #169
I raised this briefly here, but I'd like to file a separate issue— when integrating with an RTOS, it's critical that stm32plus's
delay
method be a yield rather than just a busy-wait. A few thoughts for how to implement this:delay
call a weakref'd function that the user can supply an alternative implementation of.Thoughts?