mbed library sources. Supersedes mbed-src.
Fork of mbed-dev by
Diff: hal/us_ticker_api.h
- Revision:
- 180:96ed750bd169
- Parent:
- 174:b96e65c34a4d
- Child:
- 186:707f6e361f3e
--- a/hal/us_ticker_api.h Thu Dec 07 14:01:42 2017 +0000 +++ b/hal/us_ticker_api.h Wed Jan 17 15:23:54 2018 +0000 @@ -31,6 +31,20 @@ * @{ */ +typedef void (*ticker_irq_handler_type)(const ticker_data_t *const); + +/** Set 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_us_ticker_irq_handler(ticker_irq_handler_type ticker_irq_handler); + /** Get ticker's data * * @return The low power ticker data @@ -78,6 +92,11 @@ */ void us_ticker_fire_interrupt(void); +/** Get frequency and counter bits of this ticker. + * + */ +const ticker_info_t* us_ticker_get_info(void); + /**@}*/ #ifdef __cplusplus