mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 16:55:36 +03:00
Merge pull request #6905 from jflyper/bfdev-fix-rx-conditionals
Add conditionals for receiver protocols
This commit is contained in:
commit
7951919fc4
10 changed files with 12 additions and 13 deletions
|
@ -25,7 +25,7 @@
|
|||
|
||||
#include "platform.h"
|
||||
|
||||
#ifdef USE_SERIAL_RX
|
||||
#ifdef USE_SERIALRX_CRSF
|
||||
|
||||
#include "build/build_config.h"
|
||||
#include "build/debug.h"
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
#include "platform.h"
|
||||
|
||||
#if defined(USE_SERIALRX_FPORT)
|
||||
#ifdef USE_SERIALRX_FPORT
|
||||
|
||||
#include "build/debug.h"
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
|
||||
#include "platform.h"
|
||||
|
||||
#ifdef USE_SERIAL_RX
|
||||
#ifdef USE_SERIALRX_IBUS
|
||||
|
||||
#include "pg/rx.h"
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
|
||||
#include "platform.h"
|
||||
|
||||
#ifdef USE_SERIAL_RX
|
||||
#ifdef USE_SERIALRX_JETIEXBUS
|
||||
|
||||
#include "build/build_config.h"
|
||||
#include "build/debug.h"
|
||||
|
@ -278,4 +278,4 @@ bool jetiExBusInit(const rxConfig_t *rxConfig, rxRuntimeConfig_t *rxRuntimeConfi
|
|||
);
|
||||
return jetiExBusPort != NULL;
|
||||
}
|
||||
#endif // SERIAL_RX
|
||||
#endif // SERIAL_RX
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
#include "platform.h"
|
||||
|
||||
#ifdef USE_SERIAL_RX
|
||||
#ifdef USE_SERIALRX_SBUS
|
||||
|
||||
#include "build/debug.h"
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
#include "platform.h"
|
||||
|
||||
#ifdef USE_SERIAL_RX
|
||||
#ifdef USE_SERIALRX_SBUS
|
||||
|
||||
#include "common/utils.h"
|
||||
|
||||
|
|
|
@ -19,7 +19,8 @@
|
|||
*/
|
||||
|
||||
#include "platform.h"
|
||||
#ifdef USE_SERIAL_RX
|
||||
|
||||
#ifdef USE_SERIALRX_SPEKTRUM
|
||||
|
||||
#include <string.h>
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
#include "platform.h"
|
||||
|
||||
#ifdef USE_SERIAL_RX
|
||||
#ifdef USE_SERIALRX_SUMD
|
||||
|
||||
#include "common/crc.h"
|
||||
#include "common/utils.h"
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
#include "platform.h"
|
||||
|
||||
#ifdef USE_SERIAL_RX
|
||||
#ifdef USE_SERIALRX_SUMH
|
||||
|
||||
#include "common/utils.h"
|
||||
|
||||
|
@ -47,8 +47,6 @@
|
|||
#include "rx/rx.h"
|
||||
#include "rx/sumh.h"
|
||||
|
||||
// driver for SUMH receiver using UART2
|
||||
|
||||
#define SUMH_BAUDRATE 115200
|
||||
|
||||
#define SUMH_MAX_CHANNEL_COUNT 8
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
#include "platform.h"
|
||||
|
||||
#if defined(USE_SERIAL_RX) && defined(USE_SERIALRX_XBUS)
|
||||
#ifdef USE_SERIALRX_XBUS
|
||||
|
||||
#include "common/crc.h"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue