AP_BoardConfig: improved board config

use hwdef.dat to enable RTSCTS and SBUS_OUT
This commit is contained in:
Andrew Tridgell 2018-01-20 09:42:24 +11:00
parent 63671b06a8
commit f8a3b0e753
1 changed files with 8 additions and 4 deletions

View File

@ -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