-
Notifications
You must be signed in to change notification settings - Fork 341
nfc: nfc_platform: replace nrfx_err_t with int #1901
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
base: collab-nrfx-4.0
Are you sure you want to change the base?
nfc: nfc_platform: replace nrfx_err_t with int #1901
Conversation
NRFX drivers now return errno codes. Signed-off-by: Michał Stasiak <michal.stasiak@nordicsemi.no>
a2cb622 to
c7f6f08
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.
@mstasiaknordic NRFX error codes are checked directly by the NFC libs: T2T and T4T. They need an update: modify sources, build and deploy, together with the hal_nordic update in sdk-nrf.
| * NRFX_NFCT_NFCID1_DOUBLE_SIZE, or NRFX_NFCT_NFCID1_TRIPLE_SIZE. | ||
| */ | ||
| nrfx_err_t nfc_platform_nfcid1_default_bytes_get(uint8_t * const p_nfcid1_buff, | ||
| int nfc_platform_nfcid1_default_bytes_get(uint8_t * const p_nfcid1_buff, |
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.
Could you please align indentation in the line below?
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.
Additionally https://github.com/nrfconnect/sdk-nrfxlib/blob/main/nfc/src/nfc_nrfx_error_to_nfc.c probably can be removed then.
In the end I think this alignment should be done in the source repo first and come as a single PR to sdk-nrfxlib.



NRFX drivers now return errno codes.