1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 00:35:39 +03:00

Update inverter.c

Fixes #494
This commit is contained in:
tricopterY 2015-02-12 00:10:57 +11:00 committed by Dominic Clifton
parent 2dc09cd24b
commit 3272b44410

View file

@ -33,7 +33,8 @@ void initInverter(void)
gpio_config_t cfg;
} gpio_setup = {
.gpio = INVERTER_GPIO,
.cfg = { INVERTER_PIN, Mode_Out_OD, Speed_2MHz }
// configure for Push-Pull
.cfg = { INVERTER_PIN, Mode_Out_PP, Speed_2MHz }
};
RCC_APB2PeriphClockCmd(INVERTER_PERIPHERAL, ENABLE);