I put my microcontroller on stop mode when there is no motion in order to save battery. So I want an interruption which is triggered by the bmi270 to restart the chip and the program when there is motion. For now, I can read some acceleration values using the example code "accel_gyro". So my question is: what do I have to change in order to make the bmi270 trigger a callback that restarts the chip ? My code is in the attachments.
... View more