samples: drivers: led pwm running on pwm led of the nucleo boards

Configure the overlay file to run the samples/drivers/led_pwm
on the nucleo_l073rz and nucleo_f091rc board.
The green led is used on pa5 for pwm channels of timers2 channel
The leds node has to be disabled to let the pin for the pwm nodes.
The spi1 is disabled in that sample to avoid conflict on pa5 pin.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
Francois Ramu 2023-01-23 15:22:36 +01:00 committed by Fabio Baltieri
parent 1c547580e4
commit d41f69559a
2 changed files with 14 additions and 0 deletions

View file

@ -4,6 +4,13 @@
* Copyright (c) 2022 STMicroelectronics
*/
/ {
/* do not define the led on the pa5 but a pwmleds */
leds {
status = "disabled";
};
};
&pwmleds {
/* NOTE: enable here because it is disabled by default */
status = "okay";

View file

@ -4,6 +4,13 @@
* Copyright (c) 2022 STMicroelectronics
*/
/ {
/* do not define the led on the pa5 but a pwmleds */
leds {
status = "disabled";
};
};
&pwmleds {
/* NOTE: enable here because it is disabled by default */
status = "okay";