mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Implement default board power control to allow software switch-off
This commit is contained in:
parent
a92931fe84
commit
f7fa374656
@ -110,6 +110,7 @@
|
||||
|
||||
#define DIRECT_PWM_OUTPUT_CHANNELS 1
|
||||
#define BOARD_HAS_PWM 0
|
||||
#define BOARD_HAS_POWER_CONTROL 1
|
||||
|
||||
/* 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);
|
||||
#endif // !defined(BOARD_OVERRIDE_UUID)
|
||||
|
||||
#if !defined(BOARD_HAS_POWER_CONTROL)
|
||||
#define board_pwr(switch_on) { do {} while(0); }
|
||||
#endif
|
||||
|
||||
/************************************************************************************
|
||||
* Name: board_mcu_version
|
||||
*
|
||||
|
||||
@ -221,6 +221,7 @@
|
||||
|
||||
#define BOARD_HAS_PWM DIRECT_PWM_OUTPUT_CHANNELS
|
||||
|
||||
#define BOARD_HAS_POWER_CONTROL 1
|
||||
|
||||
/* This board provides a DMA pool and APIs */
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user