Skip to content

Conversation

eivindj-nordic
Copy link
Contributor

Add sample to show the use of PWM.

@eivindj-nordic eivindj-nordic added this to the v0.9.0 milestone Sep 1, 2025
@eivindj-nordic eivindj-nordic self-assigned this Sep 1, 2025
@eivindj-nordic eivindj-nordic requested review from a team as code owners September 1, 2025 07:24
Copy link

github-actions bot commented Sep 1, 2025

You can find the documentation preview for this PR here.

@github-actions github-actions bot added changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added. doc-required PR must not be merged without tech writer approval. labels Sep 1, 2025
Overview
********

The sample initializes a PWM instance and use that to iluminate LED1 and LED3 on the device.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The sample initializes a PWM instance and use that to iluminate LED1 and LED3 on the device.
The sample initializes a PWM instance that blinks LED1 and LED3 on the device.


.. note::

PWM signal can be exposed on GPIO pin only within same domain.
Copy link
Contributor

@MirkoCovizzi MirkoCovizzi Sep 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
PWM signal can be exposed on GPIO pin only within same domain.
The PWM signal can be exposed only on GPIO pins that belong to the same domain as the target pins.

A suggestion, but maybe it can be improved further.


PWM signal can be exposed on GPIO pin only within same domain.
For nRF54L-series there is only one domain which contains both PWM and GPIO: PWM20/21/22 and GPIO Port P1.
Only LEDs connected to P1 can work with PWM, in this case LED1 and LED3.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it could be a good idea to insert here a link to the datasheet or some reference where the user can check this information.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is required here. It can make sense when we only have the nRF54L15 DK, though for other boards it might be different. Then this will also require a rewrite.


config PWM_IRQ_PRIO
int "PWM IRQ priority"
default 5
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this mirror other similar Kconfigs of other peripheral libraries? Taking into account SoftDevice and such.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It already mirrors how it is done for LPUARTE and UARTE.

Add sample to show the use of PWM.

Signed-off-by: Eivind Jølsgard <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added. doc-required PR must not be merged without tech writer approval.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants