summaryrefslogtreecommitdiff
path: root/ucoo/common.hh
diff options
context:
space:
mode:
authorNicolas Schodet2016-07-25 15:18:40 +0200
committerNicolas Schodet2019-10-09 23:05:44 +0200
commit4695b47da68a5b2f75270bea21e15b8f1b9fd6ff (patch)
tree6e5ef4d34ee69bcd6c6627f25a0ca3aa902d47e3 /ucoo/common.hh
parentd7df91926bdb529e68eff9a215aef72072803b6e (diff)
Switch to CMSIS
Diffstat (limited to 'ucoo/common.hh')
-rw-r--r--ucoo/common.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/ucoo/common.hh b/ucoo/common.hh
index 708b9a1..5e982d8 100644
--- a/ucoo/common.hh
+++ b/ucoo/common.hh
@@ -100,6 +100,10 @@ assert_perror (bool condition)
halt_perror ();
}
+/// Give some time to other tasks when running in a tight loop.
+void
+yield ();
+
/// Get array length at compile time.
template<class T, int N>
constexpr int