diff --git a/libraries/Bluefruit52Lib/examples/Peripheral/bleuart/bleuart.ino b/libraries/Bluefruit52Lib/examples/Peripheral/bleuart/bleuart.ino index 79fe8158..398f22b4 100644 --- a/libraries/Bluefruit52Lib/examples/Peripheral/bleuart/bleuart.ino +++ b/libraries/Bluefruit52Lib/examples/Peripheral/bleuart/bleuart.ino @@ -97,7 +97,6 @@ void loop() } // Request CPU to enter low-power mode until an event/interrupt occurs - // Note: This will turn off hardware PWM and potentially other peripherals! waitForEvent(); } diff --git a/libraries/Bluefruit52Lib/examples/Peripheral/custom_hrm/custom_hrm.ino b/libraries/Bluefruit52Lib/examples/Peripheral/custom_hrm/custom_hrm.ino index 7c2cc622..c7da2160 100644 --- a/libraries/Bluefruit52Lib/examples/Peripheral/custom_hrm/custom_hrm.ino +++ b/libraries/Bluefruit52Lib/examples/Peripheral/custom_hrm/custom_hrm.ino @@ -212,13 +212,13 @@ void loop() /** * RTOS Idle callback is automatically invoked by FreeRTOS - * when there is no active threads. E.g loop() call delay() and - * there is no bluetooth or hw event. This is a greate place to handle + * when there are no active threads. E.g when loop() calls delay() and + * there is no bluetooth or hw event. This is the ideal place to handle * background data. * * NOTE: After this callback returns, MCU will enter low-power mode - * by waitForEvent() internally. THerefore user SHOULD NOT call - * waitForEvent() in this callback. + * via waitForEvent() internally. Therefore you SHOULD NOT call + * waitForEvent() in this callback! * * WARNING: This function MUST NOT call any blocking FreeRTOS API * such as delay(), xSemaphoreTake() etc ... for more information @@ -226,9 +226,8 @@ void loop() */ void rtos_idle_callback(void) { - // Background task here + // Perform background task(s) here - - // waitForEvent() will be invoked by internal code when this callback return. - // Don't call waitForEvent() in this function nor any other blocking API() + // waitForEvent() will be invoked internally when this callback returns. + // Don't call waitForEvent() in this function nor any other blocking API()! } diff --git a/libraries/Bluefruit52Lib/examples/Peripheral/hid_keyboard/hid_keyboard.ino b/libraries/Bluefruit52Lib/examples/Peripheral/hid_keyboard/hid_keyboard.ino index e5ed6d40..c35e0ab0 100644 --- a/libraries/Bluefruit52Lib/examples/Peripheral/hid_keyboard/hid_keyboard.ino +++ b/libraries/Bluefruit52Lib/examples/Peripheral/hid_keyboard/hid_keyboard.ino @@ -104,20 +104,19 @@ void loop() delay(5); } - // Instruct CPU to enter low-power state until an event/interrupt occured - // Note: This will turn off hardware PWM and maybe other peripherlas !! + // Request CPU to enter low-power mode until an event/interrupt occurs waitForEvent(); } /** * RTOS Idle callback is automatically invoked by FreeRTOS - * when there is no active threads. E.g loop() call delay() and - * there is no bluetooth or hw event. This is a greate place to handle + * when there are no active threads. E.g when loop() calls delay() and + * there is no bluetooth or hw event. This is the ideal place to handle * background data. * * NOTE: After this callback returns, MCU will enter low-power mode - * by waitForEvent() internally. THerefore user SHOULD NOT call - * waitForEvent() in this callback. + * via waitForEvent() internally. Therefore you SHOULD NOT call + * waitForEvent() in this callback! * * WARNING: This function MUST NOT call any blocking FreeRTOS API * such as delay(), xSemaphoreTake() etc ... for more information @@ -125,9 +124,8 @@ void loop() */ void rtos_idle_callback(void) { - // Background task here + // Perform background task(s) here - - // waitForEvent() will be invoked by internal code when this callback return. - // Don't call waitForEvent() in this function nor any other blocking API() + // waitForEvent() will be invoked internally when this callback returns. + // Don't call waitForEvent() in this function nor any other blocking API()! }