forked from GlasgowEmbedded/glasgow
-
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.
access.direct: implement selective pin inversion with
--pin-x 0#
.
Amaranth supports inversion for any pin and for any I/O core on the I/O buffer level. This mechanism obviates the need for ad-hoc inversion in any applets, but was not exposed until now. Any pin can now be inverted via the command-line interface using one of the following syntaxes: * single pin: `--pin-x 0#` * pin range: `--pins-x 0:8#` (inverts all of them) * pin list: `--pins-x 0,1#,2#,3` (inverts only specified pins) Pull-ups configured for a pin with inversion get converted to pull-downs and vice versa.
- Loading branch information
1 parent
3454c82
commit ecca4f6
Showing
3 changed files
with
63 additions
and
37 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
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