Skip to content
Commit c888d6a3 authored by Jan Hilsdorf's avatar Jan Hilsdorf Committed by Carles Cufí
Browse files

drivers: pwm: rpi_pico: Use “pico_channel” instead of “ch”



pwm_set_chan_level uses slice channels A(=0) or B(=1) and not Zephyr
channel (0..15). So PWM doesn't work for channels > 1. There is already
a function (pwm_rpi_channel_to_pico_channel) which does the right thing,
but it isn't used for pwm_set_chan_level.

Signed-off-by: default avatarJan Hilsdorf <jan.hilsdorf@gmail.com>
parent 8ef75e2a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment