Closed pan- closed 8 years ago
This implementation will use sd_nvic_critical_region_enter if the softdevice is enabled, otherwise it will use __disable_irq().
This implementation also allow a user to start a critical section while interrupts are already disabled.
LGTM, but @rgrover, please review. We need this in as soon as we can.
apart for the minor thing about _entry_count, I'm satisfied with this code.
_entry_count
I'm happy with this.
If you're happy, I'm happy! :)
This implementation will use sd_nvic_critical_region_enter if the softdevice is enabled, otherwise it will use __disable_irq().
This implementation also allow a user to start a critical section while interrupts are already disabled.