The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
mbed 2
This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.
Diff: drivers/InterruptIn.h
- Revision:
- 169:a7c7b631e539
- Parent:
- 156:ff21514d8981
- Child:
- 170:e95d10626187
--- a/drivers/InterruptIn.h Thu May 24 15:35:55 2018 +0100 +++ b/drivers/InterruptIn.h Fri Jun 22 15:38:59 2018 +0100 @@ -66,6 +66,15 @@ * @param pin InterruptIn pin to connect to */ InterruptIn(PinName pin); + + /** Create an InterruptIn connected to the specified pin, + * and the pin configured to the specified mode. + * + * @param pin InterruptIn pin to connect to + * @param mode The mode to set the pin to (PullUp/PullDown/etc.) + */ + InterruptIn(PinName pin, PinMode mode); + virtual ~InterruptIn(); /** Read the input, represented as 0 or 1 (int) @@ -153,6 +162,8 @@ Callback<void()> _rise; Callback<void()> _fall; + + void irq_init(PinName pin); }; } // namespace mbed