Commit Graph
34 Commits
Author SHA1 Message Date
Raphael CoefficandGitHub ff2b3ac22a fix: Internal PXX exclusive S.PORT (#3822) 2023-10-13 09:48:32 +10:00
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 Coeffic 3057652b40 Force inactive output between pulse trains 2022-03-20 16:30:59 +01:00
Raphael Coeffic d2685aeadf Fix polarity 2022-03-20 16:30:59 +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 CoefficandRaphael Coeffic e75bd64d54 Simplify pulses code with respect to period settings with PXX1 and PXX2
And a bit of clean-up.
2021-07-09 14:26:26 +02:00
Raphael CoefficandRaphael Coeffic 938679da2f Use longer period for PXX2 modules triggered by heartbeat signal and reset timer early
This allows to cope for the different frame rates used by ACCESS and ACCST modes. See opentx/opentx#8601 for details.
2021-07-09 14:26:26 +02:00
3djcandRaphael Coeffic 90c730d5da Fix pulse timing issue 2021-06-23 06:27:39 +02:00
3djc 92fb19d89c Cosmetics 2021-04-05 17:40:55 +02:00
Raphael Coeffic e2fb0522cd fixed pxx1 driver 2020-12-09 07:24:28 +01:00
Raphael Coeffic 02660c763a mixer scheduler 2020-12-09 07:24:27 +01:00
Bertrand SongisandGitHub 151827ada5 Bsongis/x9d+ 2019 (#6588)
X9D+ 2019 added
2019-07-26 19:18:29 +02:00
Bertrand SongisandGitHub 58104417bb Bsongis/r9m lite pro highspeed (#6546)
R9M Lite Pro @ 450k
2019-07-05 10:45:43 +02:00
Bertrand Songis 2bd0a3f962 Always use 230400bauds for PXX2 on external module 2019-06-05 10:20:12 +02:00
Bertrand Songis e5f687dcc1 Dead code removed 2019-05-04 13:00:32 +02:00
Bertrand Songis d70f3a40ef Spectrum analyser fixes
Compatibily issue when telemetry comes from int + ext modules
2019-04-29 11:52:17 +02:00
Bertrand Songis 1826c5c735 Cosmetics. R9M Lite Pro goes up to 450000 bauds 2019-04-23 09:04:37 +02:00
Bertrand Songis bdd9017589 R9M @ 230400 bauds 2019-03-26 10:34:57 +01:00
Bertrand Songis abca4e559f [PXX2] Revert to 450000 (pushed by mistake) 2019-03-21 11:57:03 +01:00
Bertrand Songis 471d1c6f53 [PXX2] Telemetry push fix 2019-03-21 10:00:52 +01:00
3djcandBertrand Songis f7f1b1ff7b 3djc/test (#7)
More modules support
2019-03-14 17:51:59 +01: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 fcc31ef41d 450K Bauds on external module 2019-02-28 10:29:24 +01:00
Bertrand Songis debc43ab34 PXX2 CRC Mixin 2019-02-08 14:06:23 +01:00
Bertrand Songis 480eb90001 CRC fix 2019-02-05 18:29:58 +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
Bertrand Songis 9d93d88a66 PXX seems now OK on X7. More tests needed 2018-11-03 16:28:57 +01:00
Bertrand Songis bbfa94151f Regular PXX will need to be checked 2018-10-10 09:49:25 +02:00
Bertrand Songis 67b145b22e Compilation fixes 2018-10-09 22:56:51 +02:00
bsongis 62dcd6ac5e Refactoring continued 2018-10-09 12:47:22 +02:00
Bertrand Songis 946f66b128 Pulses refactoring ... WIP 2018-10-09 07:57:58 +02:00
Bertrand Songis 713402b572 PXX2 first draft 2018-10-08 00:12:53 +02:00