Skip to content

Commit

Permalink
samples: pwm: Add overlay for nucleo_l4r5zi board
Browse files Browse the repository at this point in the history
Add Devicetree overlay for sample drivers/led/pwm and fix the one in
basic/blinky_pwm for nucleo_l4r5zi board to set appropriate to enable
pwdleds and set appropriate timer prescaler.

Signed-off-by: Yishai Jaffe <[email protected]>
  • Loading branch information
yishai1999 authored and kartben committed Dec 17, 2024
1 parent a75ed26 commit 899fde5
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
4 changes: 4 additions & 0 deletions samples/basic/blinky_pwm/boards/nucleo_l4r5zi.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
status = "okay";
};

&timers1 {
st,prescaler = <10000>;
};

&pwm1 {
status = "okay";
};
23 changes: 23 additions & 0 deletions samples/drivers/led/pwm/boards/nucleo_l4r5zi.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright (c) 2022 STMicroelectronics
*/

/ {
leds {
status = "disabled";
};
};

&pwmleds {
status = "okay";
};

&timers1 {
st,prescaler = <10000>;
};

&pwm1 {
status = "okay";
};

0 comments on commit 899fde5

Please sign in to comment.