Pre-define software uarts in common.h
This commit is contained in:
parent
ddd78af0e7
commit
2f119a41a7
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue