Browse Source
If the data-ready polling is done entirely on GPIO pins, it isn't necessary to hold the semaphore before we now we have data to consume. In that case, only take the SPI semaphore if there's new data available. On the other hand, if at least one SPI transaction is done in order to check for new data, then it makes sense to take the semaphore beforehand.mission-4.1.18
Gustavo Jose de Sousa
10 years ago
committed by
Andrew Tridgell
1 changed files with 32 additions and 0 deletions
Loading…
Reference in new issue