api-hal-interrupt.h 502 B

1234567891011121314151617181920212223
  1. #pragma once
  2. #include <stm32wbxx_ll_tim.h>
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. /** Timer ISR */
  7. typedef void (*ApiHalInterruptISR)();
  8. /** Set Timer ISR
  9. * By default ISR is serviced by ST HAL. Use this function to override it.
  10. * We don't clear interrupt flags for you, do it by your self.
  11. * @timer - timer instance
  12. * @isr - your interrupt service routine or use NULL to clear
  13. */
  14. void api_hal_interrupt_set_timer_isr(TIM_TypeDef *timer, ApiHalInterruptISR isr);
  15. #ifdef __cplusplus
  16. }
  17. #endif