mirror of https://github.com/ARMmbed/mbed-os.git
InterruptIn.h: Update comments
parent
7126f1e2b5
commit
01448df55a
|
@ -48,6 +48,7 @@ namespace mbed {
|
|||
* }
|
||||
*
|
||||
* int main() {
|
||||
* // register trigger() to be called upon the rising edge of event
|
||||
* event.rise(&trigger);
|
||||
* while(1) {
|
||||
* led = !led;
|
||||
|
@ -71,7 +72,10 @@ public:
|
|||
* 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.)
|
||||
* @param mode Desired Pin mode configuration.
|
||||
* (Valid values could be PullNone/PullDown/PullUp/PullDefault
|
||||
* See PinNames.h for your target for definitions)
|
||||
*
|
||||
*/
|
||||
InterruptIn(PinName pin, PinMode mode);
|
||||
|
||||
|
@ -142,7 +146,8 @@ public:
|
|||
|
||||
/** Set the input pin mode
|
||||
*
|
||||
* @param pull PullUp, PullDown, PullNone
|
||||
* @param pull PullUp, PullDown, PullNone, PullDefault
|
||||
* See PinNames.h for your target for definitions)
|
||||
*/
|
||||
void mode(PinMode pull);
|
||||
|
||||
|
|
Loading…
Reference in New Issue