chore: more OTX to ETX housekeeping (#5396)
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include "opentx.h"
|
||||
#include "edgetx.h"
|
||||
#include "afhds2.h"
|
||||
#include "flysky.h"
|
||||
|
||||
|
||||
@@ -19,8 +19,7 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#ifndef PULSES_AFHDS2_H_
|
||||
#define PULSES_AFHDS2_H_
|
||||
#pragma once
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <functional>
|
||||
@@ -34,5 +33,3 @@
|
||||
|
||||
extern const etx_serial_init afhds2SerialInitParams;
|
||||
extern const etx_proto_driver_t Afhds2InternalDriver;
|
||||
|
||||
#endif /* PULSES_AFHDS2_H_ */
|
||||
|
||||
@@ -24,9 +24,9 @@
|
||||
#include "bitfield.h"
|
||||
#include "definitions.h"
|
||||
#include "dataconstants.h"
|
||||
#include "opentx_types.h"
|
||||
#include "edgetx_types.h"
|
||||
#include "myeeprom.h"
|
||||
#include "opentx_helpers.h"
|
||||
#include "edgetx_helpers.h"
|
||||
#include "pulses_common.h"
|
||||
#include <cstring>
|
||||
#include "fifo.h"
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
|
||||
#include "afhds3_transport.h"
|
||||
#include "opentx_helpers.h"
|
||||
#include "edgetx_helpers.h"
|
||||
#include "debug.h"
|
||||
|
||||
#include "board.h"
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#include "stm32_hal_ll.h"
|
||||
#endif
|
||||
|
||||
#include "opentx.h"
|
||||
#include "edgetx.h"
|
||||
#include "mixer_scheduler.h"
|
||||
#include "hal/module_driver.h"
|
||||
#include "hal/module_port.h"
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#include "hal/module_port.h"
|
||||
#include "mixer_scheduler.h"
|
||||
|
||||
#include "opentx.h"
|
||||
#include "edgetx.h"
|
||||
#include "telemetry/spektrum.h"
|
||||
|
||||
#define DSM2_SEND_BIND (1 << 7)
|
||||
|
||||
@@ -21,17 +21,15 @@
|
||||
* Dedicate for FlySky NV14 board.
|
||||
*/
|
||||
|
||||
#include "opentx.h"
|
||||
#pragma once
|
||||
|
||||
#include "edgetx.h"
|
||||
|
||||
#include "flysky.h"
|
||||
#include "telemetry/flysky_nv14.h"
|
||||
|
||||
#define IS_VALID_COMMAND_ID(id) ((id) < CMD_LAST)
|
||||
|
||||
#ifndef custom_log
|
||||
#define custom_log
|
||||
#endif
|
||||
|
||||
enum AfhdsSpecialChars {
|
||||
END = 0xC0, //Frame end
|
||||
START = END,
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include "opentx.h"
|
||||
#include "edgetx.h"
|
||||
#include "ghost.h"
|
||||
#include "telemetry/ghost.h"
|
||||
#include "telemetry/ghost_menu.h"
|
||||
|
||||
@@ -19,8 +19,7 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#ifndef _MODULES_CONSTANTS_H_
|
||||
#define _MODULES_CONSTANTS_H_
|
||||
#pragma once
|
||||
|
||||
#include "storage/yaml/yaml_defs.h"
|
||||
|
||||
@@ -159,5 +158,3 @@ enum AfhdsModes {
|
||||
AFHDS_SUBTYPE_PPM_SBUS,
|
||||
AFHDS_SUBTYPE_LAST = AFHDS_SUBTYPE_PPM_SBUS
|
||||
};
|
||||
|
||||
#endif // _MODULES_CONSTANTS_H_
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include "opentx.h"
|
||||
#include "edgetx.h"
|
||||
|
||||
#if defined(EXTERNAL_ANTENNA)
|
||||
bool isExternalAntennaEnabled()
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
#include "bitfield.h"
|
||||
#include "definitions.h"
|
||||
#include "opentx_helpers.h"
|
||||
#include "edgetx_helpers.h"
|
||||
#include "storage/storage.h"
|
||||
#include "globals.h"
|
||||
#include "MultiProtoDefs.h"
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include "opentx.h"
|
||||
#include "edgetx.h"
|
||||
#include "multi.h"
|
||||
|
||||
#include "io/multi_protolist.h"
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#include "hal/module_port.h"
|
||||
#include "mixer_scheduler.h"
|
||||
|
||||
#include "opentx.h"
|
||||
#include "edgetx.h"
|
||||
|
||||
#include "telemetry/mlink.h"
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
|
||||
// #include "hal.h"
|
||||
#include "opentx.h"
|
||||
#include "edgetx.h"
|
||||
|
||||
#include "mixer_scheduler.h"
|
||||
#include "heartbeat_driver.h"
|
||||
|
||||
@@ -19,8 +19,7 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#ifndef _PULSES_H_
|
||||
#define _PULSES_H_
|
||||
#pragma once
|
||||
|
||||
#include "definitions.h"
|
||||
#include "dataconstants.h"
|
||||
@@ -237,5 +236,3 @@ inline bool isModuleInBeepMode()
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
#endif // _PULSES_H_
|
||||
|
||||
@@ -19,8 +19,7 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#ifndef _PULSES_COMMON_H_
|
||||
#define _PULSES_COMMON_H_
|
||||
#pragma once
|
||||
|
||||
#include <inttypes.h>
|
||||
|
||||
@@ -87,5 +86,3 @@ class PulsesBuffer: public DataBuffer<T, SIZE> {
|
||||
*(DataBuffer<T, SIZE>::ptr - 1) = value;
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
#include "pxx1_transport.h"
|
||||
#include "pxx1.h"
|
||||
|
||||
#include "opentx.h"
|
||||
#include "edgetx.h"
|
||||
|
||||
static uint32_t _pxx1_internal_baudrate = PXX1_DEFAULT_SERIAL_BAUDRATE;
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include "opentx.h"
|
||||
#include "edgetx.h"
|
||||
#include "io/frsky_firmware_update.h"
|
||||
#include "lib_file.h"
|
||||
#include "mixer_scheduler.h"
|
||||
|
||||
@@ -19,14 +19,13 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#ifndef _PULSES_PXX2_H_
|
||||
#define _PULSES_PXX2_H_
|
||||
#pragma once
|
||||
|
||||
#include "pxx.h"
|
||||
#include "hal/module_driver.h"
|
||||
|
||||
#include "dataconstants.h"
|
||||
#include "opentx_types.h"
|
||||
#include "edgetx_types.h"
|
||||
|
||||
#define PXX2_TYPE_C_MODULE 0x01
|
||||
#define PXX2_TYPE_ID_REGISTER 0x01
|
||||
@@ -282,5 +281,3 @@ BindInformation& getPXX2BindInformationBuffer();
|
||||
PXX2HardwareAndSettings& getPXX2HardwareAndSettingsBuffer();
|
||||
|
||||
extern const etx_proto_driver_t Pxx2Driver;
|
||||
|
||||
#endif
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include "opentx.h"
|
||||
#include "edgetx.h"
|
||||
#include "io/frsky_firmware_update.h"
|
||||
#include "tasks/mixer_task.h"
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#include "hal/serial_driver.h"
|
||||
#include "mixer_scheduler.h"
|
||||
|
||||
#include "opentx.h"
|
||||
#include "edgetx.h"
|
||||
|
||||
#define SBUS_NORMAL_CHANS 16
|
||||
#define SBUS_CHAN_BITS 11
|
||||
|
||||
Reference in New Issue
Block a user