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.
1 parent 0bb1bb7 commit 11f9bc7Copy full SHA for 11f9bc7
platform/include/platform/mbed_wait_api.h
@@ -154,10 +154,18 @@ inline void _wait_us_inline(unsigned int us)
154
#include <chrono>
155
156
// Override of wait_us() allowing a std::chrono type convertible to microseconds to be passed in.
157
+#if defined US_TICKER_PERIOD_NUM
158
static inline void _wait_us_inline(std::chrono::microseconds const us)
159
{
160
_wait_us_inline(us.count());
161
}
162
+#else
163
+static inline void wait_us(std::chrono::microseconds const us)
164
+{
165
+ wait_us(us.count());
166
+}
167
+#endif
168
+
169
#endif
170
171
0 commit comments