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.
pull/10701/head
Laurent Meunier 2019-06-04 10:29:06 +02:00
parent 6397a6189f
commit 501881bf38
1 changed files with 5 additions and 2 deletions

View File

@ -41,8 +41,11 @@
#include "platform/mbed_critical.h"
#include <stdbool.h>
#if !defined(LPTICKER_DELAY_TICKS) || (LPTICKER_DELAY_TICKS < 3)
#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
* low level implementation from this file */
#if defined(LPTICKER_DELAY_TICKS) && (LPTICKER_DELAY_TICKS > 0)
#warning "lpticker_delay_ticks usage not recommended"
#endif
#define LP_TIMER_WRAP(val) (val & 0xFFFF)