https://github.com/adafruit/adafruit-beaglebone-io-python/blob/master/source/c_adc.c

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 the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to