FMUv2: Fix Pixhawk Mini boards while hopefully retaining HK Pixhawk units.

This commit is contained in:
Lorenz Meier
2018-01-01 16:44:25 +01:00
parent 0cd24874f3
commit 01e1bac365
+6 -4
View File
@@ -342,10 +342,6 @@ stm32_boardinitialize(void)
stm32_configgpio(GPIO_VDD_5V_HIPOWER_OC);
stm32_configgpio(GPIO_VDD_5V_PERIPH_OC);
/* configure SPI interfaces */
stm32_spiinitialize();
}
/****************************************************************************
@@ -417,6 +413,12 @@ __EXPORT int board_app_initialize(uintptr_t arg)
#endif // BOARD_HAS_SIMPLE_HW_VERSIONING
/* Ensure the power is on 1 ms before we drive the GPIO pins */
usleep(1000);
/* configure SPI interfaces */
stm32_spiinitialize();
/* configure the high-resolution time/callout interface */
hrt_init();