1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 06:15:16 +03:00
Commit graph

99 commits

Author SHA1 Message Date
Andrey Mironov
bf984f39b1 F7 optimizations (#5674)
* Revert "Revert "Rewritten F7 dshot to LL (draft)" (#5430)"

This reverts commit aa42a69d2f.

* Reworked F7 linker scripts to maximize performance of both F74x and F72x

* Some comments and changes from original F7 HAL DSHOT

* Prohibit inlining of some functions to place them in ITCM-RAM

* Fixed usartTargetConfigure implicit declaration

* Moved back to SRAM1 as main RAM

* Added SRAM2 attribute

* Fixed LL DSHOT FOR SPRF7DUAL and probably other adv TIM users

* Fixed SPRF7DUAL rev. A motor order

* Enabled CCM for data on F40x

* Fixed F7 startup assembly symbols

* Fixed KISSFCV2F7 linker script

* Added a quick way of building F7 targets only

* Got rid of the useless F7 target script

* Added NOINLINE and got rid of useless __APPLE__ define

* Added some important functions to ITCM

* Added NOINLINE macro for tests

* Copy to ITCM before passing execution into it

* Minimized cache footprint of motor output code

* Evicted low-impact functions from ITCM

* Switched MATEKF722 and SPRACINGF7DUAL to burst DSHOT

* Switched CLRACINGF7 to burst DSHOT

* Moved UART RX&TX buffers to DTCM-RAM to avoid cache incoherency

* Marked taskMainPidLoop for ITCM-RAM, disallowed inlining per-function

* Revert "Added a quick way of building F7 targets only"

This reverts commit 2294518998.
2018-04-20 08:37:32 +12:00
jflyper
416495e17a Convert BEEPER to USE_ scheme (#5433) 2018-03-11 09:28:08 +13:00
Dominic Clifton
aa42a69d2f Revert "Rewritten F7 dshot to LL (draft)" (#5430)
This reverts commit fa3c7e0833.
2018-03-09 23:39:04 +03:00
Michael Keller
9bcc6aca8e
Revert "BEEPER Conversion to use USE_ scheme" (#5368) 2018-03-04 09:40:17 +13:00
jflyper
bf11921dc0
Merge pull request #5285 from jflyper/bfdev-convert-beeper-to-USE_-scheme
BEEPER Conversion to use USE_ scheme
2018-03-03 23:22:56 +09:00
jflyper
dedad2f920
Merge pull request #5237 from DieHertz/dshot-f7-low-level-rewrite
F7 DSHOT LL rewrite
2018-03-03 18:26:48 +09:00
jflyper
ea0db878bf Convert to USE_ scheme 2018-03-02 22:29:40 +09:00
Andrey Mironov
250d2965c2 Fixed F3 burst DSHOT 2018-02-20 09:12:56 +03:00
Andrey Mironov
fa3c7e0833 Rewritten F7 dshot to LL (draft) 2018-02-20 00:49:10 +03:00
mikeller
7192e9de19 Fixed parameter group violations in motorDevConfig_t, incremented EEPROM config version before 3.3.0 release. 2018-02-15 18:25:28 +13:00
jflyper
9475988218 Make burst and non-burst runtime configurable 2018-02-11 23:24:07 +09:00
DieHertz
a89409a26a Added TIM_UP + burst DMA -based DSHOT to F3 2017-12-28 16:26:24 +03:00
jflyper
9f04705130 Use striding loadDmaBuffer to avoid buffer copy 2017-12-26 18:17:32 +09:00
jflyper
759e03c47e F4 Dshot-DMAR initial working version 2017-12-26 10:18:52 +09:00
Martin Budden
5924eb83cf Reserve DSHOT commands 2017-11-19 13:14:58 +00:00
Sami Korhonen
f8469ae40e TIM_UP 2017-11-02 16:32:50 +02:00
Sami Korhonen
fa6112e1b8 F7 Dshot hack 2017-10-15 10:08:41 +03:00
Michael Keller
624e9b64b5 Merge pull request #3938 from mikeller/fix_dshot_command_all_motors
Enable only DMA for channels that are used.
2017-10-10 00:35:24 +13:00
mikeller
8ff2c9ba95 Renamed 'DSHOT_CMD_BEEPx' to 'DSHOT_CMD_BEACONx', made beacon tone
configurable.
2017-09-19 23:24:24 +12:00
mikeller
f7c66869e8 Added support for decoding BLHeli32 ESC info. 2017-08-29 18:29:05 +12:00
mikeller
05a8141139 Enable only DMA for channels that are used. 2017-08-25 16:12:52 +12:00
mikeller
91ffa4b88c Fixed Dshot command sending to all motors. 2017-08-23 01:59:34 +12:00
Martin Budden
8dd4a584c1 Fixed whitespace 2017-08-17 08:32:37 +01:00
Michael Keller
a9da874d83 Fixed naming of function prototypes in 'pwm_output.h'. 2017-07-31 18:38:23 +08:00
Martin Budden
554bd1257d Reduced MAX_SUPPORTED_MOTORS from 12 to 8 2017-07-29 21:28:54 +01:00
Michael Keller
dcc600a78b Merge pull request #2727 from DieHertz/camera-control
Camera OSD control
2017-07-18 06:47:57 +08:00
Faduf
1f809048df remove beeper dependency in pwm output 2017-07-16 09:45:02 +02:00
DieHertz
cc358dc405 Implemented Camera Control using Hardware and Software PWM 2017-07-16 02:23:31 +03:00
Faduf
d6b9350c74 Add specific configuration depending on hardware revisions of the YupiF4 2017-07-15 19:41:48 +02:00
mikeller
dec6cca1a5 Update Dshot command spec to reflect recent changes. 2017-07-11 22:15:46 +12:00
Martin Budden
87ae1616d6 Further better use of pwmAreMotorsEnabled 2017-07-06 08:55:26 +01:00
Martin Budden
3cdbaaf14d Remove duplication in motor enable/disable 2017-07-06 08:55:26 +01:00
blckmn
06ad65a2f6 Minor cleanup 2017-06-29 11:19:04 +10:00
blckmn
b9ebf8f4fd PWM output calculations dynamic based on clock speed 2017-06-28 21:59:42 +10:00
Michael Keller
779823fb79 Cleaned up Dshot naming, containment. 2017-06-25 18:20:29 +12:00
mikeller
76869eb3dd Changed function pointer semantics. 2017-06-21 00:38:01 +12:00
mikeller
559079ff31 Fixup Dshot / Proshot implementation. 2017-06-21 00:12:01 +12:00
borisbstyle
b21877438e Convert motor values at the final stage // Increase resolution 2017-06-19 09:51:17 +02:00
borisbstyle
9a4e93fa60 Merge pull request #3162 from TonyBazz/master
ProShot Implementation
2017-06-19 07:57:02 +02:00
mikeller
7c14c49701 Changed 'pwmWriteDshotCommand' to use switch for better readability. 2017-06-18 15:51:03 +12:00
Bryce Johnson
13e21c969e Added Dshot commands for reversing the motors and beeper for blheli_s 2017-06-14 12:34:36 -05:00
TonyBazz
b4d2388103 Some simple changes to allow for Proshot (Another digital protocol). 2017-06-08 21:44:15 +10:00
Martin Budden
2493c214b0 Created subdirectories in drivers directory 2017-04-12 08:06:22 +01:00
Faduf
458cf6601d Beeper PWM support
Beeper PWM frequency set limited to positive values

Removal of all the defined(BEEPER_PWM)

tabs and spaces cleanup in beeper functions

Add IOGetByTag and timerGetByTag check to Beeper Pwm Init

Add IO check before every Beeper Pwm functions in pwm_output

Update pwm_output.c after comments from Mikeller
2017-03-31 20:23:27 +02:00
borisbstyle
16309b1a2c Merge pull request #2393 from mikeller/added_dshot_esc_command_support
Added support for DShot ESC settings to CLI.
2017-03-02 22:52:06 +01:00
borisbstyle
d3ac73a0a0 Revert DSHOT Interrupt 2017-03-02 17:55:40 +01:00
mikeller
85b002bb73 Added support for DShot ESC settings to CLI. 2017-02-20 12:45:44 +13:00
Martin Budden
2c667376fa Preparation for conversion to parameter groups 12 2017-02-19 11:41:49 +00:00
Martin Budden
781b1b1352 Removed dependency of pwm_output driver on mixers and servos 2017-02-19 08:59:37 +00:00
Martin Budden
90c8ed5e3e Preparation for conversion to parameter groups 10 2017-02-19 08:33:25 +00:00