mirror of https://github.com/OpenIPC/wiki.git
Create sigmastar-research.md
parent
969a03c1a5
commit
48bb7b2acc
|
@ -0,0 +1,16 @@
|
||||||
|
# OpenIPC Wiki
|
||||||
|
[Table of Content](../README.md)
|
||||||
|
|
||||||
|
SigmaStar SoC research and debugging notes
|
||||||
|
------------------------------------------
|
||||||
|
|
||||||
|
#### Control PWM channels on SigmaStar SSC338Q
|
||||||
|
|
||||||
|
Switch GPIO1 to PWM1 mode and set parameters
|
||||||
|
```
|
||||||
|
devmem 0x1F207994 16 0x1121
|
||||||
|
echo 1 > /sys/class/pwm/pwmchip0/export
|
||||||
|
echo 10000 > /sys/class/pwm/pwmchip0/pwm1/period
|
||||||
|
echo 25 > /sys/class/pwm/pwmchip0/pwm1/duty_cycle
|
||||||
|
echo 1 > /sys/class/pwm/pwmchip0/pwm1/enable
|
||||||
|
```
|
Loading…
Reference in New Issue