mbed library sources. Supersedes mbed-src. Fixes analogIn and analogOut problems for TARGET_STM32F3. Tested on NUCLEO-F303K8, using 3 analogout and 7 analogin channels simultaneously. Added ability for STM32F334R8 and STM32F303K8 to use all three channels of DAC simultaneously. https://developer.mbed.org/users/StevieWray/code/mbed-dev/ Added ability for TARGET_STM32F3 to use more than one ADC simultaneously. https://developer.mbed.org/questions/67997/NUCLEO-F303K8ADC/
Fork of mbed-dev by
Diff: common/InterruptIn.cpp
- Revision:
- 30:748c8b6e75b1
- Parent:
- 0:9b334a45a8ff
--- a/common/InterruptIn.cpp Thu Nov 26 13:15:10 2015 +0000 +++ b/common/InterruptIn.cpp Thu Nov 26 13:30:11 2015 +0000 @@ -44,6 +44,7 @@ _rise.attach(fptr); gpio_irq_set(&gpio_irq, IRQ_RISE, 1); } else { + _rise.attach(NULL); gpio_irq_set(&gpio_irq, IRQ_RISE, 0); } } @@ -53,6 +54,7 @@ _fall.attach(fptr); gpio_irq_set(&gpio_irq, IRQ_FALL, 1); } else { + _fall.attach(NULL); gpio_irq_set(&gpio_irq, IRQ_FALL, 0); } }