1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 08:15:30 +03:00
Commit graph

53 commits

Author SHA1 Message Date
Jay Blackman
268952eeb5
Adding simplified timer calls for enabling ESC Serial and Soft Serial for AT32 (#14228) 2025-03-28 21:31:30 +11:00
Jay Blackman
c2768d0409
Refactoring motor to simplify implementation on other platforms (#14156) 2025-01-24 18:37:20 +11:00
nerdCopter
ed6a4a4769
duplicate emptyline removal (#14027)
* trailing space removal

Co-authored-by: Petr Ledvina <ledvinap@gmail.com>

* deduplicate empty lines

---------

Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
2024-11-15 23:07:25 +01:00
Kiss Ultra
a6d70be96a
Fixes #13220: Fix kiss esc passthrough, Fix castle (escprog cc) command. (#13911)
* Fix kiss esc passthrough, Fix castle (escprog cc) command.

* Update src/main/drivers/serial_escserial.c

Thank you.

Co-authored-by: Mark Haslinghuis <mark@numloq.nl>

---------

Co-authored-by: Alex Fedorov <fedor@anuta.org>
Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
2024-09-21 02:32:46 +02:00
Dominic Clifton
199c0ec99d
Fix escserial for HAL targets. (#12992)
* Fix escserial for HAL targets.

* Remove the code disabling ESCSERIAL for F7.

* Timer/StdPeriph - Add an implementation of 'timerReconfigureTimebase'.

Simply calls the `configTimeBase`, seemed cleaner than adding #ifdef USE_HAL_DRIVER everywhere instead.
2023-08-08 08:49:48 +10:00
J Blackman
804bc16475
FIX: ESCSERIAL_PIN not mapped correctly (#12486) 2023-03-10 06:38:00 +11:00
Steve Evans
701b0ae55c Remove F1 and F3 support 2022-06-14 19:10:13 +01:00
jflyper
ff16686893 White space tidy 2020-02-17 23:54:57 +13:00
mikeller
ab025b76a8 Fixed missing spaces after 'if'. 2020-01-26 13:16:01 +13:00
mikeller
768b345166 Added resource index display. 2019-08-08 11:49:51 +12:00
mikeller
6a0c5836de Added 'timer show' command to CLI. 2019-08-06 23:56:54 +12:00
jflyper
542146c702 Motor code refactor (Phase 1) 2019-07-17 01:33:39 +09:00
jflyper
0e63596abd Move motorConfig_s, motorDevConfig_s and associated PG handling into pg/motor.[ch] 2019-06-29 20:03:54 +09:00
jflyper
f9bd71f9be Remove bogus pg/pg.h and pg/pg_ids.h from driver files 2019-06-29 02:21:51 +09:00
Bruce Luckcuck
4caa20bab2 Revise ESCSERIAL to work with unified targets
Remove dependencies on timer definition order and base on the pins assigned as motor resources.
2019-03-30 23:38:43 -04:00
mikeller
f8103b8c86 Added DMA mapping (readonly for now), and enabled timer management for all F4 boards.
Converting the universal target as well.

Simplified timer management some.

Added F722 support for good measuer.

Fixed SITL, tests.

Cleanup after rebase.

Added support for all timer consumers and F7.

Fixed 'USE_DMA_SPEC' for F3, some cleanups.
2019-02-28 00:25:43 +13:00
jflyper
938a2f708c Conditionalize SimonK handling from escserial and drop it from F3 2018-12-23 18:02:25 +09:00
blckmn
aad6efdf03 Timer clean up in preparation for configurable timers 2018-05-06 06:55:17 +10:00
blckmn
a9f74cd6df Removed excess trailing spaces before new lines on licenses. 2018-04-25 20:58:00 +10:00
blckmn
46fe22b4bd Direct license replacement 2018-04-22 09:22:46 +10:00
SteveCEvans
5558174d33 Support programming of Arduino devices in serial passthrough mode (#5129)
* Support DTR in serial passthrough mode to enable programming of Arduino
based devices such as MinimOSD.

Use 'serialpassthrough 5 57600 rxtx 56' and then use Ardino to program MinimOSD
Use 'serialpassthrough 5 115200' and then use MWOSD configurator to setup

* Fix comment for CDC_SetCtrlLineStateCb routine

* Handle F7 CDC interface

* Use strToPin() to allow easy port/pin specification

* Fix use of CDC_SetCtrlLineStateCb for all processor types

* Only set baud when specified

* Fix unit tests for cli

* Only register callback if needed

* Fix white space

* Provide implementation of IOConfigGPIO in SITL

* Update serialpassthrough help text

* DTR handling through serial drivers

* Fix F3, F7 and SITL builds

* If serialpassthrough command specifies baud rate of 0, set baud rate over USB. MWOSD configurator can now access config and reflash MinimOSD without rebooting and changing baud rate.

* Fix F3 build

* Fix failing unit tests

* Use resources to declare DTR pin assignment

* Don't assert DTR during normal operation as MW_OSD doesn't like it

* MW_OSD must be built with MAX_SOFTRESET defined in order to support DTR resets

* Minimise changes after dropping DTR pin param from serialpassthrough cmd

* Remove DTR pin param from serialpassthrough cmd

* Treat ioDtrTag as boolean in conditional statements

* Tidy buffer check

* Check buffer size in CDC_Itf_Control

* Fix unit test

* Add documentation for DTR

* Add note on MAX_SOFTRESET to documentation

* Remove superfluous function definitions

* Fix tabs

* Fix tabs

* Removed superfluous entried from vtable

* Backout whitespace changes unrelated to this PR

* Pass true/false to IOWrite()

* Fix line coding packing

* Add LINE_CODING structure defintion

* Revise serial documentation

* Prevent tx buffer overflow in serialPassthrough()

* Revert change unrelated to PR

* Review feedback from ledvinap

* Fix unit test

* Use PINIO to drive DTR

* Fix unit test

* Remove change unrelated to PR

* Fix SITL build

* Use shifted bits for mask definition

* Fix serialpassthrough documentation

* Only compile PINIO functionality if USE_PINIO defined

* IOConfigGPIO not needed

* Move cbCtrlLine callback to cli.c

* serialPassthrough params changed

* Check packed structure size

* Fix unit test

* Tidy up baud rate handling
2018-03-21 23:17:31 +13:00
mikeller
b489d0ba9d Renamed 'parameter_group' to 'pg'. 2017-12-19 23:36:31 +13:00
Martin Budden
8cb7abd15f Added data parameter to UART RX callback 2017-11-25 10:11:37 +00:00
jflyper
19489af153 Avoid N-Channel for RX side 2017-08-31 04:38:27 +09:00
jflyper
8c3d8c3a46 Remove reference to TIMER_OUTPUT_ENABLED 2017-08-30 00:59:43 +09:00
Martin Budden
944fe0761c Tidied UART enum definitions 2017-07-29 13:30:37 +01:00
jflyper
e30d9e4a29 Rebased onto #3469 2017-07-09 20:53:05 +09:00
Michael Keller
cfbfdf32e8 Merge pull request #3471 from mikeller/added_motor_255_to_cli
Added command 'motor 255' (all motors) to CLI.
2017-07-09 20:25:34 +12:00
jflyper
870f10e316 Fixed default, added BETAFLIGHTF4 2017-07-09 16:00:37 +09:00
jflyper
5a7054f704 Merge branch 'master' into bfdev-configurable-escserial-pin 2017-07-09 12:58:04 +09:00
Martin Budden
3d4f0bb137 Whitespace tidy 2017-07-05 06:36:22 +01:00
jflyper
b1b3882c13 Make ESCSERIAL compatible with F7 2017-07-04 17:42:08 +09:00
jflyper
f78ced9a4d Converted target.h
[Converted]
AIR32: entry 0 PA4
AIRHEROF3: entry 0 PA0 (PPM)
ALIENFLIGHTF3: entry 0 PB14
ALIENFLIGHTF4: entry 0 PA8 (PPM)
BEEROTORF4: entry 0 PA3 (PPM)
BETAFLIGHTF3: entry 0 PB7 (PPM)
BLUEJAYF4: entry 0 PC7 (PPM)
CHEBUZZF3: entry 0 PA8
CLRACINGF4: entry 0 PB9 (PPM)
COLIBRI: entry 0 PA10 (PPM)
COLIBRI_RACE: entry 0 PA8 (PPM)
DOGE: entry 0 PA8 (PPM)
F4BY: entry 8 8 PA0
FF_FORTINIF4: entry 0 PB0
FF_PIKOBLX: entry 0 FF_RADIANCE||FF_KOMBINI PA7 else PA4
FF_PIKOF4: entry 0 PA3
FISHDRONEF4: entry 0 PB0 (PPM)
FRSKYF3: entry 0 PB9
FRSKYF4: entry 0 PB8 (PPM)
FURYF3: entry 0 PB3 (PPM)
FURYF4: entry 0 PC9 (PPM)
IMPULSERCF3: entry 0 PA15 (PPM)
IRCFUSIONF3: entry 0 PA0 (PPM)
ISHAPEDF3: entry 0 PA0 (PPM)
KAKUTEF4: entry 0 PC7 (PPM)
KISSFC: entry 6 PA13 (Common to KISSFC & KISSCC)
KIWIF4: entry 0 PA3
LUX_RACE: entry 0 PA8 (PPM)
MOTOLAB: entry 0 PA4
MULTIFLITEPICO: entry 0 PA0 (PPM)
OMNIBUS: entry 0 PB4 (PPM)
OMNIBUSF4: entry 0 PB8 (OMNIBUSF4SD,PPM) PB14 (else, PPM)
RACEBASE: entry 0 PA0 (PPM)
RCEXPLORERF3: entry 0 PA8
REVO: entry 0 PB14 (PPM)
REVONANO: entry 0 PB10 (PPM)
SINGULARITY: entry 0 PA15 (PPM)
SIRINFPV: entry 0 PB11 (PPM)
SPARKY: entry 0 PB15
SPARKY2: entry 0 PC7 (PPM)
SPRACINGF3: entry 0 PA0 (PPM)
SPRACINGF3EVO: entry 0 PA15 (PPM)
SPRACINGF3MINI: entry
SPRACINGF3NEO: entry 0 PA3 (PPM)
SPRACINGF4EVO: entry 0 PA3 (PPM)
SPRACINGF4NEO: entry 0 PA3 (PPM)
STM32F3DISCOVERY: entry 0 PB8 (PPM)
VRRACE: entry 0 PE9 (PPM)
X_RACERSPI: entry 0 PA0 (PPM)
YUPIF4: entry 0 PC8 (PPM)

[No ESCSERIAL defined (non-F7)]
ALIENFLIGHTF1
CC3D
CJMCU
CRAZYFLIE2
ELLE0
KROOZX
LUMBAF3
MATEKF405
MICROSCISKY
NAZE
RG_SSD_F3
SITL
SPRACINGF3OSD
TINYFISH

[No ESCSERIAL defined (F7)]
ANYFCF7
ANYFCM7
CLRACINGF7
FURYF7
NUCLEOF7
NUCLEOF722
OMNIBUSF7

[ESCSERIAL disabled]
ALIENFLIGHTNGF7: entry 0 PA8 (PPM) DISABLED
NERO: entry 0 PC7 (PPM) DISABLED
2017-07-03 00:37:00 +09:00
jflyper
8d3ee3a554 Make esc serial tx timer pin configurable 2017-07-02 16:49:00 +09:00
blckmn
4484ee0616 Removed incorrect floats 2017-06-28 22:04:46 +10:00
blckmn
b9ebf8f4fd PWM output calculations dynamic based on clock speed 2017-06-28 21:59:42 +10:00
Martin Budden
23f158913e Moved time functions out of system.h into time.h 2017-05-26 14:03:28 +01:00
Martin Budden
2493c214b0 Created subdirectories in drivers directory 2017-04-12 08:06:22 +01:00
Jeff
a780c3acf4 CloseEscSerial no longer sets down incorrect serial timer when escaping ESC passthrough 2017-01-03 16:26:24 -06:00
Michael Keller
455e54e1c5 Added ESC passtrough to MSP (poc).
Fixed typo.

Cleanup.

Fixed indentation.
2016-12-13 15:25:32 +13:00
Michael Jakob
46387c9dbe Cleanup ENUM usage 2016-12-04 16:09:21 +01:00
blckmn
01f942554c Fixed timer output needing to be properly enabled (when using PPM pins etc). 2016-11-26 21:36:50 +11:00
Jeff
60231732ba Minor Formatting Tweaks
Converted tabs to spaces
Indented cases in switch
2016-11-14 15:00:52 -06:00
Jeff
b62e91df15 Added serial passthrough settings for Castle Creations
Corrected conditional in setTxSignalEsc
2016-11-14 14:03:31 -06:00
blckmn
58105c25ac Simplified Owner management 2016-11-10 18:56:13 +11:00
Sami Korhonen
d2981cd704 escprog inverted output support
multiport test, usage "escprog ki 255"
2016-11-05 11:27:02 +02:00
borisbstyle
726a8d29e2 Refactor conflicting serial function names 2016-10-24 01:52:51 +02:00
Sami Korhonen
14d1e25280 only TX in kiss mode 2016-10-23 10:23:43 +03:00
Sami Korhonen
7929e1b8f1 Escserial test 2016-10-23 09:48:51 +03:00
borisbstyle
a0b8faa7b8 Add dynamic Baudrates 2016-10-23 00:59:08 +02:00