-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
35 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Interrupt APIs | ||
************** | ||
|
||
The `Interrupt` class provides APIs to register interrupt handlers for GPIO and | ||
configure the interrupts. Interrupts can be configured to trigger on rising | ||
edge, falling edge, high level, low level, or any change in the input signal. A | ||
single interrupt object can manage multiple GPIO pins with separate callbacks | ||
for each GPIO, or separte `Interrupt` objects can be created (though that uses | ||
more memory and CPU as each `Interrupt` will has its own queue, ISR handler, and | ||
task. | ||
|
||
Finally, the `Interrupt` class is also designed to be subclassed if desired to | ||
provide additional functionality, or it can of course be included as a member | ||
within another class. The Button class provides a very simple implementation of | ||
a subclass of `Interrupt`. | ||
|
||
.. ---------------------------- API Reference ---------------------------------- | ||
API Reference | ||
------------- | ||
|
||
.. include-build-file:: inc/interrupt.inc |