We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 99c19b5 + e2aeb60 commit e6d9d51Copy full SHA for e6d9d51
drivers/Ticker.h
@@ -83,8 +83,12 @@ class Ticker : public TimerEvent, private NonCopyable<Ticker> {
83
* @param func pointer to the function to be called
84
* @param t the time between calls in seconds
85
*/
86
- template <typename F>
87
- MBED_FORCEINLINE void attach(F &&func, float t)
+#if defined(__ICCARM__)
+ MBED_FORCEINLINE template <typename F>
88
+#else
89
+ template <typename F> MBED_FORCEINLINE
90
+#endif
91
+ void attach(F &&func, float t)
92
{
93
attach_us(std::forward<F>(func), t * 1000000.0f);
94
}
0 commit comments