Skip to content

Commit 501881b

Browse files
committed
Update warning now that C++ wrapper is not needed anymore
Now we'd rather not use this wrapper and use instead the low level wrapper implemented in this driver.
1 parent 6397a61 commit 501881b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

targets/TARGET_STM/lp_ticker.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,11 @@
4141
#include "platform/mbed_critical.h"
4242
#include <stdbool.h>
4343

44-
#if !defined(LPTICKER_DELAY_TICKS) || (LPTICKER_DELAY_TICKS < 3)
45-
#warning "lpticker_delay_ticks value should be set to 3"
44+
/* lpticker delay is for using C++ Low Power Ticker wrapper,
45+
* 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"
4649
#endif
4750

4851
#define LP_TIMER_WRAP(val) (val & 0xFFFF)

0 commit comments

Comments
 (0)