Browse Source

AP_BoardConfig: improved board config

use hwdef.dat to enable RTSCTS and SBUS_OUT
mission-4.1.18
Andrew Tridgell 7 years ago
parent
commit
f8a3b0e753
  1. 12
      libraries/AP_BoardConfig/AP_BoardConfig.h

12
libraries/AP_BoardConfig/AP_BoardConfig.h

@ -12,11 +12,15 @@ @@ -12,11 +12,15 @@
#define AP_FEATURE_SAFETY_BUTTON 0
#endif
#if CONFIG_HAL_BOARD == HAL_BOARD_PX4 || defined(HAL_CHIBIOS_ARCH_FMUV3)
#define AP_FEATURE_RTSCTS 1
#define AP_FEATURE_SBUS_OUT 1
#else
#ifndef AP_FEATURE_RTSCTS
#define AP_FEATURE_RTSCTS 0
#endif
#ifndef AP_FEATURE_RTSCTS
#define AP_FEATURE_RTSCTS 0
#endif
#ifndef AP_FEATURE_SBUS_OUT
#define AP_FEATURE_SBUS_OUT 0
#endif

Loading…
Cancel
Save