mirror of https://github.com/ARMmbed/mbed-os.git
#6536 rebase correction
parent
2b8d6cbcc5
commit
12b3df7773
|
@ -28,7 +28,7 @@ static const ticker_interface_t lp_interface = {
|
|||
.read = lp_ticker_read,
|
||||
.disable_interrupt = lp_ticker_disable_interrupt,
|
||||
.clear_interrupt = lp_ticker_clear_interrupt,
|
||||
#if LOWPOWERTIMER_DELAY_TICKS > 0
|
||||
#if LPTICKER_DELAY_TICKS > 0
|
||||
.set_interrupt = lp_ticker_set_interrupt_wrapper,
|
||||
#else
|
||||
.set_interrupt = lp_ticker_set_interrupt,
|
||||
|
|
|
@ -15,12 +15,12 @@
|
|||
*/
|
||||
#include "hal/lp_ticker_api.h"
|
||||
|
||||
#if DEVICE_LOWPOWERTIMER && (LOWPOWERTIMER_DELAY_TICKS > 0)
|
||||
#if DEVICE_LPTICKER && (LPTICKER_DELAY_TICKS > 0)
|
||||
|
||||
#include "Timeout.h"
|
||||
#include "mbed_critical.h"
|
||||
|
||||
static const timestamp_t min_delta = LOWPOWERTIMER_DELAY_TICKS;
|
||||
static const timestamp_t min_delta = LPTICKER_DELAY_TICKS;
|
||||
|
||||
static bool init = false;
|
||||
static bool pending = false;
|
||||
|
@ -108,7 +108,7 @@ static void set_interrupt_later()
|
|||
* Wrapper around lp_ticker_set_interrupt to prevent blocking
|
||||
*
|
||||
* Problems this function is solving:
|
||||
* 1. Interrupt may not fire if set earlier than LOWPOWERTIMER_DELAY_TICKS low power clock cycles
|
||||
* 1. Interrupt may not fire if set earlier than LPTICKER_DELAY_TICKS low power clock cycles
|
||||
* 2. Setting the interrupt back-to-back will block
|
||||
*
|
||||
* This wrapper function prevents lp_ticker_set_interrupt from being called
|
||||
|
|
|
@ -729,7 +729,7 @@
|
|||
"public": false,
|
||||
"extra_labels": ["STM"],
|
||||
"supported_toolchains": ["ARM", "uARM", "IAR", "GCC_ARM"],
|
||||
"macros": ["TRANSACTION_QUEUE_SIZE_SPI=2"],
|
||||
"macros": ["TRANSACTION_QUEUE_SIZE_SPI=2", "LPTICKER_DELAY_TICKS=3"],
|
||||
"config": {
|
||||
"lse_available": {
|
||||
"help": "Define if a Low Speed External xtal (LSE) is available on the board (0 = No, 1 = Yes). If Yes, the LSE will be used to clock the RTC, LPUART, ... otherwise the Low Speed Internal clock (LSI) will be used",
|
||||
|
|
Loading…
Reference in New Issue