Hello,
I would like to ask your help for examples of nRF52 code, when entering and exiting critical regions (disabling interrupts without switching off a bluetooth connection) like:
sd_nvic_critical_region_enter();
//code to execute
sd_nvic_critical_region_exit();
I saw that the definition of the enter function (in nrf_nvic.c
) require a pointer of uint8_t
:
static inline uint32_t sd_nvic_critical_region_enter(uint8_t * p_is_nested_critical_region)`
How do I choose the p_is_nested_critical_region
parameter ?
Thank you in advance