File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -53,18 +53,32 @@ extern "C" {
53
53
* the accuracy of single precision floating point).
54
54
*
55
55
* @param s number of seconds to wait
56
+ *
57
+ * @note
58
+ * If the RTOS is present, this function always spins to get the exact number of microseconds,
59
+ * which potentially affects power (such as preventing deep sleep) and multithread performance.
60
+ * You can avoid it by using Thread::wait().
56
61
*/
57
62
void wait (float s );
58
63
59
64
/** Waits a number of milliseconds.
60
65
*
61
66
* @param ms the whole number of milliseconds to wait
67
+ *
68
+ * @note
69
+ * If the RTOS is present, this function always spins to get the exact number of microseconds,
70
+ * which potentially affects power (such as preventing deep sleep) and multithread performance.
71
+ * You can avoid it by using Thread::wait().
62
72
*/
63
73
void wait_ms (int ms );
64
74
65
75
/** Waits a number of microseconds.
66
76
*
67
77
* @param us the whole number of microseconds to wait
78
+ *
79
+ * @note
80
+ * If the RTOS is present, this function always spins to get the exact number of microseconds,
81
+ * which potentially affects power (such as preventing deep sleep) and multithread performance.
68
82
*/
69
83
void wait_us (int us );
70
84
You can’t perform that action at this time.
0 commit comments