1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 21:05:35 +03:00
Commit graph

32 commits

Author SHA1 Message Date
Steve Evans
b701b89a7c Fix DSHOT on G4 2022-01-06 01:18:16 +00:00
Dominic Clifton
0b7fcb7df4 STM32H7 - Use FAST_CODE on all HOT ISRs to avoid flash access on targets where
FAST_CODE functions are placed in RAM.
2021-12-23 15:02:12 +01:00
blckmn
554128e4d1 Keeping debug naming in-line with existing function naming convention. 2021-10-03 17:02:21 +13:00
Michael Keller
80be08f050 Added resource allocation for DMA. 2021-09-28 02:44:07 +13:00
Michael Keller
60b1e99826 Fixed 'timer show' for bitbanged Dshot timers. 2021-09-13 13:05:01 +12:00
Dominic Clifton
49869fa2bb Debug - Initialise debug pins on startup, not as part of the dshot
bitbang code.
2021-08-18 15:37:54 +02:00
Michael Keller
9705f9f77e
Merge pull request #10882 from mikeller/fix_bitbanged_dshot_comment
Fixed comment in bitbanged Dshot code.
2021-08-09 03:13:03 +12:00
Michael Keller
8a18651319
Merge pull request #10863 from mikeller/add_n_channel_to_timer_show 2021-08-04 01:43:30 +12:00
Michael Keller
d129a9dc2b Fixed comment in bitbanged Dshot code. 2021-08-04 00:53:58 +12:00
Dominic Clifton
f3bda6a4a1 Fix no motor outputs when bi-directional dshot is disabled (the
default).

The issue is that the DMA is never enabled, and thus the DMA IRQ handler
was never called either.
2021-07-30 22:44:53 +02:00
Michael Keller
4d79c0fbd2 Rename timer functions to make them easier to understand. 2021-07-28 01:01:46 +12:00
Michael Keller
9eda7b4735 Added indication for N-channel timers to 'resource show all'. 2021-07-27 18:35:13 +12:00
Steve Evans
87c8847c13 New SPI API supporting DMA
Call targetConfiguration() once before config is loaded and again afterwards in case the config needs to be changed to load from SD card etc

Drop SPI clock during binding

Remove debug

Add per device SPI DMA enable

Fix sdioPinConfigure() declaration warning

Reduce clock speed during SPI RX initialisation
2021-07-25 12:40:25 +12:00
Steve Evans
99ad7bf5e8 Check output, not input buffer 2020-11-26 20:52:18 +00:00
Steve Evans
080717a407 Fix DShot cache clean/invalidate 2020-11-24 19:27:25 +00:00
Steve Evans
31b06cd7d2 Add USB MSC support for H7 2020-10-30 19:30:38 +00:00
jflyper
fe1a05fa2a [H7] BB-Dshot support (TIM1/TIM8 limited version) 2020-09-30 23:27:23 +09:00
jflyper
35bad24c55 [G4] BB-DSHOT support (TIM1/TIM8 limited version) 2020-09-25 20:25:07 +09:00
Sam Lane
4c99ad743d Rename FAST_RAM to FAST_DATA 2020-08-23 08:49:26 +01:00
limonspb
464919c416 Motor output reordering for CLI and MSP
Fixed some code formatting

+fixReorderingArray() for EEPROM load/save and renamings

fix brace new line

moving MOTOR_OUTPUT_REORDERING to MSP2 betaflight specific

validateAndfixConfig now resets reordering motor array to default in case it is invalid
2020-07-27 20:10:37 -05:00
mikeller
14359ae6e6 Added facility to use GPIO pins for fast debugging. 2019-10-21 20:13:26 +13:00
Thorsten Laux
9ed18b78b3 prefer timer 8 for dshot_bitbang 2019-09-15 14:35:42 +02:00
Thorsten Laux
b29329c061 prevent using same timer channel twice 2019-09-14 09:09:52 +02:00
mikeller
65be79c86a Fix faulty timer allocation in bitbanged Dshot. 2019-09-13 00:29:09 +12:00
Michael Keller
2a18209492
Fixed problems with bitbanged Dshot and lazily allocated timers. (#8861)
Fixed problems with bitbanged Dshot and lazily allocated timers.
2019-09-11 01:21:59 +12:00
Michael Keller
d5897528ed
Fix F411 pacing timer selection (#8853)
Fix F411 pacing timer selection
2019-09-10 15:16:00 +12:00
mikeller
2b98f137db Fixed problems with bitbanged Dshot and lazily allocated timers. 2019-09-10 01:48:25 +12:00
Thorsten Laux
81f80636f0 Fix F411 pacing timer selection 2019-09-08 19:05:12 +02:00
mikeller
4acf0893df Fix the problem of multiple timer allocations with bitbanged Dshot. 2019-09-09 00:48:02 +12:00
Thorsten Laux
b6b2b90f38 Fix serial esc telemetry with bitbang dshot 2019-09-05 11:13:25 +02:00
TheIsotopes
077fed23ee
Remove DShot1200 Protocol Part2
has crept in with #8736
2019-09-04 17:04:46 +02:00
jflyper
adf6fd1764 DMA bit banging Dshot, first cut
F405 working (OMNIBUSF4SD target)
F411 not tested
F722 working, needs testing (OMNINXT7 target)
F74x not working

NOX target (temporary)

bb_dshot with telemetry on f4
bbshot f7 targets and fix crash due to missing debug pins

remove empty line

add empty lines

remove OMNIBUSF4 specific debug pins

add missing comma

add missing comma

Use separate bbTimerHardware array to fix unified targets

eliminate now unneeded timerGetByUsage

don't duplicate timer1 def

Add auto mode, rename dshot_bbshot to dshot_bitbang

remove newline

renamve various files

various changes to address feedback

address feedback

address feedback

add pacer timers to timer show

don't disable telemetry if dshot_bitbang is on or auto

Address feedback, add faster decode implementation based on bit banding, modify dma parameters to reduce required memory bandwidth on half

remove debug output

remove NOINLINE

Protect gpio direction change with critical sections

FIXWS_SAVE_INDEX

add static back in

no forward typedef

address review feedback

disallow proshot1000 with dshot bitbang

Extracted and plumbed up 'dbgPin'.
2019-09-04 16:06:48 +12:00