1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00
Commit graph

41 commits

Author SHA1 Message Date
Martin Budden
6edb4b9c19 Cache SPI handle to improve performance 2017-07-01 20:39:38 +01:00
Martin Budden
6157ebe5e3 Removed abbreviations from SPI read/write functions 2017-07-01 16:28:10 +01:00
Martin Budden
5d7f8cdd6e Function renaming as per ledvinap's suggestion 2017-07-01 16:28:10 +01:00
Martin Budden
8df87bc47d Make SPI read and write register generic 2017-07-01 16:28:09 +01:00
jflyper
682d4d4014 Preset CS lines for SPI devices initial high 2017-06-20 21:10:31 +09:00
Martin Budden
2493c214b0 Created subdirectories in drivers directory 2017-04-12 08:06:22 +01:00
Michael Jakob
24a042d253 Fix SPI driver resource assignment for the CS pin 2016-12-01 21:02:25 +01:00
blckmn
58105c25ac Simplified Owner management 2016-11-10 18:56:13 +11:00
borisbstyle
32ec29ccce Fix unhandled SPI4 // Size reduction F1 2016-10-23 00:35:26 +02:00
Martin Budden
b123e74a73 Receiver code tidy. 2016-10-02 08:45:42 +01:00
Martin Budden
58014f416e Removed #includes from header files 2016-08-07 01:28:17 +02:00
Martin Budden
141b369667 Removed trailing whitespace 2016-07-16 07:54:58 +01:00
Martin Budden
3d8ee50934 Removed unnecesary #includes from drivers 2016-07-11 18:45:35 +01:00
Martin Budden
ea283ab98c Converted tabs to spaces 2016-07-09 14:39:39 +01:00
blckmn
67d448d8ea Improved Resource command output. 2016-07-09 17:03:16 +10:00
blckmn
688a4ad376 Setup SPI pins for F1 fix 2016-07-06 07:46:38 +10:00
blckmn
95c844b178 Updated CLOCK params to enum following review 2016-06-24 19:43:34 +10:00
blckmn
134bb6f466 Move standard clock to 10.5mhz 2016-06-24 17:28:59 +10:00
blckmn
7ca39bbde6 STM32F4: Drivers 2016-06-08 05:37:08 +10:00
blckmn
9c1c4fef33 SPI to new IO (including SDCARD) 2016-06-03 22:56:45 +10:00
Michael Jakob
47f1d7e955 SPI3 fix
reintroduce SPI timeout to avoid driver blockage
AlienFlight related fixes
2016-02-05 22:14:49 +01:00
Nicholas Sherlock
84d3cc6175 Basic SDCard block read / write (minimal timeout/error handling) 2016-02-02 23:36:32 +01:00
Nicholas Sherlock
3941c6c252 Delete dubious SPI timeout mechanism
The result from this mechanism is never checked, and SPI is not a bus
prone to timeouts anyway (the master generates the clock and the
transmission happens in a deterministic amount of time no matter if the
slave is cooperative, absent, or uncooperative.)

The timeout counter was set *per transfer*, and is fixed no matter what
the SPI clock speed. If the transfer size is large, and the SPI clock is
slow, stalls on the SPI bus are unavoidable (as we can generate data
faster than SPI can transmit it). These accumulate over the length of a
long transfer and trigger a "timeout". Detecting these as fatal timeouts
is not helpful.
2016-02-02 23:36:31 +01:00
Nicholas Sherlock
264c094eef Add ability to check for SPI bus busy condition 2016-02-02 23:36:31 +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
Dominic Clifton
7adfeffafb Cleanup SPI initialisation. Relocate mpu6500 spi configuration from
Colibri race specific code into the mpu6500 driver.
2015-08-20 21:39:02 +01:00
Larry (TBS)
3b1f423c49 COLIBRI RACE support 2015-08-20 19:18:10 +01:00
Nicholas Sherlock
a60cdf157a Fix initialisation of SPI2 2015-02-28 00:56:28 +13:00
Dominic Clifton
5d49451916 Cleanup SPI on STM32F3 targets. 2015-02-22 21:49:45 +00:00
Nicholas Sherlock
3eb28f16ea Basic read/write/erase flash functionality works from the CLI
Very little code coverage tested yet, only writes of small sizes
2015-01-28 17:45:36 +13:00
Dominic Clifton
2ed09b0b2f Use Naze hardware revision when initialising bmp085. Cleanup bmp085
GPIO configuration for all targets.
2014-10-16 00:13:09 +01:00
Dominic Clifton
8ef70abaa0 NAZE32 - Add hardware revision detection. 2014-10-15 20:59:06 +01:00
Dominic Clifton
d60183d91d Normalize all the line endings 2014-09-15 23:40:17 +01:00
Dominic Clifton
e3ea15f3dc Fix various minor IDE warnings. 2014-09-14 16:33:32 +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
1d48fdafc9 CC3D - Delete old SPI code. 2014-07-22 21:23:30 +01:00
Dominic Clifton
f342560da2 CC3D - Fix builds that use l3gd20 - duplicate SPI code removed. 2014-07-22 21:21:22 +01:00
Dominic Clifton
5f16cfb72a CC3D - Support MPU6000 Gyro/Acc and SPI 1/2. 2014-07-17 22:12:21 +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/bus_spi.c (Browse further)