S32K3 with RTD 4.4_1.0.0

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K3 with RTD 4.4_1.0.0

997 Views
AnhNguyenDuc
NXP Employee
NXP Employee

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

0 Kudos
Reply
1 Reply

980 Views
PetrS
NXP TechSupport
NXP TechSupport

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