EVE 1.0
critreg.c File Reference

Fast version of nRF soft-device-friendly critical regions. Original Nordic critical region implementation masks user interrupts in NVIC, which is a perfectly fine, but quite slow method. This implementation uses other approach: it disables application interrupts via BASEPRI register, which is much faster. High-priority softdevice interrupts are not affected. More...

#include <app_util_platform.h>
#include <app_util.h>
#include <lib/assert.h>
Include dependency graph for critreg.c:

Go to the source code of this file.

Detailed Description

Fast version of nRF soft-device-friendly critical regions. Original Nordic critical region implementation masks user interrupts in NVIC, which is a perfectly fine, but quite slow method. This implementation uses other approach: it disables application interrupts via BASEPRI register, which is much faster. High-priority softdevice interrupts are not affected.

Author
DT, Jetro AS

Definition in file critreg.c.