mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00: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:
@@ -270,7 +270,7 @@ extern void board_peripheral_reset(int ms);
|
||||
int nsh_archinitialize(void);
|
||||
#endif
|
||||
|
||||
#include <drivers/boards/common/board_common.h>
|
||||
#include <px4_platform_common/board_common.h>
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
|
||||
|
||||
@@ -68,6 +68,8 @@
|
||||
#include <drivers/drv_board_led.h>
|
||||
#include <systemlib/px4_macros.h>
|
||||
#include <px4_platform_common/init.h>
|
||||
#include <px4_platform/gpio.h>
|
||||
#include <px4_platform/gpio.h>
|
||||
#include <drivers/boards/common/board_dma_alloc.h>
|
||||
|
||||
# if defined(FLASH_BASED_PARAMS)
|
||||
@@ -120,7 +122,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);
|
||||
@@ -149,7 +151,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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user