samples: basic: blinky_pwm: Add support for nucleo_wb55rg platform

Create a board overlay file in the application directory to add
pwm-led0 entry over default device tree. Also, include instruction
in the README file that connection of external LED at pin PA8 is
required for the demo to work.

Signed-off-by: Waqas Mazhar <waqas.mazhar@planetinnovation.com.au>
This commit is contained in:
Waqas Mazhar 2021-08-27 00:44:49 +00:00 committed by Anas Nashif
commit 33d4ac43e6
2 changed files with 20 additions and 0 deletions

View file

@ -58,6 +58,8 @@ In these other cases, however, manual wiring is necessary:
- connect PWM2 (PA0) to an LED
* - :ref:`nucleo_f103rb_board`
- connect PWM1 (PA8) to an LED
* - :ref:`nucleo_wb55rg_board`
- connect PWM1 (PA8) to an LED
Building and Running
********************

View file

@ -0,0 +1,18 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright (c) 2021 Planet Innovation
*/
/ {
pwmleds {
compatible = "pwm-leds";
external_pwm_led: external_pwm_led {
pwms = <&pwm1 1 0 PWM_POLARITY_NORMAL>;
};
};
aliases {
pwm-led0 = &external_pwm_led;
};
};