Skip to content
Commit 4aaa08ac authored by Jim Paris's avatar Jim Paris Committed by Carles Cufí
Browse files

drivers: pwm_nrfx: Add support for center-aligned mode



Add support for up-and-down counter mode, which aligns the center of
each channel's pulses instead of their initial edges.  This is enabled
on a PWM periphral by adding the "center-aligned" property to the
device tree, e.g.:

    &pwm0 {
        status = "okay";
        center-aligned;
        ch0-pin = <15>;
        ch1-pin = <17>;
        ch1-inverted;
    };

Signed-off-by: default avatarJim Paris <jim@jtan.com>
parent 52453082
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment