-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pw_digital_io_mcuxpresso: Add McuxpressoDigitalInOutInterrupt support
This commit adds a new DigitalIo implementation backed by Mcuxpresso, with input, output, and interrupt support. Compared to the existing interrupt capable class (McuxpressoDigitalInInterrupt), this class uses the GPIO interrupt block, rather than the PINT subsystem. This enables using interrupts on more pins (because PINT does not support all of the GPIO ports), an unbounded number of GPIOs (because PINT has a total maximum number of interrupts supported), and allows proper input and output support, getting and setting the state of the line as needed. The current version of the class does not support changing the direction of the pin (due to the lack of such a method in the DigitalIo interface) TEST: elipsitz and I tested the input, output and interrupt functionality in 2 unique implementations Change-Id: I6fda0d63b0beb9a93508734dfd0d6e0bc9a2c40c Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/247972 Lint: Lint 🤖 <[email protected]> Commit-Queue: Richard Pasek <[email protected]> Reviewed-by: Austin Foxley <[email protected]> Reviewed-by: Jonathon Reinhart <[email protected]> Reviewed-by: Eli Lipsitz <[email protected]>
- Loading branch information
Richard Pasek
authored and
CQ Bot Account
committed
Jan 9, 2025
1 parent
34521ea
commit 8a5fc59
Showing
5 changed files
with
254 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
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