forked from doceme/py-spidev
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add open_path() Python method to permit persistent device symlinks.
Adds to the functionality provided by the open() call (which hard-codes the opening of /dev/spidev<bus>.<chipselect> device file paths). Because the bus number allocation may not be knowable in advance (bus numbers are dynamically allocated by the Linux kernel), open_path() allows the user to employ udev rules to deterministically create a symlink to the correct hardware device at boot and/or hot-plug time. Part of doceme#129
- Loading branch information
Showing
2 changed files
with
34 additions
and
3 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