Particle Device OS Updates Thread - #16 by mdma
This thread just above your post
https://docs.particle.io/reference/firmware/photon/#attachinterrupt-
If you are flying under the HAL directly on the bare metal, Particle can do little to squeeze in between
So you are save there as long you are not switching hardware.