Skip to content

Commit 33d4ac4

Browse files
Waqas Mazharnashif
authored andcommitted
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 <[email protected]>
1 parent ffa1515 commit 33d4ac4

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

samples/basic/blinky_pwm/README.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ In these other cases, however, manual wiring is necessary:
5858
- connect PWM2 (PA0) to an LED
5959
* - :ref:`nucleo_f103rb_board`
6060
- connect PWM1 (PA8) to an LED
61+
* - :ref:`nucleo_wb55rg_board`
62+
- connect PWM1 (PA8) to an LED
6163

6264
Building and Running
6365
********************
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*
2+
* SPDX-License-Identifier: Apache-2.0
3+
*
4+
* Copyright (c) 2021 Planet Innovation
5+
*/
6+
7+
/ {
8+
pwmleds {
9+
compatible = "pwm-leds";
10+
external_pwm_led: external_pwm_led {
11+
pwms = <&pwm1 1 0 PWM_POLARITY_NORMAL>;
12+
};
13+
};
14+
15+
aliases {
16+
pwm-led0 = &external_pwm_led;
17+
};
18+
};

0 commit comments

Comments
 (0)