From 05a92bc125988f86710a891f35123612001cffaf Mon Sep 17 00:00:00 2001 From: borisbstyle Date: Fri, 30 Dec 2016 13:19:27 +0100 Subject: [PATCH] Add ESCSERIAL for missing targets --- src/main/target/F4BY/target.h | 3 +++ src/main/target/FURYF4/target.h | 3 +++ src/main/target/FishDroneF4/target.h | 3 +++ src/main/target/IMPULSERCF3/target.h | 3 +++ src/main/target/IRCFUSIONF3/target.h | 3 +++ src/main/target/ISHAPEDF3/target.h | 3 +++ src/main/target/KAKUTEF4/target.h | 3 +++ src/main/target/LUX_RACE/target.h | 3 +++ src/main/target/MOTOLAB/target.h | 3 +++ src/main/target/SPRACINGF3NEO/target.h | 4 +++- 10 files changed, 30 insertions(+), 1 deletion(-) diff --git a/src/main/target/F4BY/target.h b/src/main/target/F4BY/target.h index c366b5f23..390f8f93a 100644 --- a/src/main/target/F4BY/target.h +++ b/src/main/target/F4BY/target.h @@ -103,6 +103,9 @@ #define SERIAL_PORT_COUNT 6 //VCP, UART1, UART2, UART3, UART4, UART5, UART6 +#define USE_ESCSERIAL +#define ESCSERIAL_TIMER_TX_HARDWARE 8 // PWM 9 + #define USE_SPI #define USE_SPI_DEVICE_1 #define SPI1_SCK_PIN PA5 diff --git a/src/main/target/FURYF4/target.h b/src/main/target/FURYF4/target.h index eb83dec47..a343c48b3 100644 --- a/src/main/target/FURYF4/target.h +++ b/src/main/target/FURYF4/target.h @@ -133,6 +133,9 @@ #define SERIAL_PORT_COUNT 4 //VCP, USART1, USART3, USART6 +#define USE_ESCSERIAL +#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1 + #define USE_SPI #define USE_SPI_DEVICE_1 diff --git a/src/main/target/FishDroneF4/target.h b/src/main/target/FishDroneF4/target.h index 4d8c5f3a4..da9c69ec0 100644 --- a/src/main/target/FishDroneF4/target.h +++ b/src/main/target/FishDroneF4/target.h @@ -69,6 +69,9 @@ #define SERIAL_PORT_COUNT 4 // VCP, USART1, USART3, USART6 +#define USE_ESCSERIAL +#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1 + // *************** OSD ***************************** #define USE_SPI_DEVICE_2 #define SPI2_NSS_PIN PB12 diff --git a/src/main/target/IMPULSERCF3/target.h b/src/main/target/IMPULSERCF3/target.h index f6649fa5e..93724bbac 100644 --- a/src/main/target/IMPULSERCF3/target.h +++ b/src/main/target/IMPULSERCF3/target.h @@ -55,6 +55,9 @@ #define USE_UART3 #define SERIAL_PORT_COUNT 4 +#define USE_ESCSERIAL +#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1 + #define UART1_TX_PIN PA9 #define UART1_RX_PIN PA10 diff --git a/src/main/target/IRCFUSIONF3/target.h b/src/main/target/IRCFUSIONF3/target.h index f3f2ee811..116ae4e5d 100644 --- a/src/main/target/IRCFUSIONF3/target.h +++ b/src/main/target/IRCFUSIONF3/target.h @@ -47,6 +47,9 @@ #define USE_UART3 #define SERIAL_PORT_COUNT 3 +#define USE_ESCSERIAL +#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1 + #define UART1_TX_PIN PA9 #define UART1_RX_PIN PA10 diff --git a/src/main/target/ISHAPEDF3/target.h b/src/main/target/ISHAPEDF3/target.h index 25cc506f5..c631a5417 100644 --- a/src/main/target/ISHAPEDF3/target.h +++ b/src/main/target/ISHAPEDF3/target.h @@ -61,6 +61,9 @@ #define USE_SOFTSERIAL2 #define SERIAL_PORT_COUNT 5 +#define USE_ESCSERIAL +#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1 + #define UART1_TX_PIN PA9 #define UART1_RX_PIN PA10 diff --git a/src/main/target/KAKUTEF4/target.h b/src/main/target/KAKUTEF4/target.h index a82ba41e1..421d32539 100644 --- a/src/main/target/KAKUTEF4/target.h +++ b/src/main/target/KAKUTEF4/target.h @@ -93,6 +93,9 @@ #define SERIAL_PORT_COUNT 4 +#define USE_ESCSERIAL +#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1 + #define USE_SPI #define USE_SPI_DEVICE_1 //ICM20689 diff --git a/src/main/target/LUX_RACE/target.h b/src/main/target/LUX_RACE/target.h index 52b772e26..0ba5b8341 100644 --- a/src/main/target/LUX_RACE/target.h +++ b/src/main/target/LUX_RACE/target.h @@ -160,6 +160,9 @@ #define USE_SERIAL_4WAY_BLHELI_INTERFACE +#define USE_ESCSERIAL +#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1 + // IO - assuming 303 in 64pin package, TODO #define TARGET_IO_PORTA 0xffff #define TARGET_IO_PORTB 0xffff diff --git a/src/main/target/MOTOLAB/target.h b/src/main/target/MOTOLAB/target.h index b413253f4..62a4de995 100644 --- a/src/main/target/MOTOLAB/target.h +++ b/src/main/target/MOTOLAB/target.h @@ -61,6 +61,9 @@ #define USE_UART3 #define SERIAL_PORT_COUNT 4 +#define USE_ESCSERIAL +#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1 + #define UART1_TX_PIN PB6 #define UART1_RX_PIN PB7 diff --git a/src/main/target/SPRACINGF3NEO/target.h b/src/main/target/SPRACINGF3NEO/target.h index 5f7e59a94..565afa796 100755 --- a/src/main/target/SPRACINGF3NEO/target.h +++ b/src/main/target/SPRACINGF3NEO/target.h @@ -72,6 +72,9 @@ #define UART3_TX_PIN PB10 #define UART3_RX_PIN PB11 +#define USE_ESCSERIAL +#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1 + #define USE_I2C #define I2C_DEVICE (I2CDEV_1) // PB6/SCL, PB7/SDA @@ -179,7 +182,6 @@ #define HARDWARE_BIND_PLUG #define BINDPLUG_PIN PD2 - #define USE_SERIAL_4WAY_BLHELI_INTERFACE // IO - assuming 303 in 64pin package, TODO