mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 05:03:35 +08:00
Implement default board power control to allow software switch-off
This commit is contained in:
@@ -110,6 +110,7 @@
|
|||||||
|
|
||||||
#define DIRECT_PWM_OUTPUT_CHANNELS 1
|
#define DIRECT_PWM_OUTPUT_CHANNELS 1
|
||||||
#define BOARD_HAS_PWM 0
|
#define BOARD_HAS_PWM 0
|
||||||
|
#define BOARD_HAS_POWER_CONTROL 1
|
||||||
|
|
||||||
/* USB OTG FS
|
/* USB OTG FS
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -376,6 +376,10 @@ __EXPORT int board_get_uuid_formated32(char *format_buffer, int size,
|
|||||||
raw_uuid_uint32_reorder_t *optional_reorder);
|
raw_uuid_uint32_reorder_t *optional_reorder);
|
||||||
#endif // !defined(BOARD_OVERRIDE_UUID)
|
#endif // !defined(BOARD_OVERRIDE_UUID)
|
||||||
|
|
||||||
|
#if !defined(BOARD_HAS_POWER_CONTROL)
|
||||||
|
#define board_pwr(switch_on) { do {} while(0); }
|
||||||
|
#endif
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: board_mcu_version
|
* Name: board_mcu_version
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -221,6 +221,7 @@
|
|||||||
|
|
||||||
#define BOARD_HAS_PWM DIRECT_PWM_OUTPUT_CHANNELS
|
#define BOARD_HAS_PWM DIRECT_PWM_OUTPUT_CHANNELS
|
||||||
|
|
||||||
|
#define BOARD_HAS_POWER_CONTROL 1
|
||||||
|
|
||||||
/* This board provides a DMA pool and APIs */
|
/* This board provides a DMA pool and APIs */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user