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

mcu/nordic: Set flags before running SPI callback #3133

Merged
merged 1 commit into from
Feb 5, 2024
Merged

Conversation

Uks2
Copy link
Contributor

@Uks2 Uks2 commented Jan 30, 2024

When a non-blocking SPI transfer has finished, our spi->spi_xfr_flag and the hardware interrupt flag are now reset before the spi->txrx_cb_func is run. This allows the callback to start a new SPI transfer.

I've tested the nRF52 changes and they're fine. I'm making the bold assumption that the other nRFs work the same.

When a non-blocking SPI transfer has finished, our `spi->spi_xfr_flag`
and the hardware interrupt flag are now reset before the
`spi->txrx_cb_func` is run.  This allows the callback to start a new SPI
transfer.
Copy link
Contributor

@kasjer kasjer left a comment

Choose a reason for hiding this comment

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

Seems reasonable to me, not tested though.

@kasjer kasjer merged commit 61844a0 into apache:master Feb 5, 2024
16 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.

2 participants