echo cape-bone-iio > /sys/devices/bone_capemgr.*/slotsI keep searching for some sort of definitive guide to using the IO capabilities of the board, but have had no luck. There is nothing on software in the SRM, and memory-mapping to the registers described in the data sheet seems to be frowned upon.
which indeed adds something to slots. Then the instructions say to enter
cat /sys/devices/ocp.2/helper.11/AIN1
but I discover that there is no directory named "ocp.2" in /sys/devices, or anywhere else that I can
find. There is an ocp.3, but it doesn't contain "helper.11" ... and so on.
The adc source for bbio should be useful.
Keep in mind that these sysfs interfaces are incredibly slow compared to memory poking since each operation requires opening, reading/writing and closing the file. For example, with GPIO, you're limited to a few hundred khz (regardless of language since it's just file operations). With mmap and python, you can toggle at > 3Mhz. C a bit faster. Kernel, 12Mhz. There are python and closing libraries that handle all of the memory poking.
Also, check out libpruio. It will setup the pin muxing, and provides quick adc and GPIO support.
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/9IRWOZ8b2n4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.