This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Detecting interrupts in a block of code

I'm working with the nRF51822, using the S110 soft device.

My application includes some measurement functions that are timing critical. Ideally, the code would be atomic, but I think this is impractical while using the soft device.

Instead, I would like to be able to detect if a measurement is interrupted and, if so, discard the measurement and repeat it. Is there any way to do this?

The measurement cycles vary in time, but will generally be < 100 us.

Thanks, Philip

Parents Reply Children
Related