Skip to content
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

nrfx: hal: auxpll: add additional APIs #182

Merged
merged 1 commit into from
May 28, 2024

Conversation

gmarull
Copy link
Member

@gmarull gmarull commented May 14, 2024

Add some additional APIs for AUXPLL that are needed/useful in the Zephyr context.

* @param dither_off Turn off dither in sigma delta modulator.
* @param range Loop divider base settings.
*/
#define AUXPLL_CFGSTATIC_INIT(out_drive, constant_i, sdm_off, dither_off, range) \
Copy link
Member

Choose a reason for hiding this comment

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

nit: perhaps it would be good to use here parameter names matching the corresponding fields in nrf_auxpll_config_t

@carlescufi carlescufi added the DNM Do Not Merge label May 15, 2024
@gmarull gmarull force-pushed the auxpll-additions branch 3 times, most recently from e8f3820 to e238659 Compare May 16, 2024 07:54
* @param dither_off Turn off dither in sigma delta modulator.
* @param range Loop divider base settings.
*/
#define AUXPLL_CFGSTATIC_RAW_INIT(out_drive, constant_i, sdm_off, dither_off, range) \
Copy link
Member

Choose a reason for hiding this comment

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

Wouldn't it make sense to use this macro inside nrf_auxpll_config_set()?

* @param dither_off Turn off dither in sigma delta modulator.
* @param range Loop divider base settings.
*/
#define AUXPLL_CFGSTATIC_RAW_INIT(out_drive, constant_i, sdm_off, dither_off, range) \
Copy link
Member

Choose a reason for hiding this comment

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

This macro name should be prefixed with NRF_.

Add some additional APIs for AUXPLL that are needed/useful in the Zephyr
context.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
@gmarull
Copy link
Member Author

gmarull commented May 28, 2024

RAW accessor/initializer moved to #185

@gmarull gmarull requested a review from anangl May 28, 2024 10:01
@carlescufi carlescufi merged commit fc02d66 into zephyrproject-rtos:master May 28, 2024
@gmarull gmarull deleted the auxpll-additions branch May 28, 2024 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DNM Do Not Merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants