diff options
author | Clemens Gruber <[email protected]> | 2021-04-15 14:14:49 +0200 |
---|---|---|
committer | Thierry Reding <[email protected]> | 2021-04-23 18:45:14 +0200 |
commit | 8f4768a56b673cbff3f24cf7b1784852c0f572d1 (patch) | |
tree | 0fd1a6b6a495231cde55423c86bd7301e7da727b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 9af1fba33b5751d71c0e6727a875b9fd7d8a99de (diff) |
pwm: pca9685: Support hardware readout
Implement .get_state to read-out the current hardware state.
The hardware readout may return slightly different values than those
that were set in apply due to the limited range of possible prescale and
counter register values.
Also note that although the datasheet mentions 200 Hz as default
frequency when using the internal 25 MHz oscillator, the calculated
period from the default prescaler register setting of 30 is 5079040ns.
Signed-off-by: Clemens Gruber <[email protected]>
Reviewed-by: Uwe Kleine-König <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions