mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
px4fmu-v5:Define the BOARD_NUMBER_BRICKS for future enumeration
When BOARD_NUMBER_BRICKS exists it will enable multiple power source testing and reporting.
This commit is contained in:
parent
b9f43068af
commit
82dc6de19f
@ -361,7 +361,12 @@ __BEGIN_DECLS
|
||||
#define GPIO_POWER_IN_B /* PG2 */ (GPIO_INPUT|GPIO_PULLUP|GPIO_PORTG|GPIO_PIN2)
|
||||
#define GPIO_POWER_IN_C /* PG3 */ (GPIO_INPUT|GPIO_PULLUP|GPIO_PORTG|GPIO_PIN3)
|
||||
|
||||
#define GPIO_VDD_BRICK_VALID GPIO_POWER_IN_A /* */
|
||||
#define GPIO_VDD_BRICK_VALID GPIO_POWER_IN_A /* Legacy */
|
||||
#define GPIO_VDD_BRICK1_VALID GPIO_POWER_IN_A /* Brick 1 Is Choose */
|
||||
#define GPIO_VDD_BRICK2_VALID GPIO_POWER_IN_B /* Brick 2 Is Choose */
|
||||
#define BOARD_NUMBER_BRICKS 2
|
||||
#define GPIO_VDD_USB_VALID GPIO_POWER_IN_C /* USB Is Choose */
|
||||
|
||||
#define GPIO_VDD_3V3_SENSORS_EN /* PE3 */ (GPIO_OUTPUT|GPIO_PUSHPULL|GPIO_SPEED_2MHz|GPIO_OUTPUT_SET|GPIO_PORTE|GPIO_PIN3)
|
||||
#define GPIO_VDD_3V3_SPEKTRUM_POWER_EN /* PE4 */ (GPIO_OUTPUT|GPIO_PUSHPULL|GPIO_SPEED_2MHz|GPIO_OUTPUT_SET|GPIO_PORTE|GPIO_PIN4)
|
||||
#define GPIO_nVDD_5V_PERIPH_EN /* PG4 */ (GPIO_OUTPUT|GPIO_PUSHPULL|GPIO_SPEED_2MHz|GPIO_OUTPUT_SET|GPIO_PORTG|GPIO_PIN4)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user