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:
parent
1c547580e4
commit
d41f69559a
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue