forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]>
- Loading branch information
1 parent
a75ed26
commit 899fde5
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,10 @@ | |
status = "okay"; | ||
}; | ||
|
||
&timers1 { | ||
st,prescaler = <10000>; | ||
}; | ||
|
||
&pwm1 { | ||
status = "okay"; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
}; |