mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
px4_fmu-v5x:PG6 is free GPIO
This commit is contained in:
committed by
Daniel Agar
parent
7f84ed57dd
commit
b2153c7f2f
@@ -114,7 +114,7 @@
|
|||||||
#define PX4_I2C_OBDEV_SE050 0x48
|
#define PX4_I2C_OBDEV_SE050 0x48
|
||||||
|
|
||||||
#define GPIO_I2C4_DRDY1_BMP388 /* PG5 */ (GPIO_INPUT|GPIO_FLOAT|GPIO_EXTI|GPIO_PORTG|GPIO_PIN5)
|
#define GPIO_I2C4_DRDY1_BMP388 /* PG5 */ (GPIO_INPUT|GPIO_FLOAT|GPIO_EXTI|GPIO_PORTG|GPIO_PIN5)
|
||||||
#define GPIO_SE050_nRST /* PG6 */ (GPIO_OUTPUT|GPIO_PUSHPULL|GPIO_SPEED_2MHz|GPIO_OUTPUT_CLEAR|GPIO_PORTG|GPIO_PIN6)
|
#define GPIO_PG6 /* PG6 */ (GPIO_INPUT|GPIO_PULLUP|GPIO_PORTG|GPIO_PIN6)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* ADC channels
|
* ADC channels
|
||||||
@@ -264,7 +264,6 @@
|
|||||||
#define READ_VDD_3V3_SPEKTRUM_POWER_EN() px4_arch_gpioread(GPIO_VDD_3V3_SPEKTRUM_POWER_EN)
|
#define READ_VDD_3V3_SPEKTRUM_POWER_EN() px4_arch_gpioread(GPIO_VDD_3V3_SPEKTRUM_POWER_EN)
|
||||||
#define VDD_3V3_SD_CARD_EN(on_true) px4_arch_gpiowrite(GPIO_VDD_3V3_SD_CARD_EN, (on_true))
|
#define VDD_3V3_SD_CARD_EN(on_true) px4_arch_gpiowrite(GPIO_VDD_3V3_SD_CARD_EN, (on_true))
|
||||||
#define VDD_3V3_ETH_POWER_EN(on_true) px4_arch_gpiowrite(GPIO_ETH_POWER_EN, (on_true))
|
#define VDD_3V3_ETH_POWER_EN(on_true) px4_arch_gpiowrite(GPIO_ETH_POWER_EN, (on_true))
|
||||||
#define SE050_RESET(reset_true) px4_arch_gpiowrite(GPIO_SE050_nRST, !(reset_true))
|
|
||||||
|
|
||||||
|
|
||||||
/* Tone alarm output */
|
/* Tone alarm output */
|
||||||
@@ -422,7 +421,7 @@
|
|||||||
GPIO_TONE_ALARM_IDLE, \
|
GPIO_TONE_ALARM_IDLE, \
|
||||||
GPIO_nSAFETY_SWITCH_LED_OUT_INIT, \
|
GPIO_nSAFETY_SWITCH_LED_OUT_INIT, \
|
||||||
GPIO_SAFETY_SWITCH_IN, \
|
GPIO_SAFETY_SWITCH_IN, \
|
||||||
GPIO_SE050_nRST, \
|
GPIO_PG6, \
|
||||||
GPIO_nARMED_INIT \
|
GPIO_nARMED_INIT \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
*
|
*
|
||||||
* Copyright (c) 2012-2019 PX4 Development Team. All rights reserved.
|
* Copyright (c) 2012-2020 PX4 Development Team. All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions
|
* modification, are permitted provided that the following conditions
|
||||||
@@ -35,7 +35,7 @@
|
|||||||
* @file init.c
|
* @file init.c
|
||||||
*
|
*
|
||||||
* PX4FMU-specific early startup code. This file implements the
|
* PX4FMU-specific early startup code. This file implements the
|
||||||
* board_app_initializ() function that is called early by nsh during startup.
|
* nsh_archinitialize() function that is called early by nsh during startup.
|
||||||
*
|
*
|
||||||
* Code here is run before the rcS script is invoked; it should start required
|
* Code here is run before the rcS script is invoked; it should start required
|
||||||
* subsystems and perform board-specific initialization.
|
* subsystems and perform board-specific initialization.
|
||||||
@@ -221,7 +221,6 @@ __EXPORT int board_app_initialize(uintptr_t arg)
|
|||||||
board_spi_reset(10, 0xffff);
|
board_spi_reset(10, 0xffff);
|
||||||
VDD_3V3_SENSORS4_EN(true);
|
VDD_3V3_SENSORS4_EN(true);
|
||||||
VDD_3V3_SPEKTRUM_POWER_EN(true);
|
VDD_3V3_SPEKTRUM_POWER_EN(true);
|
||||||
SE050_RESET(false);
|
|
||||||
|
|
||||||
/* Need hrt running before using the ADC */
|
/* Need hrt running before using the ADC */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user