AnsweredAssumed Answered

Why gpio value is giving non zero instead of 1 if it is high?

Question asked by Bandaru Lavanya on Apr 17, 2017
Latest reply on Apr 24, 2017 by Bandaru Lavanya

Hi All,

 

I am using kernel verson 3.14.28 with dts support. When i am doing cat /sys/class/gpio/gpio157

 

root@imx6_fs_wcam:/home# cat /sys/class/gpio/gpio157/value
0 (when low)
root@imx6_fs_wcam:/home# cat /sys/class/gpio/gpio157/value
536870912 (when high)

 

Why instead of 1 we are getting 536870912  this value here?

If any one knows can you explain me.

 

Thanks

Lavanya

Outcomes