Create sigmastar-research.md

pull/318/head
Signor Pellegrino 2024-02-06 11:00:22 +03:00 committed by GitHub
parent 969a03c1a5
commit 48bb7b2acc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 16 additions and 0 deletions

View File

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