Merge pull request #3414 from jflyper/bfdev-configurable-escserial-pin
Make esc serial tx timer pin configurable
This commit is contained in:
commit
7b42a4eeea
1
Makefile
1
Makefile
|
@ -1024,6 +1024,7 @@ SITLEXCLUDES = \
|
|||
drivers/light_led.c \
|
||||
drivers/system.c \
|
||||
drivers/rcc.c \
|
||||
drivers/serial_escserial.c \
|
||||
drivers/serial_pinconfig.c \
|
||||
drivers/serial_uart.c \
|
||||
drivers/serial_uart_init.c \
|
||||
|
|
|
@ -109,7 +109,8 @@
|
|||
#define PG_I2C_CONFIG 518
|
||||
#define PG_DASHBOARD_CONFIG 519
|
||||
#define PG_SPI_PIN_CONFIG 520
|
||||
#define PG_BETAFLIGHT_END 520
|
||||
#define PG_ESCSERIAL_CONFIG 521
|
||||
#define PG_BETAFLIGHT_END 521
|
||||
|
||||
|
||||
// OSD configuration (subject to change)
|
||||
|
|
|
@ -64,5 +64,6 @@ const char * const ownerNames[OWNER_TOTAL_COUNT] = {
|
|||
"COMPASS_CS",
|
||||
"SPI_PREINIT",
|
||||
"RX_BIND_PLUG",
|
||||
"ESCSERIAL",
|
||||
};
|
||||
|
||||
|
|
|
@ -64,6 +64,7 @@ typedef enum {
|
|||
OWNER_COMPASS_CS,
|
||||
OWNER_SPI_PREINIT,
|
||||
OWNER_RX_BIND_PLUG,
|
||||
OWNER_ESCSERIAL,
|
||||
OWNER_TOTAL_COUNT
|
||||
} resourceOwner_e;
|
||||
|
||||
|
|
|
@ -28,6 +28,9 @@
|
|||
|
||||
#include "common/utils.h"
|
||||
|
||||
#include "config/parameter_group.h"
|
||||
#include "config/parameter_group_ids.h"
|
||||
|
||||
#include "drivers/io.h"
|
||||
#include "drivers/light_led.h"
|
||||
#include "drivers/nvic.h"
|
||||
|
@ -111,6 +114,16 @@ const struct serialPortVTable escSerialVTable[];
|
|||
|
||||
escSerial_t escSerialPorts[MAX_ESCSERIAL_PORTS];
|
||||
|
||||
PG_REGISTER_WITH_RESET_TEMPLATE(escSerialConfig_t, escSerialConfig, PG_ESCSERIAL_CONFIG, 0);
|
||||
|
||||
#ifndef ESCSERIAL_TIMER_TX_PIN
|
||||
#define ESCSERIAL_TIMER_TX_PIN NONE
|
||||
#endif
|
||||
|
||||
PG_RESET_TEMPLATE(escSerialConfig_t, escSerialConfig,
|
||||
.ioTag = IO_TAG(ESCSERIAL_TIMER_TX_PIN),
|
||||
);
|
||||
|
||||
enum {
|
||||
TRAILING,
|
||||
LEADING
|
||||
|
@ -653,7 +666,7 @@ static serialPort_t *openEscSerial(escSerialPortIndex_e portIndex, serialReceive
|
|||
}
|
||||
|
||||
escSerial->mode = mode;
|
||||
escSerial->txTimerHardware = &(timerHardware[ESCSERIAL_TIMER_TX_HARDWARE]);
|
||||
escSerial->txTimerHardware = timerGetByTag(escSerialConfig()->ioTag, TIM_USE_ANY);
|
||||
|
||||
#ifdef USE_HAL_DRIVER
|
||||
escSerial->txTimerHandle = timerFindTimerHandle(escSerial->txTimerHardware->tim);
|
||||
|
@ -945,6 +958,11 @@ void escEnablePassthrough(serialPort_t *escPassthroughPort, uint16_t output, uin
|
|||
}
|
||||
|
||||
escPort = openEscSerial(ESCSERIAL1, NULL, motor_output, escBaudrate, 0, mode);
|
||||
|
||||
if (!escPort) {
|
||||
return;
|
||||
}
|
||||
|
||||
uint8_t ch;
|
||||
while (1) {
|
||||
if (mode!=2)
|
||||
|
|
|
@ -35,3 +35,9 @@ typedef enum {
|
|||
|
||||
// serialPort API
|
||||
void escEnablePassthrough(serialPort_t *escPassthroughPort, uint16_t output, uint8_t mode);
|
||||
|
||||
typedef struct escSerialConfig_s {
|
||||
ioTag_t ioTag;
|
||||
} escSerialConfig_t;
|
||||
|
||||
PG_DECLARE(escSerialConfig_t, escSerialConfig);
|
||||
|
|
|
@ -2861,6 +2861,9 @@ const cliResourceValue_t resourceTable[] = {
|
|||
{ OWNER_SPI_MISO, PG_SPI_PIN_CONFIG, offsetof(spiPinConfig_t, ioTagMiso[0]), SPIDEV_COUNT },
|
||||
{ OWNER_SPI_MOSI, PG_SPI_PIN_CONFIG, offsetof(spiPinConfig_t, ioTagMosi[0]), SPIDEV_COUNT },
|
||||
#endif
|
||||
#ifdef USE_ESCSERIAL
|
||||
{ OWNER_ESCSERIAL, PG_ESCSERIAL_CONFIG, offsetof(escSerialConfig_t, ioTag), 0 },
|
||||
#endif
|
||||
};
|
||||
|
||||
static ioTag_t *getIoTag(const cliResourceValue_t value, uint8_t index)
|
||||
|
|
|
@ -63,7 +63,7 @@
|
|||
#define SERIAL_PORT_COUNT 6
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#define ESCSERIAL_TIMER_TX_PIN PA4 // (HARDARE=0)
|
||||
|
||||
#define UART1_TX_PIN PB6
|
||||
#define UART1_RX_PIN PB7
|
||||
|
|
|
@ -61,7 +61,7 @@
|
|||
#define SERIAL_PORT_COUNT 5
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#define ESCSERIAL_TIMER_TX_PIN PA0 // (HARDARE=0,PPM)
|
||||
|
||||
#define SOFTSERIAL1_RX_PIN PA6 // PWM 5
|
||||
#define SOFTSERIAL1_TX_PIN PA7 // PWM 6
|
||||
|
|
|
@ -77,7 +77,7 @@
|
|||
#define AVOID_UART2_FOR_PWM_PPM
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#define ESCSERIAL_TIMER_TX_PIN PB15 // (HARDARE=0)
|
||||
|
||||
#define UART1_TX_PIN PB6
|
||||
#define UART1_RX_PIN PB7
|
||||
|
|
|
@ -113,7 +113,7 @@
|
|||
#define SERIAL_PORT_COUNT 6
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#define ESCSERIAL_TIMER_TX_PIN PA8 // (HARDARE=0,PPM)
|
||||
|
||||
#define USE_SPI
|
||||
#define USE_SPI_DEVICE_1
|
||||
|
|
|
@ -123,8 +123,7 @@
|
|||
#define SERIAL_PORT_COUNT 6
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PPM/LED_STRIP
|
||||
#define ESCSERIAL_TIMER_TX_PIN PA8 // XXX Provisional (Hardware=0, PPM) XXX Crash if using an LED strip.
|
||||
#define ESCSERIAL_TIMER_TX_PIN PA8 // (Hardware=0, PPM/LED_STRIP) XXX Crash if using an LED strip.
|
||||
|
||||
#define USE_SPI
|
||||
#define USE_SPI_DEVICE_1
|
||||
|
|
|
@ -95,8 +95,7 @@
|
|||
#define SERIAL_PORT_COUNT 11 //VCP, USART1, USART2, USART3, UART4, UART5, USART6, USART7, USART8, SOFTSERIAL x 2
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#define ESCSERIAL_TIMER_TX_PIN PB14 // XXX Provisional (Hardware=0, PPM)
|
||||
#define ESCSERIAL_TIMER_TX_PIN PB14 // (Hardware=0, PPM)
|
||||
|
||||
#define USE_SPI
|
||||
#define USE_SPI_DEVICE_1
|
||||
|
|
|
@ -89,8 +89,7 @@
|
|||
#define SERIAL_PORT_COUNT 7 //VCP, USART1, UART4, UART5, USART6, SOFTSERIAL x 2
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#define ESCSERIAL_TIMER_TX_PIN PB14 // XXX Provisional (Hardware=0, PPM)
|
||||
#define ESCSERIAL_TIMER_TX_PIN PB14 // (Hardware=0, PPM)
|
||||
|
||||
#define USE_SPI
|
||||
#define USE_SPI_DEVICE_1
|
||||
|
|
|
@ -99,7 +99,7 @@
|
|||
#define SERIAL_PORT_COUNT 4
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#define ESCSERIAL_TIMER_TX_PIN PA3 // (HARDARE=0,PPM)
|
||||
|
||||
#define USE_SPI
|
||||
|
||||
|
|
|
@ -57,7 +57,7 @@
|
|||
#define SERIAL_PORT_COUNT 6
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#define ESCSERIAL_TIMER_TX_PIN PB7 // (HARDARE=0,PPM)
|
||||
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART1_RX_PIN PA10
|
||||
|
|
|
@ -92,8 +92,7 @@
|
|||
#define SERIAL_PORT_COUNT 5 //VCP, USART1, USART2, USART3, USART6
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
|
||||
#define ESCSERIAL_TIMER_TX_PIN PB8 // (Hardware=0, PPM)
|
||||
|
||||
#define USE_SPI
|
||||
|
||||
|
|
|
@ -119,7 +119,7 @@
|
|||
#define SERIAL_PORT_COUNT 6
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#define ESCSERIAL_TIMER_TX_PIN PC7 // (HARDARE=0,PPM)
|
||||
|
||||
#define USE_SPI
|
||||
|
||||
|
|
|
@ -97,7 +97,7 @@
|
|||
#define SERIAL_PORT_COUNT 5
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#define ESCSERIAL_TIMER_TX_PIN PA8 // (HARDARE=0)
|
||||
|
||||
#define USE_I2C
|
||||
#define USE_I2C_DEVICE_1
|
||||
|
|
|
@ -93,7 +93,7 @@
|
|||
#define SERIAL_PORT_COUNT 5 //VCP, USART1, USART3,USART4, USART6,
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#define ESCSERIAL_TIMER_TX_PIN PB9 // (HARDARE=0,PPM)
|
||||
|
||||
#define USE_SPI
|
||||
#define USE_SPI_DEVICE_1
|
||||
|
|
|
@ -105,8 +105,7 @@
|
|||
#define SERIAL_PORT_COUNT 5
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#define ESCSERIAL_TIMER_TX_PIN PB8 // XXX Provisional (Hardware=0, PPM)
|
||||
#define ESCSERIAL_TIMER_TX_PIN PB8 // (Hardware=0, PPM)
|
||||
|
||||
// XXX To target maintainer: Bus device to configure must be specified.
|
||||
//#define USE_I2C
|
||||
|
|
|
@ -97,7 +97,7 @@
|
|||
#define SERIAL_PORT_COUNT 6 //VCP, UART1, UART2, UART3, SOFTSERIAL x 2
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#define ESCSERIAL_TIMER_TX_PIN PA10 // (HARDARE=0,PPM)
|
||||
|
||||
#define USE_SPI
|
||||
|
||||
|
|
|
@ -88,7 +88,7 @@
|
|||
#define SERIAL_PORT_COUNT 4
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#define ESCSERIAL_TIMER_TX_PIN PA8 // (HARDARE=0,PPM)
|
||||
|
||||
#define UART1_TX_PIN PC4
|
||||
#define UART1_RX_PIN PC5
|
||||
|
|
|
@ -69,9 +69,6 @@
|
|||
#define M25P16_CS_PIN PC15
|
||||
#define M25P16_SPI_INSTANCE SPI2
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
|
||||
#define GYRO
|
||||
#define USE_GYRO_MPU6500
|
||||
#define USE_GYRO_SPI_MPU6500
|
||||
|
@ -101,7 +98,7 @@
|
|||
#define SERIAL_PORT_COUNT 6
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#define ESCSERIAL_TIMER_TX_PIN PA8 // (Hardware=0)
|
||||
|
||||
#define UART1_TX_PIN PB6
|
||||
#define UART1_RX_PIN PB7
|
||||
|
|
|
@ -104,7 +104,7 @@
|
|||
#define SERIAL_PORT_COUNT 8 //VCP, UART1, UART2, UART3, UART4, UART6, SOFTSERIAL x 2
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 8 // PWM 9
|
||||
#define ESCSERIAL_TIMER_TX_PIN PA0 // (HARDARE=8)
|
||||
|
||||
#define USE_SPI
|
||||
#define USE_SPI_DEVICE_1
|
||||
|
|
|
@ -135,7 +135,7 @@
|
|||
#define USE_ESC_SENSOR
|
||||
#define USE_SERIAL_4WAY_BLHELI_INTERFACE
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#define ESCSERIAL_TIMER_TX_PIN PB0 // (HARDARE=0)
|
||||
/*---------------------------------*/
|
||||
|
||||
/*--------DEFAULT VALUES-----------*/
|
||||
|
|
|
@ -65,7 +65,11 @@
|
|||
#define SERIAL_PORT_COUNT 6
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#if defined(FF_RADIANCE) || defined(FF_KOMBINI)
|
||||
#define ESCSERIAL_TIMER_TX_PIN PA7 // (Hardware=0)
|
||||
#else
|
||||
#define ESCSERIAL_TIMER_TX_PIN PA4 // (Hardware=0)
|
||||
#endif
|
||||
|
||||
#define UART1_TX_PIN PB6
|
||||
#define UART1_RX_PIN PB7
|
||||
|
|
|
@ -129,7 +129,7 @@
|
|||
#define USE_ESC_SENSOR
|
||||
#define USE_SERIAL_4WAY_BLHELI_INTERFACE
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#define ESCSERIAL_TIMER_TX_PIN PA3 // (HARDARE=0)
|
||||
/*---------------------------------*/
|
||||
|
||||
/*--------DEFAULT VALUES-----------*/
|
||||
|
|
|
@ -71,7 +71,7 @@
|
|||
#define SERIAL_PORT_COUNT 6 // VCP, USART1, USART3, USART6, SOFTSERIAL x 2
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#define ESCSERIAL_TIMER_TX_PIN PB0 // (HARDARE=0,PPM)
|
||||
|
||||
// *************** OSD *****************************
|
||||
#define USE_SPI_DEVICE_2
|
||||
|
|
|
@ -76,7 +76,7 @@
|
|||
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0
|
||||
#define ESCSERIAL_TIMER_TX_PIN PB9 // (HARDARE=0)
|
||||
#define USE_SPI
|
||||
#define OSD
|
||||
|
||||
|
|
|
@ -93,7 +93,7 @@
|
|||
#define SERIAL_PORT_COUNT 6
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0
|
||||
#define ESCSERIAL_TIMER_TX_PIN PB8 // (HARDARE=0,PPM)
|
||||
|
||||
#define USE_SPI
|
||||
#define USE_SPI_DEVICE_1
|
||||
|
|
|
@ -144,12 +144,12 @@
|
|||
#define SOFTSERIAL1_RX_PIN PB0
|
||||
#define SOFTSERIAL1_TX_PIN PB1
|
||||
|
||||
#define SONAR
|
||||
#define SONAR_ECHO_PIN PB1
|
||||
#define SONAR_TRIGGER_PIN PB0
|
||||
#define SONAR
|
||||
#define SONAR_ECHO_PIN PB1
|
||||
#define SONAR_TRIGGER_PIN PB0
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#define ESCSERIAL_TIMER_TX_PIN PB3 // (HARDARE=0,PPM)
|
||||
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART1_RX_PIN PA10
|
||||
|
|
|
@ -144,7 +144,7 @@
|
|||
#define SERIAL_PORT_COUNT 6 //VCP, USART1, USART3, USART6, SOFTSERIAL x 2
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#define ESCSERIAL_TIMER_TX_PIN PC9 // (HARDARE=0,PPM)
|
||||
|
||||
#define USE_SPI
|
||||
|
||||
|
|
|
@ -114,8 +114,7 @@
|
|||
#define SERIAL_PORT_COUNT 6 //VCP, USART1, USART3, USART6, SOFTSERIAL x 2
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#define ESCSERIAL_TIMER_TX_PIN PC9 // XXX Provisional (Hardware=0, PPM)
|
||||
#define ESCSERIAL_TIMER_TX_PIN PC9 // (Hardware=0, PPM)
|
||||
|
||||
#define USE_I2C
|
||||
#define USE_I2C_DEVICE_1
|
||||
|
|
|
@ -57,7 +57,7 @@
|
|||
#define SERIAL_PORT_COUNT 6
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#define ESCSERIAL_TIMER_TX_PIN PA15 // (HARDARE=0,PPM)
|
||||
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART1_RX_PIN PA10
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
#define SERIAL_PORT_COUNT 5
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#define ESCSERIAL_TIMER_TX_PIN PA0 // (HARDARE=0,PPM)
|
||||
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART1_RX_PIN PA10
|
||||
|
|
|
@ -61,7 +61,7 @@
|
|||
#define SERIAL_PORT_COUNT 5
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#define ESCSERIAL_TIMER_TX_PIN PA0 // (HARDARE=0,PPM)
|
||||
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART1_RX_PIN PA10
|
||||
|
|
|
@ -96,7 +96,7 @@
|
|||
#define SERIAL_PORT_COUNT 6
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#define ESCSERIAL_TIMER_TX_PIN PC7 // (HARDARE=0,PPM)
|
||||
|
||||
#define USE_SPI
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
#define USE_ESC_SENSOR
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 6
|
||||
#define ESCSERIAL_TIMER_TX_PIN PA13 // (Hardware=6, common to KISSFC & KISSCC)
|
||||
#define REMAP_TIM17_DMA
|
||||
|
||||
#define LED0_PIN PB1
|
||||
|
|
|
@ -132,7 +132,7 @@
|
|||
#define SERIAL_PORT_COUNT 6 //VCP, USART1, USART3, USART6, SOFTSERIAL x 2
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#define ESCSERIAL_TIMER_TX_PIN PA3 // (HARDARE=0)
|
||||
|
||||
#define USE_SPI
|
||||
|
||||
|
|
|
@ -160,7 +160,7 @@
|
|||
#define USE_SERIAL_4WAY_BLHELI_INTERFACE
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#define ESCSERIAL_TIMER_TX_PIN PA8 // (HARDARE=0,PPM)
|
||||
|
||||
// IO - assuming 303 in 64pin package, TODO
|
||||
#define TARGET_IO_PORTA 0xffff
|
||||
|
|
|
@ -63,7 +63,7 @@
|
|||
#define SERIAL_PORT_COUNT 6
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#define ESCSERIAL_TIMER_TX_PIN PA4 // (HARDARE=0)
|
||||
|
||||
#define UART1_TX_PIN PB6
|
||||
#define UART1_RX_PIN PB7
|
||||
|
|
|
@ -70,7 +70,7 @@
|
|||
#define SERIAL_PORT_COUNT 5
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#define ESCSERIAL_TIMER_TX_PIN PA0 // (HARDARE=0,PPM)
|
||||
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART1_RX_PIN PA10
|
||||
|
|
|
@ -95,8 +95,7 @@
|
|||
#define SERIAL_PORT_COUNT 6
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#define ESCSERIAL_TIMER_TX_PIN PC7 // XXX Provisional (Hardware=0, PPM)
|
||||
#define ESCSERIAL_TIMER_TX_PIN PC7 // (Hardware=0, PPM)
|
||||
|
||||
#define USE_SPI
|
||||
|
||||
|
|
|
@ -94,8 +94,7 @@
|
|||
#define SERIAL_PORT_COUNT 10 //VCP, USART2, USART3, UART4, UART5, USART6, USART7, USART8, SOFTSERIAL x 2
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PPM
|
||||
#define ESCSERIAL_TIMER_TX_PIN PB15 // XXX Provisional (Hardware=0, PPM)
|
||||
#define ESCSERIAL_TIMER_TX_PIN PB15 // (Hardware=0, PPM)
|
||||
|
||||
#define USE_SPI
|
||||
#define USE_SPI_DEVICE_1
|
||||
|
|
|
@ -96,8 +96,7 @@
|
|||
#define SERIAL_PORT_COUNT 6 //VCP, USART2, USART3, UART4,SOFTSERIAL x 2
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PPM
|
||||
#define ESCSERIAL_TIMER_TX_PIN PB15 // XXX Provisional (Hardware=0, PPM)
|
||||
#define ESCSERIAL_TIMER_TX_PIN PB15 // (Hardware=0, PPM)
|
||||
|
||||
#define USE_SPI
|
||||
#define USE_SPI_DEVICE_1
|
||||
|
|
|
@ -87,7 +87,7 @@
|
|||
#define I2C_DEVICE (I2CDEV_1)
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#define ESCSERIAL_TIMER_TX_PIN PB4 // (HARDARE=0,PPM)
|
||||
|
||||
#define USE_SPI
|
||||
#define USE_SPI_DEVICE_1
|
||||
|
|
|
@ -142,7 +142,11 @@
|
|||
#define SERIAL_PORT_COUNT 6 //VCP, USART1, USART3, USART6, SOFTSERIAL x 2
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#if defined(OMNIBUSF4SD)
|
||||
#define ESCSERIAL_TIMER_TX_PIN PB8 // (Hardware=0)
|
||||
#else
|
||||
#define ESCSERIAL_TIMER_TX_PIN PB14 // (Hardware=0)
|
||||
#endif
|
||||
|
||||
#define USE_SPI
|
||||
#define USE_SPI_DEVICE_1
|
||||
|
|
|
@ -79,8 +79,7 @@
|
|||
#define SERIAL_PORT_COUNT 4
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PPM
|
||||
#define ESCSERIAL_TIMER_TX_PIN PE13 // XXX Provisional (Hardware=0, PPM)
|
||||
#define ESCSERIAL_TIMER_TX_PIN PE13 // (Hardware=0, PPM)
|
||||
|
||||
#define USE_SPI
|
||||
#define USE_SPI_DEVICE_1
|
||||
|
|
|
@ -57,7 +57,7 @@
|
|||
#define SERIAL_PORT_COUNT 5
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#define ESCSERIAL_TIMER_TX_PIN PA0 // (HARDARE=0,PPM)
|
||||
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART1_RX_PIN PA10
|
||||
|
|
|
@ -66,7 +66,7 @@
|
|||
#define SERIAL_PORT_COUNT 6
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#define ESCSERIAL_TIMER_TX_PIN PA8 // (HARDARE=0)
|
||||
|
||||
#define UART1_TX_PIN PB6
|
||||
#define UART1_RX_PIN PB7
|
||||
|
|
|
@ -212,7 +212,7 @@
|
|||
#endif
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#define ESCSERIAL_TIMER_TX_PIN PB14 // (HARDARE=0,PPM)
|
||||
|
||||
#define USE_SPI
|
||||
|
||||
|
|
|
@ -68,7 +68,7 @@
|
|||
#define SERIAL_PORT_COUNT 5
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0
|
||||
#define ESCSERIAL_TIMER_TX_PIN PB10 // (HARDARE=0,PPM)
|
||||
|
||||
#define USE_SPI
|
||||
#define USE_SPI_DEVICE_2
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
#define SERIAL_PORT_COUNT 6
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#define ESCSERIAL_TIMER_TX_PIN PA15 // (HARDARE=0,PPM)
|
||||
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART1_RX_PIN PA10
|
||||
|
|
|
@ -62,7 +62,7 @@
|
|||
#define SERIAL_PORT_COUNT 6
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#define ESCSERIAL_TIMER_TX_PIN PB11 // (HARDARE=0,PPM)
|
||||
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART1_RX_PIN PA10
|
||||
|
|
|
@ -62,7 +62,7 @@
|
|||
#define AVOID_UART2_FOR_PWM_PPM
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#define ESCSERIAL_TIMER_TX_PIN PB15 // (HARDARE=0)
|
||||
|
||||
#define UART1_TX_PIN PB6
|
||||
#define UART1_RX_PIN PB7
|
||||
|
|
|
@ -92,7 +92,7 @@
|
|||
#define SERIAL_PORT_COUNT 4
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#define ESCSERIAL_TIMER_TX_PIN PC7 // (HARDARE=0,PPM)
|
||||
|
||||
#define USE_SPI
|
||||
|
||||
|
|
|
@ -141,7 +141,7 @@
|
|||
#endif
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#define ESCSERIAL_TIMER_TX_PIN PA0 // (HARDARE=0,PPM)
|
||||
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART1_RX_PIN PA10
|
||||
|
|
|
@ -97,7 +97,7 @@
|
|||
#define SERIAL_PORT_COUNT 6
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#define ESCSERIAL_TIMER_TX_PIN PA15 // (HARDARE=0,PPM)
|
||||
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART1_RX_PIN PA10
|
||||
|
|
|
@ -96,7 +96,15 @@
|
|||
#endif
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#ifdef TINYBEEF3
|
||||
#define ESCSERIAL_TIMER_TX_PIN PA15 // (Hardware=0)
|
||||
#else
|
||||
#if defined(SPRACINGF3MINI_REV) && (SPRACINGF3MINI_REV <= 1)
|
||||
#define ESCSERIAL_TIMER_TX_PIN PB5 // (Hardware=0)
|
||||
#else
|
||||
#define ESCSERIAL_TIMER_TX_PIN PB4 // (Hardware=0)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define USE_SERIAL_4WAY_BLHELI_INTERFACE
|
||||
|
||||
|
|
|
@ -74,7 +74,7 @@
|
|||
#define UART3_RX_PIN PB11
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#define ESCSERIAL_TIMER_TX_PIN PA3 // (HARDARE=0,PPM)
|
||||
|
||||
#define USE_I2C
|
||||
#define USE_I2C_DEVICE_1
|
||||
|
|
|
@ -85,7 +85,7 @@
|
|||
#define UART5_RX_PIN PD2
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#define ESCSERIAL_TIMER_TX_PIN PA3 // (HARDARE=0,PPM)
|
||||
|
||||
#define USE_I2C
|
||||
#define USE_I2C_DEVICE_1
|
||||
|
|
|
@ -100,7 +100,7 @@
|
|||
#define UART5_RX_PIN PD2
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#define ESCSERIAL_TIMER_TX_PIN PA3 // (Hardware=0)
|
||||
|
||||
#define USE_I2C
|
||||
#define USE_I2C_DEVICE_1
|
||||
|
|
|
@ -157,7 +157,7 @@
|
|||
#define SERIAL_PORT_COUNT 6
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#define ESCSERIAL_TIMER_TX_PIN PB8 // (HARDARE=0,PPM)
|
||||
|
||||
#define UART3_TX_PIN PB10 // PB10 (AF7)
|
||||
#define UART3_RX_PIN PB11 // PB11 (AF7)
|
||||
|
|
|
@ -119,7 +119,7 @@
|
|||
#define SERIAL_PORT_COUNT 8 //VCP, USART1, USART2, USART3, USART6, SOFTSERIAL x 2
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#define ESCSERIAL_TIMER_TX_PIN PE9 // (HARDARE=0,PPM)
|
||||
|
||||
|
||||
#define USE_SPI
|
||||
|
|
|
@ -59,7 +59,7 @@
|
|||
#define SERIAL_PORT_COUNT 5
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#define ESCSERIAL_TIMER_TX_PIN PA0 // (HARDARE=0,PPM)
|
||||
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART1_RX_PIN PA10
|
||||
|
|
|
@ -83,7 +83,7 @@
|
|||
#define SERIAL_PORT_COUNT 6 // VCP, UART1, UART3, UART6, SOFTSERIAL x 2
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
#define ESCSERIAL_TIMER_TX_PIN PC8 // (HARDARE=0,PPM)
|
||||
|
||||
// SD Card
|
||||
#define USE_SDCARD
|
||||
|
|
Loading…
Reference in New Issue