Skip to content
Commit 61ef77a7 authored by Fabio Baltieri's avatar Fabio Baltieri Committed by Anas Nashif
Browse files

pwm: npcx: only reconfigure PWM if necessary



Currently pwm_npcx_pin_set() disables and reconfigures the PWM
controller every time its called, causing the PWM line to pulse even if
only the duty cycle is changed.

Modify the function so that controller is only disabled if any of the
configuration has to be changed, only set the new DCR otherwise.

Signed-off-by: default avatarFabio Baltieri <fabiobaltieri@google.com>
parent 57b55c38
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment