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

62 commits

Author SHA1 Message Date
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
mikeller
655c5fabc9 Improved arming disabled reason beeps. 2018-01-13 18:08:06 +13:00
blckmn
e8c4ef83d9 IO Clean up and use of Low level for F7
- Move F7 to optional LL driver for IO and
- cleaned up and removed the remaining old gpio functions from other targets
2017-07-28 04:03:56 +10:00
mikeller
67acc6c7ec Added beeps to indicate the reason for arming being disabled. 2017-07-04 01:38:04 +12:00
jflyper
2c7970a9ed Revive visual indication of gyro detection failure 2017-06-30 14:33:35 +09:00
Martin Budden
2493c214b0 Created subdirectories in drivers directory 2017-04-12 08:06:22 +01:00
Sami Korhonen
1f8805cdf0 squash betaflightF7
Parts and driver boost from @npsm
2016-10-21 08:51:02 +03:00
borisbstyle
e289f354a6 Merge pull request #1264 from jflyper/fix-micros-final
Fix micros using COUNTFLAG
2016-10-09 00:52:44 +02:00
jflyper
76392c2da7 Travis kick 2016-10-08 07:20:40 +09:00
jflyper
e948498695 atomic.h inclusion path fixed for development branch 2016-10-07 20:22:12 +09:00
jflyper
2a0e22f8b4 Travis, what did you do with common/atomic.h? 2016-10-05 02:00:02 +09:00
jflyper
a89c36b5e1 Cache sysTickPending inside ATOMIC_BLOCK 2016-10-04 03:53:59 +09:00
jflyper
59e78fcd8e Fix micros using COUNTFLAG
Current micros() may return past time when called from ISR or elevated BASEPRI context. This is because a call to the SysTick interrupt handler sysTick_Hanlder(), which is responsible for 1ms rollover is blocked in these contexts.

This PR introduces microsISR() that is guranteed to return correct time in these contexts. Legacy micros() was also modified to call microISR() in these contexts.

The microISR() uses SysTick's COUNTFLAG to detect a pending rollover and use it to compensate the return value on its own. Actual rollover to sysTickUptime variable is still handled in the sysTick_Hanlder().
2016-10-04 01:45:23 +09:00
Martin Budden
4d03791cbc Removed unused EXTI_CALLBACK_HANDLER_COUNT 2016-09-13 23:16:05 +01:00
Martin Budden
3d8ee50934 Removed unnecesary #includes from drivers 2016-07-11 18:45:35 +01:00
blckmn
948f2c6362 Removing some more target / platform specific code out of main.c and simplifying initialisation of system 2016-06-10 18:42:16 +10:00
blckmn
7ca39bbde6 STM32F4: Drivers 2016-06-08 05:37:08 +10:00
blckmn
928609e2bb Moving EXTI to new io
Updated i2c to use new io
2016-06-03 20:21:10 +10:00
cmenard
d174314692 Add Lux target 2016-02-02 23:03:08 +01:00
borisbstyle
52868ddc00 Merge commit 'fix_waiting_for_data_problem' into betaflight 2015-11-05 01:23:40 +01:00
ProDrone
c40db74e61 Working - except when exiting from bootloader
Fixes the `Waiting for Data` problem in configurator when:

- Clicking on `Save and Reboot` button
- Clicking on `Flash Firmware`  button

When the system reboots after programming the new firmware it still
needs a connect/disconnect cycle to work normal. This cannot be solved
since the bootloader is a fixed program in ROM.

Fix is for F1 targets and only tested on naze boards.
2015-10-27 20:09:59 +01:00
borisbstyle
eb138dc601 COLIBRI_RACE MPU_DATA_READY Handler
Colibri Race MPU INT support

revert some things

revert more

Update Colibri Race Binaries

Update target.h Colibri_race

Update Target.h
2015-10-16 12:41:49 +02:00
Dominic Clifton
4da387e93d More cleanup of MPU driver code. Support MPU INT on CC3D and Naze32
Rev6.

MPU6050 Correction From merge
2015-10-16 10:40:54 +02:00
Dominic Clifton
9b054f6fde More cleanup of MPU driver code. Support MPU INT on CC3D and Naze32
Rev6.
2015-10-15 23:04:55 +01:00
borisbstyle
dae052632c Merge branch 'master' into betaflight
Conflicts:
	src/main/drivers/accgyro_mpu3050.c
	src/main/drivers/accgyro_mpu6050.c
	src/main/drivers/accgyro_spi_mpu6000.c
	src/main/drivers/accgyro_spi_mpu6500.c
	src/main/drivers/sensor.h
