summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-05-05 19:03:25 +0100
committerDamien George <damien.p.george@gmail.com>2014-05-05 19:03:25 +0100
commitfcb347b90addb786d11b7abeff8b3938fa6b030d (patch)
tree9c4718365a8cc3fad8e2d471fbc38eeec5197dfd
parentfa2e701e23104e7b970294d44b4015a7e5928ffd (diff)
parent1145a0706c33dfd3d3f4789165132ca64c3c32e2 (diff)
downloadmicropython-fcb347b90addb786d11b7abeff8b3938fa6b030d.tar.gz
micropython-fcb347b90addb786d11b7abeff8b3938fa6b030d.zip
Merge pull request #571 from dhylands/fix-extint-doc
Change references (in comments) of pyb.GPIO to be pyb.Pin
-rw-r--r--stmhal/extint.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/extint.c b/stmhal/extint.c
index 3509b5de80..8041af2025 100644
--- a/stmhal/extint.c
+++ b/stmhal/extint.c
@@ -56,7 +56,7 @@
///
/// Note: ExtInt will automatically configure the gpio line as an input.
///
-/// extint = pyb.ExtInt(pin, pyb.ExtInt.IRQ_FALLING, pyb.GPIO.PULL_UP, callback)
+/// extint = pyb.ExtInt(pin, pyb.ExtInt.IRQ_FALLING, pyb.Pin.PULL_UP, callback)
///
/// Now every time a falling edge is seen on the X1 pin, the callback will be
/// called. Caution: mechanical pushbuttons have "bounce" and pushing or
@@ -81,7 +81,7 @@
/// Only the IRQ_xxx modes have been tested. The EVT_xxx modes have
/// something to do with sleep mode and the WFE instruction.
///
-/// Valid pull values are pyb.GPIO.PULL_UP, pyb.GPIO.PULL_DOWN, pyb.GPIO.PULL_NONE.
+/// Valid pull values are pyb.Pin.PULL_UP, pyb.Pin.PULL_DOWN, pyb.Pin.PULL_NONE.
///
/// There is also a C API, so that drivers which require EXTI interrupt lines
/// can also use this code. See extint.h for the available functions and