mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-23 03:03:10 +00:00
24 lines
502 B
C
24 lines
502 B
C
|
#pragma once
|
||
|
|
||
|
#include <stm32wbxx_ll_tim.h>
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
/** Timer ISR */
|
||
|
typedef void (*ApiHalInterruptISR)();
|
||
|
|
||
|
/** Set Timer ISR
|
||
|
* By default ISR is serviced by ST HAL. Use this function to override it.
|
||
|
* We don't clear interrupt flags for you, do it by your self.
|
||
|
* @timer - timer instance
|
||
|
* @isr - your interrupt service routine or use NULL to clear
|
||
|
*/
|
||
|
void api_hal_interrupt_set_timer_isr(TIM_TypeDef *timer, ApiHalInterruptISR isr);
|
||
|
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|