Skip to content

Commit 899fde5

Browse files
yishai1999kartben
authored andcommitted
samples: pwm: Add overlay for nucleo_l4r5zi board
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]>
1 parent a75ed26 commit 899fde5

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

samples/basic/blinky_pwm/boards/nucleo_l4r5zi.overlay

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
status = "okay";
99
};
1010

11+
&timers1 {
12+
st,prescaler = <10000>;
13+
};
14+
1115
&pwm1 {
1216
status = "okay";
1317
};
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
* SPDX-License-Identifier: Apache-2.0
3+
*
4+
* Copyright (c) 2022 STMicroelectronics
5+
*/
6+
7+
/ {
8+
leds {
9+
status = "disabled";
10+
};
11+
};
12+
13+
&pwmleds {
14+
status = "okay";
15+
};
16+
17+
&timers1 {
18+
st,prescaler = <10000>;
19+
};
20+
21+
&pwm1 {
22+
status = "okay";
23+
};

0 commit comments

Comments
 (0)