diff options
author | Dave Hylands <dhylands@gmail.com> | 2014-03-24 10:49:23 -0700 |
---|---|---|
committer | Dave Hylands <dhylands@gmail.com> | 2014-03-24 11:16:35 -0700 |
commit | 1403298a653fdb1ed3604bab71ce17200e5017f7 (patch) | |
tree | 77ce4ff7acd51385b0baadae98035dda89989198 /stmhal/exti.c | |
parent | 6609d636d042fb02bdd07ea578cc3dbf6a311273 (diff) | |
download | micropython-1403298a653fdb1ed3604bab71ce17200e5017f7.tar.gz micropython-1403298a653fdb1ed3604bab71ce17200e5017f7.zip |
stmhal - fixed up adc stuff
Added support for the ADC channels and mappings to make_pins.py
I'm not sure if the hal properly deals with the channel 16/18 differences
between the 40x and 42x. It seems to deal with it partially. This particular
aspect will need testing on a 42x or 43x.
Diffstat (limited to 'stmhal/exti.c')
-rw-r--r-- | stmhal/exti.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/stmhal/exti.c b/stmhal/exti.c index ec6d82e4fd..8aaa99d429 100644 --- a/stmhal/exti.c +++ b/stmhal/exti.c @@ -26,9 +26,7 @@ // def callback(line): // print("line =", line) // -// # Configure the pin as a GPIO input. -// pin = pyb.Pin.board.X1 -// pyb.gpio_in(pin, pyb.PULL_UP) +// # Note: Exti will automatically configure the gpio line as an input. // exti = pyb.Exti(pin, pyb.Exti.MODE_IRQ_FALLING, pyb.PULLUP, callback) // // Now every time a falling edge is seen on the X1 pin, the callback will be |