1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-15 20:35:33 +03:00
Commit graph

59 commits

Author SHA1 Message Date
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
blckmn
fa23aa6abf Corrections following review 2016-11-01 14:15:44 +11:00
blckmn
c5bb7cfd2f Introduced TIM_USE_ flags to give defaults for reset configuration. 2016-11-01 14:15:44 +11:00
blckmn
fe3ac4754e Timer code simplification in preparation of led strip being assignable.
Moved some repeated code into timer.c - preparation for allowing resource command for led strip
2016-10-23 14:16:55 +11:00
Sami Korhonen
97f554e210 F7 First try on ledstrip 2016-10-21 08:51:04 +03:00
Sami Korhonen
6e51f2f9b2 F7 Cleanup 2016-10-21 08:51:03 +03:00
Sami Korhonen
1f8805cdf0 squash betaflightF7
Parts and driver boost from @npsm
2016-10-21 08:51:02 +03:00
blckmn
4e529642d1 Initial implementation of DSHOT protocol (600 and 150) 2016-10-18 19:38:18 +11:00
blckmn
e840bbe83c Revert "Remove superfluous timerHardware properties"
This reverts commit 4924894f41.

Just too many combinations on the F3 for using a simple mapping table - wastes too much memory.
Will move LED Strip to allocation based on timerHardware_t array once DSHOT is merged (uses same dma requirements).
2016-10-17 11:24:59 +11:00
blckmn
4924894f41 Remove superfluous timerHardware properties
-> todo: remove the IO_CFG definitions and add flags for purpose
2016-10-15 17:04:45 +11:00
blckmn
46a6e560f1 Initial IO remapping capability 2016-10-13 11:08:39 +11:00
Martin Budden
07adf66bbb Optimisation of driver header files 2016-08-07 01:14:11 +02:00
nathan
1b3ae14b8d allow pwm mapping to xN (complementary) channels 2016-07-23 00:27:43 -07:00
Martin Budden
141b369667 Removed trailing whitespace 2016-07-16 07:54:58 +01:00
blckmn
924c891bf1 Update to LED STRIP to use new IO 2016-07-02 14:38:04 +10:00
Martin Budden
c10129bc50 Combined timer output and inverted fields 2016-06-29 20:12:52 +01:00
blckmn
71353066b8 Remove need to specify ADC Channel (only 1 per pin). 2016-06-24 09:55:11 +10:00
blckmn
f293407a9d Renamed pin on timerHardware_t to tag for clarity 2016-06-22 21:12:38 +10:00
blckmn
9290284efb CRLF 2016-06-19 22:16:33 +10:00
blckmn
dbb5386f1b Removed need to specify timer peripherals in the target.h files. Now present in the MCU timer specific files. 2016-06-18 21:40:32 +10:00
blckmn
8b1cc05e1d Updated timerHardware_t to drop pinsource, and use new IO tags. 2016-06-15 05:27:59 +10:00
Martin Budden
1846322a98 Fixed up F1 targets. 2016-06-12 22:04:02 +01:00
Martin Budden
ccac8c30d6 KISSFC target 2016-06-12 22:04:02 +01:00
blckmn
7ca39bbde6 STM32F4: Drivers 2016-06-08 05:37:08 +10:00
Dominic Clifton
4ed6fdfea5 CC3D - Add sonar.
This also ensures that the PWM mapping does not use the sonar pins when
sonar is enabled in a board agnostic way.
Conflicts:
	src/main/config/config.c
	src/main/drivers/pwm_mapping.h
	src/main/main.c
	src/main/target/CC3D/target.h
2015-05-22 22:35:41 +01:00
Dominic Clifton
fbc3a8e1eb Correct rx channel min/max pulse checking so that it is inclusive to
match the documentation.  Add first unit tests for code in rx.c.
2015-04-19 13:22:32 +01:00
Dominic Clifton
650389afb6 Disable ADC initialisation on CJMCU. Replace MASSIVEF3 with SPRACINGF3.
Conditional VCP code inclusion.  Other minor F1/F3 cleanups.
2015-01-20 23:33:03 +01:00
Dominic Clifton
a7e128e684 SPARKY - PWM output on PWM1-10. 2014-12-10 16:26:00 +00:00
Dominic Clifton
6c96b8dd86 Support the Sparky board by peabody124 - work in progress, not flight
ready.

https://github.com/TauLabs/TauLabs/wiki/Sparky

http://buildandcrash.blogspot.co.uk/2013/05/sparky-testing-and-building-no-crashing.html
2014-12-09 03:12:38 +00:00
Dominic Clifton
7356863939 Removing unnecessary volatile keyword. 2014-12-06 14:32:32 +00:00
Ben Hitchcock
e9aaff808e Updates to the way that timers are forced to overflow in oneshot mode.
Now the current count value is saved, and then passed to the listeners.  This _should_ mean that CC3D PPM might work this time.
2014-12-01 22:43:17 +08:00