We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6397a61 commit 501881bCopy full SHA for 501881b
targets/TARGET_STM/lp_ticker.c
@@ -41,8 +41,11 @@
41
#include "platform/mbed_critical.h"
42
#include <stdbool.h>
43
44
-#if !defined(LPTICKER_DELAY_TICKS) || (LPTICKER_DELAY_TICKS < 3)
45
-#warning "lpticker_delay_ticks value should be set to 3"
+/* lpticker delay is for using C++ Low Power Ticker wrapper,
+ * which introduces extra delays. We rather want to use the
46
+ * low level implementation from this file */
47
+#if defined(LPTICKER_DELAY_TICKS) && (LPTICKER_DELAY_TICKS > 0)
48
+#warning "lpticker_delay_ticks usage not recommended"
49
#endif
50
51
#define LP_TIMER_WRAP(val) (val & 0xFFFF)
0 commit comments