I'm not sure the kernel source would be beneficial. If you want to understand how the ADC works or get it going manually, with all the clock domain setup and whatnot, then read the reference manual. The kernel source will be doing all of this, in an abstracted and not so easy to understand way.
The driver/sysfs interface wont load up until the device tree overlay (that describes the ADC) is loaded. Is the BB-ADC overlay loaded? http://analogdigitallab.org/articles/using-adc-beaglebone-black On Thu, Nov 6, 2014 at 7:41 AM, Curt Carpenter <[email protected]> wrote: > Thanks Brandon. Alas, the path used in the c_adc.c software just doesn't > seem to exist in the Debian I'm using -- one of the big sources of > confusion for me. I'm starting to think the only solution is to try to dig > into the kernel source as Joshua suggests -- but that sounds like it might > take more years than I have left :-) > > > On Wednesday, November 5, 2014 4:24:01 PM UTC-6, Brandon I wrote: >> >> 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 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 > [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- 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.
