Pre-define software uarts in common.h

This commit is contained in:
jflyper 2017-02-11 03:52:03 +09:00 committed by borisbstyle
parent ddd78af0e7
commit 2f119a41a7
2 changed files with 6 additions and 9 deletions

View File

@ -71,6 +71,10 @@
#define USE_PWM
#define USE_PPM
// Force two softserials (Individual target.h may turn these off)
#define USE_SOFTSERIAL1
#define USE_SOFTSERIAL2
#if defined(STM32F4) || defined(STM32F7)
#define TASK_GYROPID_DESIRED_PERIOD 125
#define SCHEDULER_DELAY_LIMIT 10

View File

@ -27,15 +27,8 @@
# undef VTX_TRAMP
#endif
// Forced configuration of two software serials and SERIAL_PORT_COUNT recalc
#ifndef USE_SOFTSERIAL1
# define USE_SOFTSERIAL1
#endif
#ifndef USE_SOFTSERIAL2
# define USE_SOFTSERIAL2
#endif
// Forced config of USE_SOFTSERIAL{1,2} in common.h makes SERIAL_PORT_COUNT
// defined in target.h invalid. Count them and re-define SERIAL_PORT_COUNT.
#ifdef USE_VCP
# define N_VCP 1
#else