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

46 commits

Author SHA1 Message Date
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
Petr Ledvina
aa7f5c4a1e New timer implementation
This is first part of new softserial code. Main timer code is changed, changes to rest of code are kept to minimum.

macros for BASEPRI based synchronization are added to project (atomic.h)

TIMER_PERIOD fixed in pwm_rx.c
2014-11-07 15:38:26 +01:00
Dominic Clifton
a12cf4ae59 STM32F3 - Add a GPIO alternate function configuration to timer mappings. 2014-09-26 02:01:21 +01:00
Dominic Clifton
d60183d91d Normalize all the line endings 2014-09-15 23:40:17 +01:00
Dominic Clifton
3d382ea4c7 EUSTM32F103RC - First cut of support for this High-Density STM32F103
series development board.

These boards can be picked up for less than $11, coupled with a 10DOF
sensor board they make a great development platform or cheap expandable
FC.

Pretty much all pins are available to be used, unlike on the less
capable and more expensive OLIMEXINO.
2014-09-03 01:38:27 +01:00
Dominic Clifton
a5ec1355d4 CC3D - Support PPM input on IN_S1.
This required timer overflow events to be used in the calculation of PPM
channel data.

CC3D tested, other targets may be unstable as a result. Needs further
testing.
2014-07-22 21:29:00 +01:00
Dominic Clifton
1fb75890d5 Initial OpenPilot CC3D commit. 2014-07-16 01:06:09 +01:00
Dominic Clifton
e867af8c4b Correct project name in GPL notices. 2014-06-05 00:47:47 +01:00
Dominic Clifton
0bbcd6570f Updated source files to include the GPL v3 notices. Include a copy of
the GPL v3.
2014-06-04 16:48:23 +01:00
Dominic Clifton
d19a5e7046 Cleanup project structure. Update unit test Makefile to place object
files in obj/test
2014-05-31 22:43:06 +01:00
Renamed from src/drivers/timer_common.h (Browse further)