Roll back to older STM32 core files (#128)

This commit is contained in:
Ben Lye
2017-12-17 00:44:29 +00:00
committed by GitHub
parent dc9f738f30
commit 68dcc75949
49 changed files with 580 additions and 1838 deletions

View File

@@ -80,13 +80,10 @@ void pinMode(uint8 pin, WiringPinMode mode) {
gpio_set_mode(PIN_MAP[pin].gpio_device, PIN_MAP[pin].gpio_bit, outputMode);
if (PIN_MAP[pin].timer_device != NULL) {
if ( pwm ) { // we're switching into PWM, enable timer channels
/* Enable/disable timer channels if we're switching into or
* out of PWM. */
timer_set_mode(PIN_MAP[pin].timer_device,
PIN_MAP[pin].timer_channel,
TIMER_PWM );
} else { // disable channel output in non pwm-Mode
timer_cc_disable(PIN_MAP[pin].timer_device,
PIN_MAP[pin].timer_channel);
}
pwm ? TIMER_PWM : TIMER_DISABLED);
}
}