aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorClemens Gruber <[email protected]>2021-04-15 14:14:49 +0200
committerThierry Reding <[email protected]>2021-04-23 18:45:14 +0200
commit8f4768a56b673cbff3f24cf7b1784852c0f572d1 (patch)
tree0fd1a6b6a495231cde55423c86bd7301e7da727b /lib/test_fortify/write_overflow-strncpy-src.c
parent9af1fba33b5751d71c0e6727a875b9fd7d8a99de (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 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions