HI,
following the problem relevant to usb1_en,
is there a way to read the jetson gpio status?
thank you
maurizio stefani
HI,
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,
<i>$l4t-r32.2/public_sources/kernel_src/kernel/kernel-4.9/include/linux/gpio.h</i>
static inline int gpio_get_value(unsigned int gpio){...}
static inline void gpio_set_value(unsigned int gpio, int value) {...}