Merge pull request #3326 from opentx/bsongis/passthrough_sport_to_lua

Bsongis/passthrough sport to lua
This commit is contained in:
Bertrand Songis
2016-03-05 00:27:13 +01:00
17 changed files with 131 additions and 70 deletions
+24 -24
View File
@@ -1,29 +1,29 @@
/*
* Copyright (C) OpenTX
*
* Based on code named
* th9x - http://code.google.com/p/th9x
* er9x - http://code.google.com/p/er9x
* gruvin9x - http://code.google.com/p/gruvin9x
*
* License GPLv2: http://www.gnu.org/licenses/gpl-2.0.html
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#include "../../opentx.h"
/*
* Copyright (C) OpenTX
*
* Based on code named
* th9x - http://code.google.com/p/th9x
* er9x - http://code.google.com/p/er9x
* gruvin9x - http://code.google.com/p/gruvin9x
*
* License GPLv2: http://www.gnu.org/licenses/gpl-2.0.html
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#include "opentx.h"
uint8_t serial2Mode = 0;
Fifo<512> serial2TxFifo;
extern Fifo<512> telemetryFifo;
extern Fifo<32> sbusFifo;
Fifo<uint8_t, 512> serial2TxFifo;
extern Fifo<uint8_t, 512> telemetryFifo;
extern Fifo<uint8_t, 32> sbusFifo;
void uart3Setup(unsigned int baudrate)
{
+1 -1
View File
@@ -20,7 +20,7 @@
#include "../../opentx.h"
extern Fifo<512> telemetryFifo;
extern Fifo<uint8_t, 512> telemetryFifo;
void telemetryPortInit(uint32_t baudrate)
{
+2 -2
View File
@@ -18,9 +18,9 @@
* GNU General Public License for more details.
*/
#include "../../opentx.h"
#include "opentx.h"
extern Fifo<32> sbusFifo;
extern Fifo<uint8_t, 32> sbusFifo;
#define setupTrainerPulses() setupPulsesPPM(TRAINER_MODULE)
+1 -1
View File
@@ -28,7 +28,7 @@
/** Pins description corresponding to Rxd,Txd, (UART pins) */
#define SECOND_SERIAL_PINS {PINS_UART}
Fifo<512> serial2RxFifo;
Fifo<uint8_t, 512> serial2RxFifo;
#if !defined(SIMU)
/*
@@ -20,8 +20,8 @@
#include "../../opentx.h"
Fifo<64> btTxFifo;
Fifo<64> btRxFifo;
Fifo<uint8_t, 64> btTxFifo;
Fifo<uint8_t, 64> btRxFifo;
enum BluetoothState
{
+3 -3
View File
@@ -21,9 +21,9 @@
#include "../../opentx.h"
uint8_t serial2Mode = 0;
Fifo<512> serial2TxFifo;
extern Fifo<512> telemetryFifo;
extern Fifo<32> sbusFifo;
Fifo<uint8_t, 512> serial2TxFifo;
extern Fifo<uint8_t, 512> telemetryFifo;
extern Fifo<uint8_t, 32> sbusFifo;
void uart3Setup(unsigned int baudrate)
{
@@ -20,7 +20,7 @@
#include "../../opentx.h"
extern Fifo<512> telemetryFifo;
extern Fifo<uint8_t, 512> telemetryFifo;
void telemetryPortInit(uint32_t baudrate)
{
+1 -1
View File
@@ -20,7 +20,7 @@
#include "../../opentx.h"
extern Fifo<32> sbusFifo;
extern Fifo<uint8_t, 32> sbusFifo;
#define setupTrainerPulses() setupPulsesPPM(TRAINER_MODULE)