-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
boards/common/nrf52xxxdk: Expose LEDs via saul_pwm #17399
Conversation
* @ingroup boards_common_nrf52 | ||
* @ingroup boards_common_nrf52xxxdk |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doxygen group defined here:
RIOT/boards/common/nrf52xxxdk/include/periph_conf_common.h
Lines 9 to 19 in 0afed1d
/** | |
* @defgroup boards_common_nrf52xxxdk NRF52 DK common | |
* @ingroup boards_common_nrf52 | |
* @{ | |
* | |
* @file | |
* @brief Peripheral configuration for the nRF52 DK | |
* | |
* @author Hauke Petersen <hauke.petersen@fu-berlin.de> | |
* | |
*/ |
So it was indeed missorted before
I was about to complain about this relying on the boards to set up their PWM with matching pins, but as the PWM setup is done in the same module, that's fine. (A comment in periph_conf_common.h indicating that this assignment is relied on by the pwm_params might be useful.) I don't have any of the boards, you indicated you tested it on nrf52840dk. Any others you have at hand? (Not insisting on further checks though, as the PWM channels were already configured and thus, if it's broken after this commit it was before as well). |
@@ -1,5 +1,6 @@ | |||
ifneq (,$(filter saul_default,$(USEMODULE))) | |||
USEMODULE += saul_gpio | |||
USEMODULE += saul_pwm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kconfig change is missing, please re-add ci label when addressed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That CI check is worth its weight in gold. (Metaphorically speaking, assigning some arbitrary weight to the check). Without that, Kconfig migration would be a whack-a-mole. I think I should just put it in my commit hooks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In fact, this would have not been caught by Murdock, since SAUL is not yet fully modeled. Nice catch!
This allows dimming the LEDs instead of only turning them on and off.
490f3f9
to
c118df3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I trust your test (in combination with the PWMs already being configured for these pins). ACK.
Thanks for the quick review! |
Contribution description
As the title says. This allows dimming the LEDs instead of only turning them on and off.
Testing procedure
Note: The LEDs were dimmed as expected.
Issues/PRs references
None