mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 09:45:37 +03:00
Separate resources for SOFTSERIAL_TX & SOFTSERIAL_RX (#11786)
* Addressed review comments * Unify USE_SOFTSERIAL --------- Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
This commit is contained in:
parent
d1eb214332
commit
a98364fa55
17 changed files with 35 additions and 70 deletions
|
@ -28,7 +28,7 @@
|
|||
|
||||
#include "platform.h"
|
||||
|
||||
#if defined(USE_SOFTSERIAL1) || defined(USE_SOFTSERIAL2)
|
||||
#if defined(USE_SOFTSERIAL)
|
||||
|
||||
#include "build/build_config.h"
|
||||
#include "build/atomic.h"
|
||||
|
@ -47,11 +47,7 @@
|
|||
#define RX_TOTAL_BITS 10
|
||||
#define TX_TOTAL_BITS 10
|
||||
|
||||
#if defined(USE_SOFTSERIAL1) && defined(USE_SOFTSERIAL2)
|
||||
#define MAX_SOFTSERIAL_PORTS 2
|
||||
#else
|
||||
#define MAX_SOFTSERIAL_PORTS 1
|
||||
#endif
|
||||
|
||||
typedef enum {
|
||||
TIMER_MODE_SINGLE,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue