1 of 1 people found this helpful
/// Disables interrupts and preemption. Use with caution; never lock out interrupts for more than ~100uS.
/// \return Returns an opaque current posture that is to be used when restoring interrupts.
/// Enables/restores interrupt and preemption state.
/// \param _newPosture The value returned by bleapputil_cpuIntDisable previously.
void bleapputil_cpuIntEnable(UINT32 _newPosture);
UINT32 posture = bleapputil_cpuIntDisable();
// Interrupts and preemption are disabled now. Do something very quickly.
// Locking out interrupts for more than ~100uS may adversely affect the system.
// When done, unlock the state.