2015-09-15 23:36:40 +02:00
Dominic Clifton
c6f5b98a79 Improve failure LED status flashing. Now users can identify and report
hardware failures by counting the number of long flashes.

Fix up sensor read API so that code that uses sensors can detect
malfunctions.

If a failure mode occurs in a debug mode the code reboots the system
rather than rebooting to the bootloader.
2015-09-12 01:33:19 +01:00
borisbstyle
febee3fb90 Merge branch 'master' into betaflight
Conflicts:
	src/main/drivers/system.c
	src/main/rx/rx.h
2015-09-07 10:08:34 +02:00
Nicholas Sherlock
f7530df974 Fix 1 millisecond backwards time leap in time measured by micros()
This race condition caused periodic flight instability when micros() was
called precisely on a 1000 nanosecond boundary.
2015-09-04 23:44:41 +12:00
borisbstyle
c9c073b71a micros fix // timer bug F3 targets
This solves the twitching issues on F3 targets
2015-09-04 12:28:22 +02:00
Konstantin Sharlaimov
bd6297f0cc Switch to cleaner way of detecting a soft-reset on STM32F103 based targets using RCC->CSR register. 2015-06-26 21:55:46 +01:00
Dominic Clifton
6d5b44df7a Fix boot failure on Flip32+ Deluxe Acro.
The problem was the MPU6050 EXTI handler was not registered due to baro
detection taking the only callback handler slot.  When the MPU6050 EXTI
was configured the interrupt flag was never cleared which results in the
CPU being starved.
2015-04-16 20:26:20 +01:00
Dominic Clifton
7f42149c30 Fix missing & operator. 2015-04-16 02:02:53 +01:00
Dominic Clifton
c11c25514b SPRACING32/NAZE32 - Add support for MPU6050 data ready interrupt.
Currently the interrupt handler is unused.  Later it can be used as a
potential source for watchdog checking or to syncronize the system
around new acc/gyro data availability.

Verified on Naze32 rev 3/4/5 and SPRacingF3 targets.
2015-04-11 19:18:11 +01:00
Dominic Clifton
749160f20e Reset to bootloader after failure mode to allow re-flashing. 2015-04-08 20:07:48 +01:00
Petr Ledvina
9dd7faeefa Remove unneeded volatile 2015-02-23 09:17:06 +01:00
Kyle Manna
c806046181 perms: Remove execute bit on source files
* Remove the execute bit on source files.
* No functional change.
2014-11-26 10:13:29 -06: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
50391f2c8e Use Naze hardware revision when initialising beeper. Cleanup inverted
beeper configuration.
2014-10-16 00:44:56 +01:00
Dominic Clifton
8ef70abaa0 NAZE32 - Add hardware revision detection. 2014-10-15 20:59:06 +01:00
Dominic Clifton
da51b5c479 Add MPU6500 SPI driver. Move sensor initialisation defines into target
specific headers.
2014-10-14 00:22:54 +01:00
Dominic Clifton
acbede5492 CC3D - Allow building of a binary that is compatible with the OpenPilot
CC3D bootloader to allow easy switching between OpenPilot and
Cleanflight.

Submitted by Alessio Morale -
http://forums.openpilot.org/topic/43569-baseflightcleanflight-ported-to-cc3d/?p=372149
2014-09-26 14:10:12 +01:00
Dominic Clifton
35280abfed Allow disabling of I2C for targets that do not use it. 2014-09-26 01:32:57 +01:00
Dominic Clifton
15cbeff86e STM32F3 - Remove some compiler warnings. 2014-09-26 01:07:06 +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
d762da7dac Fix build relating to inverter/pwm rssi compiler errors. 2014-08-02 00:43:39 +01:00
Dominic Clifton
4d9a672d9c CC3D / NAZE - Adding support for hardware controlled inverter for use by
SBUS RX.
2014-08-02 00:43:06 +01:00
Dominic Clifton
1d5ef51373 CJMCU - Add compass driver. Update I2C configuration. Use PPM and
Brushed motors by default.
2014-08-01 00:56:28 +01:00
dongie
b3a718882c updated I2C driver to allow using I2C2 or I2C1 at compile time - call i2cInit with I2CDEV_1 or _2.
Applied same to SOFT_I2C driver (but the pin config is compile-time #define)

Conflicts:

	src/board.h
	src/drv_i2c.h
	src/drv_system.c
	src/main/drivers/bus_i2c_soft.c
	src/main/drivers/bus_i2c_stm32f10x.c
2014-07-30 22:38:59 +01:00