ARMmbed / core-util

DEPRECATED: Mbed 3 utilities library
Other
12 stars 17 forks source link

Provide implementation of c critical sections for nrf51 platforms. #91

Closed pan- closed 8 years ago

pan- commented 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.

bogdanm commented 8 years ago

LGTM, but @rgrover, please review. We need this in as soon as we can.

rgrover commented 8 years ago

apart for the minor thing about _entry_count, I'm satisfied with this code.

rgrover commented 8 years ago

I'm happy with this.

bogdanm commented 8 years ago

If you're happy, I'm happy! :)