2019-05-13 03:28 PM
How to get interrupt state (enabled or disabled) via HAL?
In my void I need to do HAL_TIM_OC_Stop_IT() only if this interrupt enabled.
Solved! Go to Solution.
2019-05-13 04:34 PM
if (__HAL_TIM_GET_IT_SOURCE(&htim3,TIM_IT_CC1)==SET){
}
it works for tim3 compare interrupt via chanel 1 !
2019-05-13 04:27 PM
I'm sure they are all enumerated in the TIM's include and/or source file. Do a search/grep on the function you're using to enable them.
2019-05-13 04:34 PM
if (__HAL_TIM_GET_IT_SOURCE(&htim3,TIM_IT_CC1)==SET){
}
it works for tim3 compare interrupt via chanel 1 !