I have a BBB running Debian GNU/Linux 7, 3.8.13-bone47 kernel.  I.e.
pretty standard.

My raw ADC files are to be found at:-

    /sys/devices/ocp.3/44e0d000.tscadc/tiadc/iio:device0/in_voltage0_raw
    /sys/devices/ocp.3/44e0d000.tscadc/tiadc/iio:device0/in_voltage1_raw
    /sys/devices/ocp.3/44e0d000.tscadc/tiadc/iio:device0/in_voltage2_raw
    /sys/devices/ocp.3/44e0d000.tscadc/tiadc/iio:device0/in_voltage3_raw
    /sys/devices/ocp.3/44e0d000.tscadc/tiadc/iio:device0/in_voltage4_raw
    /sys/devices/ocp.3/44e0d000.tscadc/tiadc/iio:device0/in_voltage5_raw
    /sys/devices/ocp.3/44e0d000.tscadc/tiadc/iio:device0/in_voltage6_raw
    /sys/devices/ocp.3/44e0d000.tscadc/tiadc/iio:device0/in_voltage7_raw

Currently I use a find() function written in python which walks the
/sys/devices tree to find these files, but it's very slow.  If I hard
code the file names how often, if at all, will they need changing?

... and/or is there an easier way to find them, i.e. is there a
configuration file somewhere that tells me where they are (or at least
the non-constant bits of the path)?

-- 
Chris Green
ยท

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to