mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-07-03 12:07:52 +00:00
Update Multiprotocol.ino
This commit is contained in:
parent
cbd71708f6
commit
ab4771c6ab
@ -122,15 +122,6 @@ uint8_t pkt[MAX_PKT];//telemetry receiving packets
|
|||||||
#if defined FRSKY_CC2500_INO
|
#if defined FRSKY_CC2500_INO
|
||||||
#define HUB_TELEMETRY
|
#define HUB_TELEMETRY
|
||||||
#endif
|
#endif
|
||||||
#if defined STM32_board
|
|
||||||
#if defined TARANIS
|
|
||||||
TX_INV_on;
|
|
||||||
RX_INV_on;
|
|
||||||
#else
|
|
||||||
TX_INV_off;
|
|
||||||
RX_INV_off;
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
uint8_t pktt[MAX_PKT];//telemetry receiving packets
|
uint8_t pktt[MAX_PKT];//telemetry receiving packets
|
||||||
volatile uint8_t tx_head=0;
|
volatile uint8_t tx_head=0;
|
||||||
volatile uint8_t tx_tail=0;
|
volatile uint8_t tx_tail=0;
|
||||||
@ -174,6 +165,16 @@ void setup()
|
|||||||
#if defined TELEMETRY
|
#if defined TELEMETRY
|
||||||
pinMode(TX_INV_pin,OUTPUT);
|
pinMode(TX_INV_pin,OUTPUT);
|
||||||
pinMode(RX_INV_PIN,OUTPUT);
|
pinMode(RX_INV_PIN,OUTPUT);
|
||||||
|
#if defined STM32_board
|
||||||
|
#if defined TARANIS
|
||||||
|
TX_INV_on;
|
||||||
|
RX_INV_on;
|
||||||
|
#else
|
||||||
|
TX_INV_off;
|
||||||
|
RX_INV_off;
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
//pinMode(SDI_pin,OUTPUT);
|
//pinMode(SDI_pin,OUTPUT);
|
||||||
//pinMode(SCK_pin,OUTPUT);//spi pins initialized with spi init
|
//pinMode(SCK_pin,OUTPUT);//spi pins initialized with spi init
|
||||||
|
Loading…
x
Reference in New Issue
Block a user