1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 14:25:20 +03:00
Commit graph

89 commits

Author SHA1 Message Date
mikeller
4acf0893df Fix the problem of multiple timer allocations with bitbanged Dshot. 2019-09-09 00:48:02 +12:00
Dominic Clifton
4eb839c7bf Add fullTimerHardware for F3 for use with USE_TIMER_MGMT.
STM32F3 doesn't have TIM5.
2019-08-27 04:38:16 +02: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
7ddfd7dea6 Unify DMA stream and channel handling 2019-07-27 21:20:34 +09:00
mikeller
72d05f682c Fixed build if none of USE_DSHOT, USE_LED_STRIP, USE_TRANSPONDER are defined. 2019-06-30 15:16:14 +12:00
jflyper
8ceaed1072 [H7] Add pseudo peripheral TIMUP for TIMx_UP DMA management 2019-06-28 15:45:19 +09:00
jflyper
22d046c879 [H7] Add USE_TIMER_MGMT to H7 2019-06-10 00:00:16 +09:00
jflyper
16f2392458 [H7] Add USE_DMA_SPEC to H7 2019-06-07 08:00:52 +09:00
jflyper
e18c4ec662 [H7] Use channel member for H7 DMA request 2019-06-05 18:13:17 +09:00
jflyper
f0e5363703 Remove excess member from timerHardware_s 2019-06-02 21:32:03 +09:00
jflyper
a8c16c1cf8 [H7] Enable timer
[TIME] Basic def

[TIMER] timer related commits

[TIMER] Remove stale comments from timer_stm32h7xx.c

[TIMER] New timerClock() based on RM0443 Table 48

[TIMER] Add DMA handling

[TIMER] White space tidy in timer_def.h

Add TIM1_UP_IRQ handling

Fix DEF_TIM_DMA_FULL emitting error for 7th and 15th entry

STM32H7 - add TIM15-CH2 (No DMA)

Fix comment spelling errors.

timer.h change for "Burst Dshot First working version"

Fix bad TIM9 handling for non-H7 case

Touch-up after rebase (timer.h)

F4 and F7 does not have dmaIrqHandler in timerHardware_s (anymore)

Changes per PR comment
2019-05-08 02:26:22 +09:00
mikeller
a5753600ed Fixed missing timer definition for F7. 2019-03-10 22:13:12 +13:00
mikeller
fb5c468f92 Added default value processing for , . 2019-03-07 18:34:52 +13:00
mikeller
de8f4028e3 Added support for F411, F446, F745, F765.
Added MATEKSYSF411 target config.

Added CRAZYBEEF4FR unified config.
2019-03-01 02:44:23 +13:00
mikeller
31425f5171 Made DMA options configurable. 2019-02-28 02:20:43 +13: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
mikeller
cf367eae2c Fixed camera pin flag. 2018-08-18 14:16:41 +12:00
mikeller
430379016e Converted camera control pin definition to timer flag. 2018-08-17 00:26:02 +12: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
DieHertz
a89409a26a Added TIM_UP + burst DMA -based DSHOT to F3 2017-12-28 16:26:24 +03:00
jflyper
759e03c47e F4 Dshot-DMAR initial working version 2017-12-26 10:18:52 +09:00
jflyper
db014752d7 Convert TRANSPONDER to USE_xxx scheme 2017-12-11 02:49:00 +09:00
jflyper
209be419cb Add TIMUP pseudo resource 2017-11-28 10:16:34 +09:00
mikeller
b78d8ad83e Converted more 'feature' type defines to use the 'USE_<x>' convention: LED_STRIP TARGET_CONFIG BRUSHED_ESC_AUTODETECT SERIAL_RX TELEMETRY TELEMETRY_CRSF TELEMETRY_FRSKY TELEMETRY_HOTT TELEMETRY_IBUS TELEMETRY_JETIEXBUS TELEMETRY_LTM TELEMETRY_MAVLINK TELEMETRY_SMARTPORT TELEMETRY_SRXL TELEMETRY_NRF24_LTM TELEMETRY_LTM SPEKTRUM_BIND NAV BUTTONS 2017-11-07 18:49:12 +13:00
jflyper
2a1b09f3ae Renumbered timerFlag_e
Also made it clear that they are bit flags.
2017-11-07 03:36:05 +09:00
jflyper
751a3307cb Remove unused MOTOR_OUTPUT flags 2017-11-06 14:52:30 +09: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
blckmn
a078739ec2 Removed superfluous timerClockDivisor (not used anywhere anymore). 2017-07-09 07:41:02 +10: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
blckmn
0d13736e2f Simplified getting timerClock 2017-05-11 13:17:58 +10:00
Martin Budden
2493c214b0 Created subdirectories in drivers directory 2017-04-12 08:06:22 +01:00
Hydra
2ec39de031 CF/BF - Fix compilation of transponder when not using DHSOT or LED_STRIP 2017-04-12 00:37:23 +01:00
Martin Budden
152c594151 Code tidy 2017-04-11 19:05:54 +01:00
Michael Keller
6b008ee971 Merge pull request #2757 from Faduf/BeeperPwm
Buzzer PWM
2017-04-07 09:05:45 +12:00
cs8425
120fa21693 implement SITL in gazebosim with ArduCopterPlugin
need implement fake eeprom & fake IO

need implement fake system function

can compile, stuck in isEEPROMContentValid()

EEPROM in memory work

EEPROM as file should work

fix some complie warning

MSP over TCP work (add dyad.c)

a little clean up

fix FLASH_CONFIG_Size in ld script & implement some pwmout

IO to simulator work!! need to check direction & scale!!

can fly but Gyro buggy

move dyad.c

fix busy-loop (limit to max 20kHz)

can simulatie in different speed now! (hard code)

add option for IMU calculation

add README.md

move dyad.c and fix F3 overrun the flash size

explanation SITL in README.md and reuse CFLAGS, ASFLAGS
2017-04-05 18:22:59 +08: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
J Blackman
792941606f Initial preparation for cleaning up multiple files per MCU (#2500)
* Initial preparation for cleaning up multiple files per MCU

* Combined DSHOT for F3 and F4 (F7 todo)

* Build fixes (mixed some adjustments needed in transponder_ir.c)

* Fix F7 warnings/bugs

* Updated timer periods for transponder.

Fixed FURY including old pwm_output files.

* Added method to calculate prescaler and period on the fly for varying clock speeds.

This can be used for overclocking :)

* Consolidated led_strip

* Moved led strip to use system clock for timing (allowing overclocking)

* Fixed incorrect channel, and removed comparison warning.

* More cleanup

* Fix KIWIF4 target

* Cleaned up target.mk files
2017-03-01 19:50:23 +00:00
blckmn
01f942554c Fixed timer output needing to be properly enabled (when using PPM pins etc). 2016-11-26 21:36:50 +11:00
Hydra
782d8316da Move transponder to use IO/Timer configuraton.
Initialisation now matches LED strip code.
2016-11-17 19:07:33 +01:00
blckmn
9451d4b30d Enabled DSHOT for F3 and F4 by default. 2016-11-13 19:08:22 +11:00
Martin Budden
19901730fc Removed trailing spaces from device drivers 2016-11-11 08:11:48 +00:00
blckmn
1dbd7ee732 Simplified target timer definitions 2016-11-09 16:24:21 +11:00
blckmn
d7fe69a421 Removing irq completely from target.c 2016-11-07 15:04:13 +11:00
blckmn
159236093e Remove need for IRQ to be provided in target.c 2016-11-07 09:54:55 +11:00
blckmn
e56f915018 Moving LED strip to be configurable via resource command 2016-11-05 13:35:20 +11:00