-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i2c_master: use notifications to wait on sync tranasctions
The previous commit uses semaphores, this commit converts semaphores to task notifications because FreeRTOS claims they are faster, and indeed they are: Notifications (this commit): - 100Hz: samples/sec= 6654 with 18% CPU (efficiency: 369.7 samples/%cpu) - 1000Hz: samples/sec= 6636 with 18% CPU (efficiency: 368.7 samples/%cpu) Semaphores (previous commit): - 100Hz: samples/sec= 6637 with 23% CPU (efficiency: 288.6 samples/%cpu) - 1000Hz: samples/sec= 6610 with 24% CPU (efficiency: 275.4 samples/%cpu) Signed-off-by: Eric Wheeler <[email protected]>
- Loading branch information
Showing
2 changed files
with
12 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters