From c9b2640f704580d5ab1b1a9b65a5db42d0a2525c Mon Sep 17 00:00:00 2001 From: James Wang Date: Thu, 3 May 2018 10:22:32 +0800 Subject: [PATCH] mbed_wait_api: wait_ms() wait() wait_us() add "If the RTOS is present" comments --- platform/mbed_wait_api.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/mbed_wait_api.h b/platform/mbed_wait_api.h index 22d2b096eb..10948c84ef 100644 --- a/platform/mbed_wait_api.h +++ b/platform/mbed_wait_api.h @@ -55,7 +55,7 @@ extern "C" { * @param s number of seconds to wait * * @note - * This function always spins to get the exact number of microseconds, + * 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(). */ @@ -66,7 +66,7 @@ void wait(float s); * @param ms the whole number of milliseconds to wait * * @note - * This function always spins to get the exact number of microseconds, + * 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(). */ @@ -77,7 +77,7 @@ void wait_ms(int ms); * @param us the whole number of microseconds to wait * * @note - * This function always spins to get the exact number of microseconds, + * 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);