Skip to content
Commit c1852beb authored by Oliver Barta's avatar Oliver Barta Committed by Carles Cufí
Browse files

samples: basic: blinky_pwm: fix divider setting for rpi_pico



The fractional part of the divider value is a 4 bit value. Setting it to
255 leads to an overflow in pwm_rpi_get_clkdiv(). This has resulted in a
slight deviation from the reported timing, which is btw. printed in nsec.

Fixes: c5cb0d1a ("samples: blinky_pwm: Fix sample for rpi_pico")
Signed-off-by: default avatarOliver Barta <o.barta89@gmail.com>
parent 02d5290e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment