Lancaster University's (short term!) clone of mbed-src for micro:bit. This is a copy of the github branch https://github.com/lancaster-university/mbed-classic
Fork of mbed-src by
Diff: common/InterruptIn.cpp
- Revision:
- 113:65a335a675de
- Parent:
- 36:ab3ee77451e7
- Child:
- 212:34d62c0b2af6
--- a/common/InterruptIn.cpp Fri Mar 07 16:00:07 2014 +0000 +++ b/common/InterruptIn.cpp Mon Mar 10 11:30:07 2014 +0000 @@ -21,7 +21,7 @@ InterruptIn::InterruptIn(PinName pin) { gpio_irq_init(&gpio_irq, pin, (&InterruptIn::_irq_handler), (uint32_t)this); - gpio_init(&gpio, pin, PIN_INPUT); + gpio_init_in(&gpio, pin); } InterruptIn::~InterruptIn() {