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

31 commits

Author SHA1 Message Date
Martin Luessi
f3464d90cc Flashfs: Add support for asynchronous complete erase 2022-07-08 06:48:56 -07:00
Steve Evans
5a30d9f5a0 Only write to FLASH once 64 bytes are buffered 2022-06-26 22:41:06 +01:00
Steve Evans
432b80167f Added non-blocking SPI DMA support for access to FLASH for BB 2021-07-25 23:58:46 +01:00
Steve Evans
87c8847c13 New SPI API supporting DMA
Call targetConfiguration() once before config is loaded and again afterwards in case the config needs to be changed to load from SD card etc

Drop SPI clock during binding

Remove debug

Add per device SPI DMA enable

Fix sdioPinConfigure() declaration warning

Reduce clock speed during SPI RX initialisation
2021-07-25 12:40:25 +12:00
Bruce Luckcuck
aaa2f9682d Use full erase when possible for FLASHFS erase
If there is only a single partition, its type is FLASHFS, and it uses the entire geometry, then perform a full rather than a sector-based erase.

The full erase is significantly faster than erasing by individual sectors.
2019-05-25 12:23:59 -04:00
jflyper
f5084a59bd Partitions are now accessed by types rather than indices 2019-05-19 20:32:52 +09:00
Dominic Clifton
92999681e3 Add flash partitioning system 2019-05-18 21:39:08 +09:00
Dominic Clifton
0e4cc5c3cf Add flash_scan to cli 2019-05-17 01:05:43 +09:00
mikeller
fad7ee3464 Fix missing 'platform.h' includes in compilation units, and make them stay away. 2019-02-23 17:49:25 +13:00
jflyper
715e54cf3c Avoid calling flashIsReady when flash chip is non-existent
Ideally, the flashfs driver should keep track of information regarding
underlying flash chip device, but it is nearly stateless.
2018-11-12 12:32:46 +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
jflyper
864dba98c1 Prepare flash code for multiple device type support (#5683)
* Prepare flash drivers for multiple device type support

* Add static assertions on device page and flashfs alloc sizes.
2018-04-19 21:05:42 +12:00
Míguel Ángel Mulero Martínez
4e024f5467 Fix MSP Flash FS supported (#5670) 2018-04-15 12:29:49 +12:00
Martin Budden
53f5e87c7a Add void to function declarations/definitions where required 2017-09-24 09:22:48 +01:00
Michael Jakob
46387c9dbe Cleanup ENUM usage 2016-12-04 16:09:21 +01:00
Martin Budden
9889b1db9c Move master_t required #includes into config_master.h 2016-10-01 14:10:09 +01:00
Nicholas Sherlock
94affd5841 Fix truncated blackbox headers on fast looptimes/slow UARTs
As a consequence, now supports 19200 baud for Blackbox logging
2015-10-01 16:48:56 +13:00
Nicholas Sherlock
6c231e189b Reduce amount of wasted dataflash space upon power cycle
This wasted overhead becomes important when using the Blackbox "pause"
switch and logging very few of your flights.
2015-09-11 14:17:00 +12:00
Nicholas Sherlock
8a06849657 Improve flashfs codegen by fixing pagesize at a constant 256 bytes 2015-07-05 14:10:12 +12:00
Nicholas Sherlock
4f860dd6f1 Reduce standard deviation of flash logging execution time by 80% 2015-06-30 17:43:49 +12:00
Nicholas Sherlock
5f29eed017 Minor fix for flushing behaviour on dataflash 2015-02-16 22:20:53 +13:00
Nicholas Sherlock
d6911e8b86 Avoid synchronous flushes to flash during Blackbox shutdown 2015-02-15 23:23:53 +13:00
Nicholas Sherlock
3b8e05fb46 Stop Blackbox logging when flash fills up 2015-02-13 21:56:36 +13:00
Nicholas Sherlock
80ea5e4419 Add flash ready state to MSP response, add flash async block write 2015-02-13 20:28:19 +13:00
Nicholas Sherlock
5651e65a0b Add support for discovering beginning of free space on flash chip 2015-02-10 13:44:18 +13:00
Nicholas Sherlock
f7d227a208 Successfully blackbox logged 46kB of flawless log data on the bench
Data read back using MSP
2015-01-31 00:35:17 +13:00
Nicholas Sherlock
3c74ac2c91 Make more bulk writes asynchronous where possible, begin MSP impl. 2015-01-30 13:45:05 +13:00
Nicholas Sherlock
5a57dda665 Adding blackbox device setting and basic flashfs support for it 2015-01-28 22:14:49 +13:00
Nicholas Sherlock
2e14faeef6 Comment updates, allow CLI flash read to read more in one operation 2015-01-28 20:48:06 +13: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