mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #11523 from hugueskamba/hk-correct-force-inline-syntax-for-iar
Correct force inline syntax for IAR compilerpull/11541/head
commit
e6d9d515e4
|
@ -83,8 +83,12 @@ public:
|
|||
* @param func pointer to the function to be called
|
||||
* @param t the time between calls in seconds
|
||||
*/
|
||||
template <typename F>
|
||||
MBED_FORCEINLINE void attach(F &&func, float t)
|
||||
#if defined(__ICCARM__)
|
||||
MBED_FORCEINLINE template <typename F>
|
||||
#else
|
||||
template <typename F> MBED_FORCEINLINE
|
||||
#endif
|
||||
void attach(F &&func, float t)
|
||||
{
|
||||
attach_us(std::forward<F>(func), t * 1000000.0f);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue