Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more
Diff: hal/mbed_lp_ticker_api.c
- Revision:
- 186:707f6e361f3e
- Parent:
- 180:96ed750bd169
- Child:
- 187:0387e8f68319
--- a/hal/mbed_lp_ticker_api.c Thu Apr 19 17:12:19 2018 +0100 +++ b/hal/mbed_lp_ticker_api.c Fri Jun 22 16:45:37 2018 +0100 @@ -15,7 +15,9 @@ */ #include "hal/lp_ticker_api.h" -#if DEVICE_LOWPOWERTIMER +#if DEVICE_LPTICKER + +void lp_ticker_set_interrupt_wrapper(timestamp_t timestamp); static ticker_event_queue_t events = { 0 }; @@ -26,7 +28,11 @@ .read = lp_ticker_read, .disable_interrupt = lp_ticker_disable_interrupt, .clear_interrupt = lp_ticker_clear_interrupt, +#if LPTICKER_DELAY_TICKS > 0 + .set_interrupt = lp_ticker_set_interrupt_wrapper, +#else .set_interrupt = lp_ticker_set_interrupt, +#endif .fire_interrupt = lp_ticker_fire_interrupt, .get_info = lp_ticker_get_info, };