1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 05:15:25 +03:00
Commit graph

33 commits

Author SHA1 Message Date
mikeller
51763a40f9 Made Dshot commands work in a non-blocking way. 2018-06-01 21:56:11 +12:00
Bryce Johnson
0045b36320 Added blocked dshot commands, Added post command delay
Moved the dshotcommand to happen in pwm_output_dshot.
Simplified the timing and repeats to happen on a group basis instead works better for dshotburst
2018-06-01 21:56:11 +12:00
Andrey Mironov
d8dd6f29f8 Set FAST_RAM to go into .fastram_data by default. Added FAST_RAM_NOINIT 2018-05-23 14:40:33 +03:00
blckmn
a9f74cd6df Removed excess trailing spaces before new lines on licenses. 2018-04-25 20:58:00 +10:00
blckmn
2be282e2d7 Some stragglers 2018-04-22 09:42:09 +10:00
Andrey Mironov
ff4c2bc145 Post-cleanup of F7 optimizations (#5729)
* Moved ART Prefetch enabling from library to main code

* Fixed tabs to spaces

* Added F7 LL EX header to simplify work with DMA and TIM

* Refactored F7 DSHOT using LL EX

* Got rid of overlooked duplicate lines
2018-04-21 18:14:35 +12:00
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
Dominic Clifton
aa42a69d2f Revert "Rewritten F7 dshot to LL (draft)" (#5430)
This reverts commit fa3c7e0833.
2018-03-09 23:39:04 +03:00
Andrey Mironov
fa3c7e0833 Rewritten F7 dshot to LL (draft) 2018-02-20 00:49:10 +03:00
Michael Keller
1840d645f2
Merge pull request #5098 from jflyper/bfdev-configurable-burst-dshot
DShot Make burst and non-burst runtime configurable
2018-02-12 12:48:34 +13:00
jflyper
9475988218 Make burst and non-burst runtime configurable 2018-02-11 23:24:07 +09:00
jflyper
825bc7aaba Add comment about duplicate initialization of timers and DMAs 2018-01-31 19:53:24 +09:00
jflyper
9f04705130 Use striding loadDmaBuffer to avoid buffer copy 2017-12-26 18:17:32 +09:00
jflyper
fd53e1366e Clean up Dshot or HAL
- Removed unnecessary member motorIndex from motorDmaOutput_t (member
timer is pointing to motorDmaTimer_t).
- As a result, replaced dmamotor[motor->timerIndex] with motor->timer.
- Consolidated common codes among USE_DSHOT_DMAR and non-USE_DSHOT_DMAR
code in pwmDshotMotorHardwareConfig.
2017-12-24 11:13:33 +09:00
jflyper
446606d9e6 Consolidate IOInit calls 2017-12-23 18:24:40 +09:00
Michael Keller
6936ba6dab
Merge pull request #4667 from jflyper/bfdev-TIMUP-pseudo-resource
Add TIMUP pseudo resource to use with DMAR
2017-11-28 22:22:03 +13:00
jflyper
209be419cb Add TIMUP pseudo resource 2017-11-28 10:16:34 +09:00
Sami Korhonen
381c24bd55 Fix F7 DMAR N-channel output init 2017-11-26 14:44:26 +02:00
Sami Korhonen
f8469ae40e TIM_UP 2017-11-02 16:32:50 +02:00
Sami Korhonen
7c58d6d896 fix badly used outputinverter 2017-10-15 10:08:41 +03:00
Sami Korhonen
fa6112e1b8 F7 Dshot hack 2017-10-15 10:08:41 +03:00
DieHertz
9321c18e0a Apply rounding rules to dshot prescaler to minimize error 2017-10-15 02:45:07 +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
Sami Korhonen
76c4a1c8f0 Fix F7 digital pwm and ledstrip 2017-08-28 19:50:04 +03:00
mikeller
05a8141139 Enable only DMA for channels that are used. 2017-08-25 16:12:52 +12: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
TonyBazz
b4d2388103 Some simple changes to allow for Proshot (Another digital protocol). 2017-06-08 21:44:15 +10:00
Martin Budden
23f158913e Moved time functions out of system.h into time.h 2017-05-26 14:03:28 +01:00
blckmn
0d13736e2f Simplified getting timerClock 2017-05-11 13:17:58 +10:00
Sami Korhonen
5214f4bdec Rename HAL dshot file and cleanup 2017-05-06 13:37:27 +03:00
Renamed from src/main/drivers/pwm_output_stm32f7xx.c (Browse further)