Hey Bill,

I am running a Ubuntu 14.04 image, and /lib/firmware looks like it comes 
from the Bizarro universe.  no 'bone' or 'pwm' files at all.
The only thing remotely familiar is am335x-pm-firmware.bin.   The sample 
code I tried to run referred to ocp.2.  I got some of the digital GPIO pins 
talking, 
but I couldn't get analog input working on 14.04.

Code where working:

int main()
{
        FILE *io,*iodir,*ioval;

        io = fopen("/sys/class/gpio/export", "w");
        fseek(io,0,SEEK_SET);
        fprintf(io,"%d",45);
        fflush(io);

        iodir = fopen("/sys/class/gpio/gpio45/direction", "w");
        fseek(iodir,0,SEEK_SET);
        fprintf(iodir,"out");
        fflush(iodir);


Code not Working:

 FILE *pwm,*duty,*period,*run;

        pwm = fopen("/sys/devices/bone_capemgr.9/slots", "w");
        fseek(pwm,0,SEEK_SET);
        fprintf(pwm,"am33xx_pwm");
        fflush(pwm);

        fprintf(pwm,"bone_pwm_P8_13");
        fflush(pwm);

        period = fopen("/sys/devices/ocp.2/pwm_test_P8_13.14/period", "w");
        fseek(period,0,SEEK_SET);
        fprintf(period,"%d",200000000);
        fflush(period);


Easy to figure out why it fails -   no ocp.2 files, and nothing in ocp.3 
similar.     

-- 
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