diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2012-06-02 23:57:52 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2012-06-03 00:04:01 -0400 |
commit | cc40b48edacdee58e56e443993aa3c1f22c9374e (patch) | |
tree | cbd27963de3fc75448768b5cd724ebaaa9e1691d /wirish/stm32f2 | |
parent | 058c2d284a7f0da96a30b17764676a940e102d93 (diff) | |
download | librambutan-cc40b48edacdee58e56e443993aa3c1f22c9374e.tar.gz librambutan-cc40b48edacdee58e56e443993aa3c1f22c9374e.zip |
STM32F2: fix pinMode() for PWM, PWM_OPEN_DRAIN.
Make it so the call to gpio_set_modef() actually happens.
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'wirish/stm32f2')
-rw-r--r-- | wirish/stm32f2/wirish_digital.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/wirish/stm32f2/wirish_digital.cpp b/wirish/stm32f2/wirish_digital.cpp index a67111d..bf9dcf5 100644 --- a/wirish/stm32f2/wirish_digital.cpp +++ b/wirish/stm32f2/wirish_digital.cpp @@ -124,7 +124,6 @@ void pinMode(uint8 pin, WiringPinMode w_mode) { } timer_set_mode(info->timer_device, info->timer_channel, TIMER_PWM); gpio_set_af(info->gpio_device, info->gpio_bit, timer_af); - } else { - gpio_set_modef(info->gpio_device, info->gpio_bit, mode, flags); } + gpio_set_modef(info->gpio_device, info->gpio_bit, mode, flags); } |