Commit Graph
32 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 CoefficandRaphael Coeffic f6565c6826 Horus fixes 2022-06-11 15:38:08 +02: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
Bertrand SongisandGitHub 4cdd17f0d7 MAGIC value for powerReason should be stored in RTC backup on Horus (#7096)
- Allows the radio main application to start correctly when coming from an app in RAM
- Refactoring of the `UNEXPECTED_SHUTDOWN()` process
- Saves the RTC battery as BACKUP RAM is not needed on normal shutdown
- On PWR OFF on an ALERT, the radio won't show the next alert before shutting down
- Bootloader flashable through the SD Manager
2019-11-21 11:50:33 +01:00
3djcandGitHub 891c13e98d Spectrum analyser reworked (#6836)
* Spectrum analyser reworked

* Fix typo

* Cosmetics

* Cosmetics

* yet another overall look update

* T16 compilations fixes

* Various Taranis compile  fixes

* Cosmetics

* Cosmetics

* Cosmetics

* Cosmetics fixes
2019-10-10 15:42:35 +02:00
Bertrand Songis ffb731dc30 [X10 Express] Spectrum analyser, first version 2019-08-19 16:21:55 +02:00
Bertrand Songis 12482fa904 [X9D+ 2019] Spectrum analyser fix 2019-08-19 14:30:21 +02:00
Bertrand Songis f888b83add R9M Access Fixes 2019-06-12 14:06:11 +02:00
Bertrand Songis 1946b6a967 Previous attempt removed :) 2019-05-07 12:43:37 +02:00
Bertrand Songis 380a76eddd Attempt to improve frequency analyser on small LCD ... definitely not good 2019-05-07 12:24:39 +02:00
Bertrand Songis 9dca2d6b79 Spectrum analyser fix 2019-05-07 12:23:21 +02:00
Bertrand Songis e127e1c986 Spectrum analyser / Powermeter better fix 2019-05-07 12:07:04 +02:00
3djc d50f26f19e cosmetics 2019-04-30 17:05:16 +02:00
3djc 5606b017c2 R9M ACCESS handling for spectrum analyser 2019-04-30 17:03:48 +02:00
Bertrand Songis 6530f93e21 Powermeter / Frequency analyser exit issue 2019-04-28 22:41:58 +02:00
Bertrand Songis 3a99fcd826 [PXX2] R9M/R9 BIND options added 2019-04-24 11:13:29 +02:00
3djc 962cdc7b67 TOOLS internationalisation 2019-04-19 16:41:21 +02:00
Bertrand Songis 201524d61a Attempt to fix the issue when coming from Powermeter 2019-04-18 12:46:39 +02:00
3djcandBertrand Songis 930a3690ad Improve power meter (#6393)
Improve power meter
2019-04-17 11:58:30 +02:00
Bertrand Songis da69083bce Cosmetics 2019-04-17 10:43:07 +02:00
Bertrand Songis 5f1152166d Cosmetics 2019-04-15 12:00:27 +02:00
Bertrand Songis e2b1d56e3a Spectrum analyser issues fixed 2019-04-15 10:08:22 +02:00
3djc 6efdf17088 small display fix in spectrum analyser 2019-04-13 18:18:16 +02:00
3djc b6e74044a0 Cosmetics 2019-04-09 16:53:36 +02:00
3djc 942b50dc3a Allow setting frequency and span for spektrum analyser 2019-04-05 09:29:58 +02:00
Bertrand Songis a13ee14bbb [X-LiteS] Gyro added 2019-04-02 20:12:50 +02:00
3djc dacc537e8b Allow exit from power/spektrum while receiver is streaming 2019-04-02 17:02:15 +02:00
3djc 5fd70d7c8c Add external modules handling for power and spektrum 2019-04-02 13:55:07 +02:00
Bertrand Songis eb2b82bf92 Fixes 2019-03-31 15:17:11 +02:00
3djc 63383f15c1 Add safety and context to spektrum and power meter 2019-03-31 12:24:07 +02:00
Bertrand Songis 45500b062d Fixes 2019-03-20 09:18:15 +01:00
Bertrand Songis 775ac40aaa Powermeter added 2019-03-20 08:46:47 +01:00