RX serial refactor (user selectable CRSF/SBUS serial protocol) (#2094)
commite5e57fb0f509a254a14aaa9968ebe0f0cd681b31
authorPaul Kendall <pkendall64@gmail.com>
Mon, 13 Mar 2023 05:13:14 +0000 (13 18:13 +1300)
committerGitHub <noreply@github.com>
Mon, 13 Mar 2023 05:13:14 +0000 (13 18:13 +1300)
treedcddd8bdb5f560f65b3a1cfbb06b72c96017c578
parent51390df3ba6de0920c0b55f492006bbcf13117c4
RX serial refactor (user selectable CRSF/SBUS serial protocol) (#2094)

* Initial SBUS poc

* Allow CRSF/SBUS protocol selection

* Tidy up the PWM selection page

* Lua config wip

* Cleanup of Lua params and LQ/RSSI as channel data

* Set lost packet/frame flag for SBUS

* wip Lua serial protocol configuration

* Runtime protocol configuration

* Refactor the pin mode setting in Lua

* Cleanup deprecated config options

* Refactoring RX serial for multiple protocol handling

* Only allow Serial on pins 1/3 (in Lua and web UI)

* Update web UI for serial protocol handling

* Review changes

* remove ChannelData from CRSF class

* Only log in options/hardware if LOG_INIT is defined
54 files changed:
src/html/index.html
src/html/scan.js
src/include/common.h
src/include/targets.h
src/lib/BLE/devBLE.cpp
src/lib/Backpack/devBackpack.cpp
src/lib/CONFIG/config.cpp
src/lib/CONFIG/config.h
src/lib/CONFIG/config_legacy.h
src/lib/CRSF/CRSF.cpp
src/lib/CRSF/CRSF.h
src/lib/CRSF/devCRSF.h
src/lib/CRSF/devCRSF_rx.cpp [deleted file]
src/lib/CRSF2MSP/crsf2msp.h
src/lib/CRSF2MSP/msp2crsf.h
src/lib/CrsfProtocol/crsf_protocol.h
src/lib/FIFO/FIFO.h
src/lib/LUA/lua.cpp
src/lib/LUA/lua.h
src/lib/LUA/rx_devLUA.cpp
src/lib/OPTIONS/options.cpp
src/lib/OPTIONS/options.h
src/lib/OTA/OTA.cpp
src/lib/OTA/OTA.h
src/lib/ServoOutput/ServoMgr.h
src/lib/ServoOutput/devServoOutput.cpp
src/lib/Telemetry/telemetry.cpp
src/lib/VTX/devVTX.cpp
src/lib/WIFI/devWIFI.cpp
src/python/binary_configurator.py
src/python/build_flags.py
src/python/serve_html.py
src/src/common.cpp
src/src/dynpower.cpp
src/src/rx-serial/SerialAirPort.cpp [new file with mode: 0644]
src/src/rx-serial/SerialAirPort.h [new file with mode: 0644]
src/src/rx-serial/SerialCRSF.cpp [new file with mode: 0644]
src/src/rx-serial/SerialCRSF.h [new file with mode: 0644]
src/src/rx-serial/SerialIO.cpp [new file with mode: 0644]
src/src/rx-serial/SerialIO.h [new file with mode: 0644]
src/src/rx-serial/SerialNOOP.h [new file with mode: 0644]
src/src/rx-serial/SerialSBUS.cpp [new file with mode: 0644]
src/src/rx-serial/SerialSBUS.h [new file with mode: 0644]
src/src/rx-serial/devSerialIO.cpp [new file with mode: 0644]
src/src/rx-serial/devSerialIO.h [copied from src/lib/CRSF/devCRSF.h with 60% similarity]
src/src/rx_main.cpp
src/src/tx_main.cpp
src/test/test_crsf/test_crsf.cpp
src/test/test_fifo/test_fifo.cpp
src/test/test_msp/encapsulated_msp_tests.cpp
src/test/test_msp/msp_tests.cpp
src/test/test_ota/test_switches.cpp
src/test/test_telemetry/test_telemetry.cpp
src/user_defines.txt