AP_HAL: added check for RCOUT serial support

This commit is contained in:
Andrew Tridgell 2018-04-02 11:15:46 +10:00
parent 751c3a554a
commit 74bf83c39f
2 changed files with 9 additions and 0 deletions

View File

@ -260,4 +260,7 @@
#define AP_MODULE_SUPPORTED 0
#endif
#ifndef HAL_SUPPORT_RCOUT_SERIAL
#define HAL_SUPPORT_RCOUT_SERIAL 0
#endif

View File

@ -77,3 +77,9 @@
// allow for generic boards
#define CONFIG_HAL_BOARD_SUBTYPE HAL_BOARD_SUBTYPE_CHIBIOS_GENERIC
#endif
#ifdef HAL_GPIO_LINE_GPIO50
// we can only support RCOut serial if we have GPIO tags on the PWM
// outputs of the board
#define HAL_SUPPORT_RCOUT_SERIAL 1
#endif