Skip to content

Conversation

@kl-cruz
Copy link
Contributor

@kl-cruz kl-cruz commented Oct 21, 2025

Used API for standard instantiation and replaced nrfx_err_t error values with errno.

Removed Kconfig symbols for each QDEC instance which are no longer needed.

@kl-cruz kl-cruz force-pushed the nrfx_qdec_rework branch 3 times, most recently from bd6ddcc to eefc0d6 Compare October 21, 2025 14:01
}
}

char const *nrfx_new_error_string_get(int code)
Copy link
Contributor

Choose a reason for hiding this comment

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

SPIM PR has been merged. Please rebase.

Removed Kconfig symbols for each QDEC instance
which are no longer needed.

Upstream PR #: 98002

Signed-off-by: Karol Lasończyk <[email protected]>
Used API for standard instantiation and replaced nrfx_err_t
error values with errno.

Upstream PR #: 98002

Signed-off-by: Karol Lasończyk <[email protected]>
nerr = nrfx_qdec_init(&dev_data->qdec, &config->config, qdec_nrfx_event_handler,
(void *)dev);
if (nerr != 0) {
return -EALREADY;
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: you can just return nerr in this case.

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 is an idea. @masz-nordic Can I follow this idea?

Copy link
Contributor

Choose a reason for hiding this comment

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

In a follow up PR

@masz-nordic masz-nordic merged commit 6b9db37 into nrfconnect:collab-nrfx-4.0 Oct 30, 2025
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants