Hi,
I have attched an IO-pin to trigger an interrupt
volatile int RPM_pulses;
pinMode(RPM_pulses_InputPin, INPUT);
attachInterrupt(RPM_pulses_InputPin, isr_counting_pulses, RISING);
// ISR ISR ISR ISR ISR ISR ISR ISR ISR ISR ISR ISR ISR ISR ISR ISR ISR ISR ISR ISR ISR
void IRAM_ATTR isr_counting_pulses()
{
RPM_pulses++;
} // End of ISR ISR ISR ISR ISR ISR ISR ISR ISR ISR ISR ISR ISR ISR ISR ISR ISR ISR ISR
I would like to know if it is possible to disable just this interrupt while executing the ISR-code
// ISR ISR ISR ISR ISR ISR ISR ISR ISR ISR ISR ISR ISR ISR ISR ISR ISR ISR ISR ISR ISR
void IRAM_ATTR isr_counting_pulses()
{
"DISABLE_just-THIS-IO-PIN-triggered" interrupt
RPM_pulses++;
"ENABLE_just-THIS-IO-PIN-triggered" interrupt
} // End of ISR ISR ISR ISR ISR ISR ISR ISR ISR ISR ISR ISR ISR ISR ISR ISR ISR ISR ISR
I have done some research about how to do that but had no success so far.
Has anybody done this and can post the lones of code?
best regards
Stefan