mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 12:55:19 +03:00
Move board specifics to config.c
This commit is contained in:
parent
e68df0415e
commit
ed4543611f
2 changed files with 7 additions and 4 deletions
|
@ -29,9 +29,14 @@
|
|||
|
||||
#include "io/serial.h"
|
||||
|
||||
#ifdef FPVM_BETAFLIGHTF7
|
||||
#define ESC_SENSOR_UART SERIAL_PORT_USART1
|
||||
#elif defined(OMNIBUSF7V2)
|
||||
#define ESC_SENSOR_UART SERIAL_PORT_USART7
|
||||
#endif
|
||||
|
||||
static targetSerialPortFunction_t targetSerialPortFunction[] = {
|
||||
#if defined(OMNIBUSF7V2) && defined(ESC_SENSOR_UART)
|
||||
// OMNIBUS F7 V2 has an option to connect UART7_RX to ESC telemetry
|
||||
#ifdef ESC_SENSOR_UART
|
||||
{ ESC_SENSOR_UART, FUNCTION_ESC_SENSOR },
|
||||
#else
|
||||
{ SERIAL_PORT_NONE, FUNCTION_NONE },
|
||||
|
|
|
@ -237,12 +237,10 @@
|
|||
#define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
|
||||
#define SERIALRX_UART SERIAL_PORT_USART6
|
||||
#define SERIALRX_PROVIDER SERIALRX_SBUS
|
||||
#define ESC_SENSOR_UART SERIAL_PORT_USART1
|
||||
#else
|
||||
#define ENABLE_BLACKBOX_LOGGING_ON_SDCARD_BY_DEFAULT
|
||||
#define SERIALRX_UART SERIAL_PORT_USART2
|
||||
#define SERIALRX_PROVIDER SERIALRX_SBUS
|
||||
#define ESC_SENSOR_UART SERIAL_PORT_USART7
|
||||
#endif
|
||||
|
||||
#define USE_SERIAL_4WAY_BLHELI_INTERFACE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue