jetson tx2 read gpio status

following the problem relevant to usb1_en,
is there a way to read the jetson gpio status?

thank you
maurizio stefani

hello progsel.stefani,

you could simply access the device node to read the pin status.
for example,

# enter the location of the GPIOs
cd /sys/class/gpio/

or, you may use the kernel APIs to check the pin state.
for example,


static inline int gpio_get_value(unsigned int gpio){...}
static inline void gpio_set_value(unsigned int gpio, int value) {...}