-
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.
Add number functions for ptr -> N runtime query
If you discard type information, it's nice to have a way to re-acquire the N associated with a peripheral. This commit introduces the `number` functions for that purpose. This can let users create thin drivers just around a register block static reference, and only acquire the number at runtime. Document this new function as an advanced usage, along with one other (unrelated) usage pattern.
- Loading branch information
Showing
1 changed file
with
18 additions
and
1 deletion.
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