mbed library sources, mbed-dev only for TYBLE16
Fork of mbed-dev by
Please refer flowing link.
/users/kenjiArai/notebook/tyble16-module-will-become-a-mbed-family--mbedliza/
Diff: hal/lp_ticker_api.h
- Revision:
- 180:96ed750bd169
- Parent:
- 174:b96e65c34a4d
--- a/hal/lp_ticker_api.h Thu Dec 07 14:01:42 2017 +0000 +++ b/hal/lp_ticker_api.h Wed Jan 17 15:23:54 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