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

question about race condition in fat32lib SPI functions #1

Open
steve-chamberlin opened this issue Dec 5, 2022 · 0 comments
Open

Comments

@steve-chamberlin
Copy link

In the recvspiblock() function in fat32lib's sdhc.c, there's a comment saying "there is actually a race condition if an interrupt occurs here". Could you explain more about the potential race condition? I've looked at the code and don't see a problem - an interrupt would add some delay but wouldn't harm the SPI transfer as far as I can see. There's also a second comment about "double buffered" that I don't understand - is this referring to the hardware's automatic read data buffer? I started an AVR Freaks thread about these questions here: https://www.avrfreaks.net/s/topic/a5C3l000000UlCuEAK/t193130 Thanks!

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

No branches or pull requests

1 participant