Commit Graph
20 Commits
Author SHA1 Message Date
Raphael CoefficandGitHub 72193eda82 chore: New module/serial API (#3055)
* WiP: new module interface

* WiP: softserial timer DMA

* WiP: setup() and send() in one step

and remove methods specific to internal or external module

* fixes and extra port config

* horus targets

* module ports have moved

* T8 support (only internal module)

* fix nv14

* stupid GCC....

* disable BT

* remove nv14 telem driver

* remove old aux serial driver

* Move module buffers out of pulses.h

* Soft serial fixes and PXX1 support

* Fixed PPM module output

* Fixed CLI

* compilation fixes

* Ported bluetooth and flysky gimbal to new serial driver

* Re-enable soft-serial RX

* fixes and cleanup

* nv14 fixes

* Fix flysky gimbals

* Ghost module

* 16 bytes of RAM

* Remove getByte from module API

* Ghost cleanup

* fix: _half_duplex_input() must be called after usart init

* WiP

* more cleanup

* Remove board specific settings from PXX1 / PXX2 drivers

* A bit of PXX2 header cleanup

* Add support for OVER8 and ONEBIT

* Add some support for inverters (NV14 / EL18)

* Support NV14 power fixes in generic board

* Fix polarity handling

* Fix RX DMA

* Fix mixer not running

* Add soft-serial polarity control

* Quick fix for telemetry polling while module port is changed

* Fix bootloader DEBUG

* Fix MPM telemetry

* Fix pulse start

* DSM2 soft-serial fallback

* DSMP async module restart

* Fix CRSF LUA upstream

* Remove global variable telemetryProtocol

* Use HAL/LL constants

* Fix various issue with AFHDS3 and NV14/EL18 internal module

* Fixed S.PORT unit tests

* fix: update widx after writing at current index

* fix: init error condition

* Fix: possible infinite loop in _find_port()

* Add support for bidir S.PORT init

* Add support for "getLastByte" in HW serial driver

* PXX1: Add support for S.PORT based on IDLE callback

* Fix rebase error

* Fix softserial _rx_fifo_push()

* Add softserial support for waitForTxCompleted()

* Fix MPM flashing (internal / external)

* Fixed external MPM

* Activate RX DMA on internal module

Seems to work with serial passthrough without issues, at least on the L3R PRO.

* Fix softserial DMA on stdlcd F4 targets

* Add softserial support for 32bit timers (mostly TIM2)

* More precise soft-serial

* Fix MPM update using inverters & HW uart

* Raise S.PORT DMA/USART IRQ prio to achieve faster switching to input

* Remove useless delays

* Fix flashing external ELRS module

* Added a retry mechanism for FrSky S.PORT update

* Remove useless enableRx()

* External FrSky modules are all flashed via S.PORT

* Remove power management unit update

This was only used on the first batch of X-lite.
2023-02-09 19:44:32 +10:00
Raphael CoefficandGitHub a25bc828cb chore(bw): Remove doubled CRC table, saving 512 bytes of flash (#2990)
....  thus waisting 512 bytes in Flash for nothing.
2023-01-18 11:05:45 +10:00
Raphael Coeffic 530d395204 WiP 2022-03-20 16:22:14 +01:00
Raphael Coeffic fe2266fb70 AFHDS2 and PXX1 serial module drivers 2022-03-20 16:22:12 +01:00
Raphael Coeffic e5c852ab37 Fixed some compilation issues 2022-03-20 16:22:12 +01:00
rotormanandRisto fc2142ec78 Changed uniformly to EdgeTX boiler plate (also added boiler for files that were missing it). 2021-10-02 14:22:01 +02:00
Raphael Coeffic 6bf0fe2889 Cleanup useless code 2021-07-21 16:06:16 +02:00
Bertrand SongisandGitHub 8c3f226a6e Bsongis/modules sync issue 7288 (#7294)
Fixes #7288
2020-01-13 23:43:13 +01:00
Bertrand SongisandGitHub a40716f396 Range test fix (it sent only the upper or lower channels, but not both) (#7143) 2019-12-03 09:58:26 +01:00
Bertrand SongisandGitHub 99c8b4576b Bsongis/r9m modes (#6577)
R9M / R9M Lite / R9M Lite PRO modes
2019-07-17 23:15:31 +02:00
Bertrand SongisandGitHub aff6c3fd1d PXX synchro using Hearbeat (#6482)
* [PXX] Latency using heartbeat sync optimized for X7 (stable @ 12ms)
* [PXX] Latency using heartbeat sync optimized for XLite Pro (stable @ 9ms)
2019-06-08 10:44:31 +02:00
Bertrand Songis e5f687dcc1 Dead code removed 2019-05-04 13:00:32 +02:00
Bertrand Songis b62ab2bd62 Missing initialization on module type change
XJT / R9M should not reboot (still not tested)
2019-03-13 09:57:11 +01:00
Bertrand Songis e567643652 Refactoring. CAUTION: ERASE your EEPROM again! 2019-02-22 13:15:23 +01:00
Bertrand Songis 62c7a1978e RAM saving 2019-02-09 11:33:43 +01:00
Bertrand Songis debc43ab34 PXX2 CRC Mixin 2019-02-08 14:06:23 +01:00
Bertrand Songis 807bc8bc2e PXX2 continued + simu segfault fix 2019-02-05 13:03:02 +01:00
Bertrand Songis d0f87bc3e2 CRC bytestuffing (needs to be tested) ... 2019-01-25 21:57:51 +01:00
3djc 5233fc85b8 Fix pxx1 2018-11-05 16:22:56 +01:00
bsongis 62dcd6ac5e Refactoring continued 2018-10-09 12:47:22 +02:00