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

54 commits

Author SHA1 Message Date
mikeller
da93c07432 Refactored SD card initialisation to contain SD card detection initialisation. 2019-07-14 17:09:35 +12:00
Dominic Clifton
8d78e15a4b Fix use of sdcard.cardDetectPin before it is initialised.
* de-duplicate some SDIO/SPI sd-card detection code.
* ensure detectionInverted is set to false for SDIO case where
`cardDetectTag` is not configured.
2019-07-10 17:09:03 +02:00
jflyper
fe182bb2fb Introduce dma_reqmap 2018-12-30 09:40:37 +09:00
jflyper
9ea1428d11 Introduce per device pin pre-init 2018-12-13 11:15:26 +09:00
jflyper
57a6060005 Prevent sdcard_getMetadata from being called when card is not inserted or not ready 2018-10-05 03:41:53 +09:00
jflyper
a1589766a2 Switch between SPI and SDIO based on mode 2018-10-03 21:14:07 +09:00
jflyper
00840ce40f Prepare SD card SPI and SDIO variants for consolidation 2018-10-01 19:44:04 +09:00
jflyper
3d4aef0113 Refactor sdcard.c to use busDevice_t 2018-09-29 02:40:17 +09:00
jflyper
d4cfff2e9d Use unified clock specs, remove per target specs. 2018-09-21 22:40:02 +09:00
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
conkerkh
db81dbe103 HotFix for sdcard driver on F7 when using DMA for TX (#5595)
* HotFix for sdcard driver on F7 when using DMA for TX

* Fix typo
2018-04-02 14:36:13 +12:00
blckmn
39bb6ffe04 Configurable SDCARD, and clean up of DMA. 2018-01-29 11:50:14 +11:00
Martin Budden
671382234a Enabled switch fallthrough checking by compiler 2017-12-23 19:46:40 +00:00
Martin Budden
53f5e87c7a Add void to function declarations/definitions where required 2017-09-24 09:22:48 +01:00
Martin Budden
27b146e274 Merge pull request #3874 from martinbudden/bf_whitespace
Fixed whitespace
2017-08-17 09:55:55 +01:00
Martin Budden
8dd4a584c1 Fixed whitespace 2017-08-17 08:32:37 +01:00
jflyper
8c3da2ba14 Correctly set NbData and MemoryOrM2MDstDataSize 2017-08-17 13:07:21 +09:00
blckmn
834289e456 Move all F7 to use LL 2017-07-30 12:10:46 +10:00
Martin Budden
cf9d20bede Merge pull request #3413 from martinbudden/bf_gyro_spi_tidy
SPI tidy. Rename SPI functions. Rationalise parameter order.
2017-07-20 19:31:57 +01:00
Martin Budden
2fd20c2bd9 Rename SPI functions. Rationalise parameter order. 2017-07-20 16:22:59 +01:00
Martin Budden
6943fb8e56 Split MSP box code into separate module 2017-07-20 13:33:34 +01:00
Martin Budden
a86ac89448 Whitespace tidy 2017-07-05 09:34:44 +01:00
Martin Budden
23f158913e Moved time functions out of system.h into time.h 2017-05-26 14:03:28 +01:00
Martin Budden
2493c214b0 Created subdirectories in drivers directory 2017-04-12 08:06:22 +01:00
Michael Jakob
377893e173 Register SDCard DMA in resource list 2017-02-07 00:58:09 +01:00
Michael Jakob
46387c9dbe Cleanup ENUM usage 2016-12-04 16:09:21 +01:00
blckmn
58105c25ac Simplified Owner management 2016-11-10 18:56:13 +11:00
Sami Korhonen
a399c14bf9 F7 first try on DMA SDCARD 2016-10-21 08:51:03 +03:00
Martin Budden
07adf66bbb Optimisation of driver header files 2016-08-07 01:14:11 +02:00
Martin Budden
141b369667 Removed trailing whitespace 2016-07-16 07:54:58 +01:00
Nathan
10bb3ec97d Merge pull request #743 from blckmn/sdcard_insert_check
Added sdcard not present check
2016-07-14 20:09:22 -07:00
blckmn
7f4a02b735 tabs to spaces 2016-07-13 19:42:08 +10:00
blckmn
7ca18b52ca Added sdcard not present check 2016-07-13 19:39:03 +10:00
borisbstyle
057e22a101 Merge pull request #729 from kc10kevin/master_SDCardFix
SDCard Detect/Delay Fix
2016-07-13 09:15:45 +02:00
kc10kevin
9616c397ea SDCard Detect/Delay Fix 2016-07-11 18:13:57 -05: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
9b3e8ab01c Fixed sdcard issues
Reset CPU clock to 168mhz (no overclocking)
2016-06-10 22:44:24 +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
Nicholas Sherlock
360ea84a14 SDCard: multi-block write, card profiling. AFATFS: Bugfixes 2016-02-02 23:36:42 +01:00
Nicholas Sherlock
9d29efdd5d Only look for SD card during initial startup and give up after timeout 2016-02-02 23:36:40 +01:00
Nicholas Sherlock
4700bb638c More detailed afatfs state reporting for CLI 2016-02-02 23:36:38 +01:00
Nicholas Sherlock
6055ab2432 Updates to use newly merged SD card code 2016-02-02 23:36:37 +01:00
Nicholas Sherlock
71335dc65d Support enabling DMA for sdcard write at runtime 2016-02-02 23:36:36 +01:00
Nicholas Sherlock
392ec7412a Reset the card when a timeout/fault is detected during init/read/write 2016-02-02 23:36:35 +01:00
Nicholas Sherlock
a35ccd28de DMA support for SD-card write 2016-02-02 23:36:34 +01:00
Nicholas Sherlock
97ee6142a9 Fix timing bugs during SD card init which become visible with -Os 2016-02-02 23:36:34 +01:00