mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-29 19:57:12 +08:00
board_common.h: move under platforms/common
Also move board_determine_hw_info and board_gpio_init under platforms/nuttx
This commit is contained in:
@@ -388,7 +388,7 @@ void board_spi_reset(int ms);
|
||||
int nsh_archinitialize(void);
|
||||
#endif
|
||||
|
||||
#include <drivers/boards/common/board_common.h>
|
||||
#include <px4_platform_common/board_common.h>
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
|
||||
|
||||
@@ -71,6 +71,7 @@
|
||||
#include <systemlib/px4_macros.h>
|
||||
#include <px4_platform_common/init.h>
|
||||
#include <px4_platform_common/i2c.h>
|
||||
#include <px4_platform/gpio.h>
|
||||
#include <drivers/boards/common/board_dma_alloc.h>
|
||||
|
||||
static int configure_switch(void);
|
||||
@@ -91,7 +92,7 @@ __EXPORT void board_on_reset(int status)
|
||||
/* configure the GPIO pins to outputs and keep them low */
|
||||
|
||||
const uint32_t gpio[] = PX4_GPIO_PWM_INIT_LIST;
|
||||
board_gpio_init(gpio, arraySize(gpio));
|
||||
px4_gpio_init(gpio, arraySize(gpio));
|
||||
|
||||
if (status >= 0) {
|
||||
up_mdelay(6);
|
||||
@@ -118,7 +119,7 @@ stm32_boardinitialize(void)
|
||||
|
||||
/* configure pins */
|
||||
const uint32_t gpio[] = PX4_GPIO_INIT_LIST;
|
||||
board_gpio_init(gpio, arraySize(gpio));
|
||||
px4_gpio_init(gpio, arraySize(gpio));
|
||||
|
||||
/* configure SPI interfaces */
|
||||
stm32_spiinitialize();
|
||||
|
||||
Reference in New Issue
Block a user