Skip to content

Commit d19f51f

Browse files
committed
Shim - mbed SDK uses us ticker by default
mbed SDK defines ``__MBED__`` macro (unique, not valid for yotta), this should turn on us ticker by default, as that one is available for mbed SDK targets.
1 parent 53b9fe2 commit d19f51f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

frameworks\utest/utest/shim.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,11 @@
5959
# define UTEST_SHIM_SCHEDULER_USE_MINAR UTEST_MINAR_AVAILABLE
6060
# endif
6161
# ifndef UTEST_SHIM_SCHEDULER_USE_US_TICKER
62-
# define UTEST_SHIM_SCHEDULER_USE_US_TICKER 0
62+
# ifdef __MBED__
63+
# define UTEST_SHIM_SCHEDULER_USE_US_TICKER 1
64+
# else
65+
# define UTEST_SHIM_SCHEDULER_USE_US_TICKER 0
66+
# endif
6367
# endif
6468
#endif // YOTTA_CFG_UTEST_USE_CUSTOM_SCHEDULER
6569

0 commit comments

Comments
 (0)