AP_SerialManager: allow hwdef.dat setup of serial5 config

This commit is contained in:
Andrew Tridgell 2018-02-04 15:42:38 +11:00
parent 560948dc69
commit fca0ad4f85
1 changed files with 4 additions and 1 deletions

View File

@ -25,7 +25,10 @@
extern const AP_HAL::HAL& hal;
#ifdef CONFIG_ARCH_BOARD_PX4FMU_V4
#ifdef HAL_SERIAL5_PROTOCOL
#define SERIAL5_PROTOCOL HAL_SERIAL5_PROTOCOL
#define SERIAL5_BAUD HAL_SERIAL5_BAUD
#elif defined(CONFIG_ARCH_BOARD_PX4FMU_V4)
#define SERIAL5_PROTOCOL SerialProtocol_MAVLink
#define SERIAL5_BAUD 921600
#else