Hardware counters on GPIOs

Is it possible to read and reset gpio hardware counters in Legato?
How can I do it?
thanks

What hardware counter are you talking about?

how about this?

root@swi-mdm9x28-wp:~# ls /sys/class/gpio/
export gpiochip1012/ gpiochip820/ gpiochip916/ unexport
gpiochip0/ gpiochip1018/ gpiochip852/ gpiochip948/
gpiochip1/ gpiochip200/ gpiochip884/ gpiochip980/

root@swi-mdm9x28-wp:~# echo 36 > /sys/class/gpio/export

root@swi-mdm9x28-wp:~# ls /sys/class/gpio/
export gpiochip1 gpiochip200 gpiochip884 gpiochip980
gpio36 gpiochip1012 gpiochip820 gpiochip916 unexport
gpiochip0 gpiochip1018 gpiochip852 gpiochip948
root@swi-mdm9x28-wp:~# echo 36 > /sys/class/gpio/unexport
root@swi-mdm9x28-wp:~# ls /sys/class/gpio/
export gpiochip1012 gpiochip820 gpiochip916 unexport
gpiochip0 gpiochip1018 gpiochip852 gpiochip948
gpiochip1 gpiochip200 gpiochip884 gpiochip980

I think that I don’t explain.
In a microcontroller there is hardware counters. they add one to the register when a change in the digital input occurs. (without software). this is very fast. In software you only can read this value or reset it.
This would be very useful for my application, but I don’t know if this is accessible by Legato.
I don’t see tools for this

might need to count it in the application.

It is to count fast clock signals as motor r.p.m or anemometers p.e.

have you checked

cat /proc/interrupts | grep msmgpio