Reset a variable from /proc/interrupts on BBB

Hello guys,

I’m working on a BBB for my engineer school projet.
I use it to control 6 motors with encoders.
My goal is to stop motors when my robots legs take a round.
For this I use a H bridge to control motors.
On my BBB i use a gpio and configure it as an input and “rising” on edge.
So to read the value I use “more /proc/interrupts” and my value is on the line of “gpiolib”.
My probleme is that I don’t even know who to reset this value when i want to do an another test.
The only way I’ve found is to restart the BBB.
Do you have any other solutions ?
Thank you in advance.

If you're happy using C then libsoc[1] can do this for you in a simple C
program. If you wish to do it in another language looking at the gpio
code in libsoc will show you the basics of how to do it.

Cheers,
Jack.

[1] https://github.com/jackmitch/libsoc