Hi,
Thank you. Just ran into, That's I am back to forum., though I hack it's 
initialization.


pwm1=$(config-pin -l P9.16 | grep pwm)
pwm2=$(config-pin -l P9.14 | grep pwm)
[[ ! -z $pwm1 ]] && config-pin  P9.14 pwm
[[ ! -z $pwm2 ]] && config-pin  P9.16 pwm

pushd /sys/class/pwm
right=$(ls -l | grep 48302200 | awk '{print $9}')
echo "found right chip $right"
if [[ ! -z $right ]];then
        pwmsys=$right
        pushd $pwmsys
        echo 0 > export
        echo 1 > export
        pushd pwm0
                echo 10000 > period 
                echo 5000 > duty_cycle
                echo normal > polarity 
                echo 1 > enable
        popd
        pushd pwm1
                echo 10000 > period 
                echo 5000 > duty_cycle 
                echo normal > polarity 
                echo 1 > enable 
        popd
        popd
fi
popd





<https://lh3.googleusercontent.com/-tt8GpQ2MDGA/WodPesKQlNI/AAAAAAAACSU/r_fPjm4c9qA5bFSlC797bPlRYX2DcNTrgCLcBGAs/s1600/pwmbefore.png>
 
<https://lh3.googleusercontent.com/-tt8GpQ2MDGA/WodPesKQlNI/AAAAAAAACSU/r_fPjm4c9qA5bFSlC797bPlRYX2DcNTrgCLcBGAs/s1600/pwmbefore.png>
J

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/c2fbfa55-017e-4e0b-bacc-7e77497aef53%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to