-
Notifications
You must be signed in to change notification settings - Fork 3k
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
nRF52: GPIO: Assert that init succeeds #15189
Conversation
@boraozgen, thank you for your changes. |
CI started |
Jenkins CI Test : ❌ FAILEDBuild Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
The failures look related, Are we hitting the assert (too many irq inputs under tests for this platform) ? |
Probably they hit the assert, but I'm not sure if the number of inputs is the reason, as the tests were working before, the inputs must have worked properly. Maybe the function returns another code in some cases, it is hard to tell. I'll try to look into it, but we could drop this PR if it continues to fail and make sure that the configuration is documented properly. |
90ad5e9
to
352beff
Compare
Pull request has been modified.
It seems that the init functions are returning Lines 307 to 332 in ff061e8
|
Jenkins CI Test : ✔️ SUCCESSBuild Number: 2 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Summary of changes
The issue with number of input interrupts was not fixed properly in #11622. If more
InterruptIn
s are defined than configured withNRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS
, the initialization failed silently and the additional inputs did not work. This change asserts that the initialization succeeds, so that the issue is at least visible to the developer.Impact of changes
Migration actions required
Documentation
None
Pull request type
Test results
Reviewers