mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #6645 from woodsking2/master
mbed_wait_api: add comments to warn the func will lock deep sleeppull/6842/merge
commit
68ad00ffb8
|
|
@ -53,18 +53,32 @@ extern "C" {
|
||||||
* the accuracy of single precision floating point).
|
* the accuracy of single precision floating point).
|
||||||
*
|
*
|
||||||
* @param s number of seconds to wait
|
* @param s number of seconds to wait
|
||||||
|
*
|
||||||
|
* @note
|
||||||
|
* If the RTOS is present, this function always spins to get the exact number of microseconds,
|
||||||
|
* which potentially affects power (such as preventing deep sleep) and multithread performance.
|
||||||
|
* You can avoid it by using Thread::wait().
|
||||||
*/
|
*/
|
||||||
void wait(float s);
|
void wait(float s);
|
||||||
|
|
||||||
/** Waits a number of milliseconds.
|
/** Waits a number of milliseconds.
|
||||||
*
|
*
|
||||||
* @param ms the whole number of milliseconds to wait
|
* @param ms the whole number of milliseconds to wait
|
||||||
|
*
|
||||||
|
* @note
|
||||||
|
* If the RTOS is present, this function always spins to get the exact number of microseconds,
|
||||||
|
* which potentially affects power (such as preventing deep sleep) and multithread performance.
|
||||||
|
* You can avoid it by using Thread::wait().
|
||||||
*/
|
*/
|
||||||
void wait_ms(int ms);
|
void wait_ms(int ms);
|
||||||
|
|
||||||
/** Waits a number of microseconds.
|
/** Waits a number of microseconds.
|
||||||
*
|
*
|
||||||
* @param us the whole number of microseconds to wait
|
* @param us the whole number of microseconds to wait
|
||||||
|
*
|
||||||
|
* @note
|
||||||
|
* If the RTOS is present, this function always spins to get the exact number of microseconds,
|
||||||
|
* which potentially affects power (such as preventing deep sleep) and multithread performance.
|
||||||
*/
|
*/
|
||||||
void wait_us(int us);
|
void wait_us(int us);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue