mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-01 09:01:37 +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:
@@ -664,7 +664,7 @@ void fmuk66_automount_event(bool inserted);
|
||||
|
||||
void fmuk66_timer_initialize(void);
|
||||
|
||||
#include <drivers/boards/common/board_common.h>
|
||||
#include <px4_platform_common/board_common.h>
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
|
||||
|
||||
@@ -46,6 +46,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include <px4_platform_common/px4_config.h>
|
||||
#include <px4_platform/gpio.h>
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
@@ -116,7 +117,7 @@ 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);
|
||||
@@ -178,7 +179,7 @@ kinetis_boardinitialize(void)
|
||||
board_autoled_initialize();
|
||||
|
||||
const uint32_t gpio[] = PX4_GPIO_INIT_LIST;
|
||||
board_gpio_init(gpio, arraySize(gpio));
|
||||
px4_gpio_init(gpio, arraySize(gpio));
|
||||
|
||||
fmuk66_timer_initialize();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user