fmu-v5: fix compiling errors

This commit is contained in:
Simone Guscetti 2017-05-15 08:19:30 +02:00 committed by David Sidrane
parent 30f9c61e67
commit 308295f648
2 changed files with 6 additions and 6 deletions

View File

@ -175,9 +175,9 @@ __EXPORT void board_peripheral_reset(int ms)
stm32_gpiowrite(GPIO_PERIPH_5V_EN, 0);
stm32_gpiowrite(GPIO_VDD_3V3_SENSORS_EN, 0);
bool last = stm32_gpioread(GPIO_SPEKTRUM_POWER_EN);
bool last = stm32_gpioread(GPIO_VDD_3V3_SPEKTRUM_POWER_EN);
/* Keep Spektum on to discharge rail*/
stm32_gpiowrite(GPIO_SPEKTRUM_POWER_EN, 1);
stm32_gpiowrite(GPIO_VDD_3V3_SPEKTRUM_POWER_EN, 1);
/* wait for the peripheral rail to reach GND */
usleep(ms * 1000);
@ -186,7 +186,7 @@ __EXPORT void board_peripheral_reset(int ms)
/* re-enable power */
/* switch the peripheral rail back on */
stm32_gpiowrite(GPIO_SPEKTRUM_POWER_EN, last);
stm32_gpiowrite(GPIO_VDD_3V3_SPEKTRUM_POWER_EN, last);
stm32_gpiowrite(GPIO_VDD_3V3_SENSORS_EN, 1);
stm32_gpiowrite(GPIO_PERIPH_5V_EN, 1);
@ -252,7 +252,7 @@ stm32_boardinitialize(void)
stm32_configgpio(GPIO_VDD_3V3V_SD_CARD_EN);
stm32_configgpio(GPIO_VDD_5V_RC_EN);
stm32_configgpio(GPIO_VDD_5V_WIFI_EN);
stm32_configgpio(GPIO_SPEKTRUM_POWER_EN);
stm32_configgpio(GPIO_VDD_3V3_SPEKTRUM_POWER_EN);
stm32_configgpio(GPIO_nSAFETY_SWITCH_LED_OUT);
stm32_configgpio(GPIO_SAFETY_SWITCH_IN);

View File

@ -72,7 +72,7 @@ static uint32_t g_ledmap[] = {
GPIO_nLED_GREEN, // Indexed by BOARD_LED_GREEN
GPIO_nLED_BLUE, // Indexed by BOARD_LED_BLUE
GPIO_nLED_RED, // Indexed by BOARD_LED_RED
GPIO_LED_SAFETY, // Indexed by LED_SAFETY by xlatpx4
GPIO_nSAFETY_SWITCH_LED_OUT, // Indexed by LED_SAFETY by xlatpx4
};
#else
@ -81,7 +81,7 @@ static uint32_t g_ledmap[] = {
static uint32_t g_ledmap[] = {
GPIO_nLED_BLUE, // Indexed by LED_BLUE
GPIO_nLED_RED, // Indexed by LED_RED, LED_AMBER
GPIO_LED_SAFETY, // Indexed by LED_SAFETY
GPIO_nSAFETY_SWITCH_LED_OUT, // Indexed by LED_SAFETY
GPIO_nLED_GREEN, // Indexed by LED_GREEN
};