mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 17:55:30 +03:00
parent
2dc09cd24b
commit
3272b44410
1 changed files with 2 additions and 1 deletions
|
@ -33,7 +33,8 @@ void initInverter(void)
|
||||||
gpio_config_t cfg;
|
gpio_config_t cfg;
|
||||||
} gpio_setup = {
|
} gpio_setup = {
|
||||||
.gpio = INVERTER_GPIO,
|
.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);
|
RCC_APB2PeriphClockCmd(INVERTER_PERIPHERAL, ENABLE);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue