Tool/software: TI-RTOS
Hey guys,
I have two pins set as HwI to detect movements with a PIR sensor and two comparators. Therefor I use the PIN.h driver. It could be, that the interrupt is triggered not only once but a few times when the impulse hits the pin. And this causes small current peaks with a 3ms duration I want to avoid.
I want to enable the interrupt after the 50ms. I think using a timer for the 50ms is the best way and in the timers callback function I would enable the HwI again. And in the HwI Callback function I would disable the Hwi. However, going through the driver reference, I do not see an elegant way to proceed.
How can I disable/enable the interrupt using the PIN driver for 50ms after each occurrence?
Any thoughts on that?
kind regards
Slev1n