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

61 commits

Author SHA1 Message Date
Martin Budden
a2d1af04aa Minor cosmetic tidying 2016-06-27 20:04:21 +01:00
Martin Budden
97fe5afd6c Converted tabs to spaces. 2016-06-27 19:26:02 +01:00
blckmn
f293407a9d Renamed pin on timerHardware_t to tag for clarity 2016-06-22 21:12:38 +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
ccac8c30d6 KISSFC target 2016-06-12 22:04:02 +01:00
Martin Budden
efda3d7b5b Final move of target specific code into target directory. 2016-06-11 05:20:17 +01:00
Martin Budden
38a9ba9aae Continue moving target specific code into target directory. 2016-06-10 13:05:03 +01:00
Martin Budden
adb6052054 Started moving F3 PWM and timers into target.c 2016-06-09 23:23:22 +01:00
blckmn
51a99e74c6 STM32F4: USARTS 4,5,6 added
Flag initialisation for motor_pwm_protocol
Fixes for AlienFlightF4 and timers
2016-06-08 05:43:28 +10:00
sblakemore
0a3bf6e991 Add SINGULARITY target 2016-05-31 10:50:56 +10:00
DTF UHF
9386841abc Initial commit of DTFc.
Adds support for Invensense ICM-20608-G and BMP280 SPI mode.
2016-04-08 16:35:03 -04:00
borisbstyle
3cad4793e9 SPRACINGF3EVO initial support 2016-04-08 11:18:07 +02:00
Dominic Clifton
bd9f93660b SPRACINGF3MINI - Cleanup PWM output mapping. Remove no-longer needed
TIM3 / OneShot workaround.
2016-03-04 22:18:37 +01:00
edusteinhorst
56e9278354 CC3D - don't share timer between PPM capture and motor output
A periodic glitch happens on AUX channels when using OneShot on CC3D,
especially with faster update loops. This is caused by a race condition
while forcing timer overflows and sharing the timer for PPM capture.
It causes the craft the fall out of the sky when using a switch to arm.

* Remap PPM in from S1_IN to S6_IN
* Remap RSSI_ADC from S6_IN to S3_IN
* Block PWM12/S6_OUT from being used with Oneshot/brushed motors so
TIM2 (PPM_IN timer) doesn't change prescaler or is manually overflowed
* Allow only one feature out of SOFTSERIAL/RSSI_ADC/SONAR, since they
will now share the same pin
* Update docs to reflect port changes and restrictions

This fixes cleanflight/cleanflight#1748,
fixes borisbstyle/betaflight#64, fixes borisbstyle/betaflight#127

fix BP6
2016-02-08 21:27:46 +01:00
Dominic Clifton
52d97869b8 SPRacingF3Mini - Initial support for new target. 2016-02-02 23:36:28 +01:00
Michael Jakob
7634e4c635 AlienFligth F3 V2 support
Updated SPI driver (SPI3 on F3 targets)
AK8963 Mag support (part of MPU9250)
MPU9250 SPI support via MPU6500 driver
Updated LED driver for alternative LED sets
Enable gyro intterupt for AlienFlight F3 targets
Update AlienWii/AlienFlight documentation
Rename AlienWii to AlienFlight
2016-02-02 23:31:55 +01:00
cmenard
d174314692 Add Lux target 2016-02-02 23:03:08 +01:00
Moto Moto
2e351b0991 Add MOTOLAB build target and associated source files 2015-08-23 19:42:18 -05:00
Larry (TBS)
3b1f423c49 COLIBRI RACE support 2015-08-20 19:18:10 +01:00
Dominic Clifton
d17e89cc6b Fix incorrect index access in old timer irq handler code. 2015-06-26 20:11:39 +01:00
Dominic Clifton
64b68cda59 Fix some indentation & tab usage. 2015-06-26 18:16:39 +01:00
Dominic Clifton
68abdd288d SPRacingF3 - Fix interrupt handler defintions. 2015-06-26 14:43:29 +01:00
Michael Hope
5c6760fd82 various: tidy up various things found when building with a C++ compiler.
Remove duplicate consts.
Pull in the include files where functions and variables are declared.
Mark file local but duplicated variables as static.
Mark some variable declarations as extern.
Remove duplicated variable definition.

Signed-off-by: Michael Hope <mlhx@google.com>
2015-06-04 22:32:31 +02:00
Dominic Clifton
ee1d5a9a38 SPRacingF3 - Swapping RC3/4 for production boards. 2015-05-06 21:39:16 +01:00
Dominic Clifton
01df0b65c2 Fix typos in comments. 2015-03-28 19:16:19 +00:00
Petr Ledvina
68305a3929 Fix timer period on STM32F303 TIM2
TIM2 is 32bit itmer, but we want 16bit period ...
2015-03-26 18:17:21 +01:00
Petr Ledvina
a125228d1f Fix PPM in TIM1 2015-03-26 18:07:18 +01:00
Michael Jakob
396731a428 Intitial support for ALIENWIIF3 target 2015-01-26 18:33:47 +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
Dominic Clifton
d7e26980a8 Merge branch 'feature-oneshot125a' of https://github.com/nebbian/cleanflight into nebbian-feature-oneshot125a 2014-12-06 10:48:27 +00:00
Dominic Clifton
1cf9ea226d Remove redundant comments from timer.c. 2014-12-05 14:17:50 +00:00
Ben Hitchcock
895d215265 Tightening up code inside atomic block, and whitespace changes (tabs to spaces) 2014-12-04 06:59:27 +08:00
Ben Hitchcock
8a9e51c779 Putting overflow code inside an atomic block, and style improvement (using predefined constant instead of raw number) 2014-12-02 06:11:40 +08: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
57c308538f Whitespace cleanup
Misplaced whitespace fixed, no functional changes
2014-11-24 21:39:25 +01:00
Dominic Clifton
249b09abce Merge pull request #159 from Pierre-A/cc3d-updates-pa
RSSI monitoring on CC3D
2014-11-22 01:11:30 +00:00
Petr Ledvina
3ee60ef857 Merge remote-tracking branch 'refs/remotes/upstream/master' into feature-timer 2014-11-11 12:50:11 +01:00
Dominic Clifton
d0f622bb81 PORT103R - Initial support for the Waveshare Port 103R development
board.
2014-11-10 00:53:48 +01:00
Petr Ledvina
98c0d0b5dd Code cleanup / fixed missing TIM8_UP handler 2014-11-08 15:25:16 +01: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
Pierre-A
caf81ad640 RSSI monitoring on CC3D 2014-11-07 09:23:54 +01:00
Petr Ledvina
bf50cbb1a8 NVIC priority change
Use 'better' macros to handle priority. This simplifies passing priority to function and new ATOMIC_BLOCK macro
2014-11-04 16:23:21 +01:00
Petr Ledvina
e686b4504e Centralized NVIC priorities
- NVIC priorities are moved to separate file, all values are replaced wit symbolic names. Priorities should be the same.
- tiny change in DMA initialization
2014-10-23 16:48:35 +02:00
Dominic Clifton
2d8f65448d Cleanup Softserial/LedStrip timer clash checking. Move definitions of
led strip timer and softserial pwm ports/timers into target specific
files.
2014-10-20 21:44:55 +01:00
Dominic Clifton
be7239ecac NAZE32PRO - Fix compilation problems. 2014-10-06 23:35:08 +01:00
Dominic Clifton
a12cf4ae59 STM32F3 - Add a GPIO alternate function configuration to timer mappings. 2014-09-26 02:01:21 +01:00