-
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
Fix the issue #4357: NRF52 doesn't support simultaneous use of I2C and SPI. #4634
Fix the issue #4357: NRF52 doesn't support simultaneous use of I2C and SPI. #4634
Conversation
@@ -277,9 +277,11 @@ void spi_init(spi_t *obj, | |||
} | |||
} | |||
|
|||
for (i = 0; i < SPI_COUNT; ++i) { | |||
for (i = SPI_COUNT - 1; i < SPI_COUNT; i--) { |
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.
The loop condition should be i >= 0
.
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.
sure: int i.
Use serial-box of Nordic nRF5 SDK to share resource between SPI and I2C. SPI is allocated from highest hw instance number resource in order to allocate as many I2C instances as possible.
aa8b44e
to
3236336
Compare
@theotherjimmy travis-ci failure is not related to the changes. |
@nvlsianpu Yep. I restarted travis. It should not fail in the same way this time. I hope it passes. |
retest uvisor |
@0xc0170 what's the status? |
@pan- Would you run your BT testing? /morph test |
@theotherjimmy There is literally no point at running bluetooth tests, this PR fix an i2c and spi issue. None of those peripherals are used during BLE testing. |
Thanks! We'll wait for morph test then. |
Result: SUCCESSYour command has finished executing! Here's what you wrote!
OutputAll builds and test passed! |
Description
Add Support for sharing resources between SPI and TWI instancess.
This fix the issue #4357: NRF52 doesn't support simultaneous use of I2C and SPI.
Now this resources are reserved by each of hal driver using nRF5 SDK's serial-box mechanism.
Status
READY