Hey guys,
looking a way to write in the interrupt control register in order to temporary stop and then re-instate an interrupt without using attachInterrupt / detachInterrupt every time.
On the AVR chips this is usually done with EIMSK by masking bits like EIMSK &= 0b00000010; to disable it for example or EIMSK |= 0b00000001; to re-enable.
Is it possible to use such method on Feather Sense (nRF52840)?
the compiler doesn't recognize EIMSK.
EIMSK or how to disable/enable interrupts on Feather (nrf528
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- kotarak
- Posts: 5
- Joined: Fri Apr 02, 2021 11:40 am
- jevada
- Posts: 194
- Joined: Fri Dec 15, 2017 5:29 am
Re: EIMSK or how to disable/enable interrupts on Feather (nr
The standard Arduino way is interrupts() and noInterrupts(), see https://www.arduino.cc/reference/en/lan ... nterrupts/
Please be positive and constructive with your questions and comments.