I want to use a function to clear flag interrupt for PIT module like: static inline void Pit_Ip_ClearInterruptFlag(uint8 instance, uint8 channel), but it define in .c file. And I see Pit_Ip_StopChannel function can use Pit_Ip_ClearInterruptFlag but it stop timer also. I only want to clear flag interrupt, How can I do that
Hi,
so you would like to use driver to do polling method?
Obviously interrupt is enabled and within drivers interrupt, a channel flag is cleared and callback function called. So you have indication of interrupt using callback function, you need not to clear flag anymore.
Maybe you can use Pit_Ip_DisableChannelInterrupt, it also clear a flag without stopping timer.
Or create own function or write pit register directly.
BR, Petr