Option for nested rtimer interrupts
This commit is contained in:
parent
f36c97a9a4
commit
03ab525652
|
@ -82,9 +82,16 @@
|
|||
ISR (TIMER3_COMPA_vect) {
|
||||
ENERGEST_ON(ENERGEST_TYPE_IRQ);
|
||||
|
||||
/* Disable rtimer interrupts */
|
||||
ETIMSK &= ~((1 << OCIE3A) | (1 << OCIE3B) | (1 << TOIE3) |
|
||||
(1 << TICIE3) | (1 << OCIE3C));
|
||||
|
||||
#if RTIMER_CONF_NESTED_INTERRUPTS
|
||||
/* Enable nested interrupts. Allows radio interrupt during rtimer interrupt. */
|
||||
/* All interrupts are enabled including recursive rtimer, so use with caution */
|
||||
sei();
|
||||
#endif
|
||||
|
||||
/* Call rtimer callback */
|
||||
rtimer_run_next();
|
||||
|
||||
|
|
Loading…
Reference in a new issue