mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 12:25:20 +03:00
Fix build relating to inverter/pwm rssi compiler errors.
This commit is contained in:
parent
1eea083fd9
commit
d762da7dac
3 changed files with 7 additions and 2 deletions
|
@ -20,13 +20,14 @@
|
|||
|
||||
#include "platform.h"
|
||||
|
||||
#ifdef INVERTER
|
||||
|
||||
#include "gpio.h"
|
||||
|
||||
#include "inverter.h"
|
||||
|
||||
void initInverter(void)
|
||||
{
|
||||
#ifdef INVERTER
|
||||
struct {
|
||||
GPIO_TypeDef *gpio;
|
||||
gpio_config_t cfg;
|
||||
|
@ -38,6 +39,6 @@ void initInverter(void)
|
|||
RCC_APB2PeriphClockCmd(INVERTER_PERIPHERAL, ENABLE);
|
||||
|
||||
gpioInit(gpio_setup.gpio, &gpio_setup.cfg);
|
||||
}
|
||||
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -22,6 +22,8 @@
|
|||
|
||||
#include "platform.h"
|
||||
|
||||
#include "build_config.h"
|
||||
|
||||
#include "gpio.h"
|
||||
#include "timer.h"
|
||||
|
||||
|
|
|
@ -113,7 +113,9 @@ void systemInit(bool overclock)
|
|||
|
||||
ledInit();
|
||||
beeperInit();
|
||||
#ifdef INVERTER
|
||||
initInverter();
|
||||
#endif
|
||||
|
||||
// Init cycle counter
|
||||
cycleCounterInit();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue