-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tools/pbstate: Add clear/set API for board regs
This commits adds a clear/set function that takes a clear and set mask. This may be useful in situations where only modification if specific bits is desired. It might be dangerous to first call the read_board_reg function, perform modifciations and then call the set_board_reg function since another process might have done modifications to the register. The clear_set_board_reg function will acquire the lock read/modify/write and then release the lock.
- Loading branch information
1 parent
d58b280
commit dcabe0d
Showing
2 changed files
with
28 additions
and
0 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