The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
mbed 2
This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.
Diff: hal/lp_ticker_api.h
- Revision:
- 160:5571c4ff569f
- Parent:
- 156:ff21514d8981
- Child:
- 169:a7c7b631e539
--- a/hal/lp_ticker_api.h Thu Nov 23 11:44:04 2017 +0000 +++ b/hal/lp_ticker_api.h Wed Jan 17 16:13:02 2018 +0000 @@ -34,6 +34,20 @@ * @{ */ +typedef void (*ticker_irq_handler_type)(const ticker_data_t *const); + +/** Set low power ticker IRQ handler + * + * @param ticker_irq_handler IRQ handler to be connected + * + * @return previous ticker IRQ handler + * + * @note by default IRQ handler is set to ticker_irq_handler() + * @note this function is primarily for testing purposes and it's not required part of HAL implementation + * + */ +ticker_irq_handler_type set_lp_ticker_irq_handler(ticker_irq_handler_type ticker_irq_handler); + /** Get low power ticker's data * * @return The low power ticker data @@ -80,6 +94,11 @@ */ void lp_ticker_fire_interrupt(void); +/** Get frequency and counter bits of this ticker. + * + */ +const ticker_info_t* lp_ticker_get_info(void); + /**@}*/ #ifdef __cplusplus