1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-18 05:45:31 +03:00

Add support for discovering beginning of free space on flash chip

This commit is contained in:
Nicholas Sherlock 2015-02-10 13:44:18 +13:00
parent f7d227a208
commit 5651e65a0b
6 changed files with 142 additions and 29 deletions

View file

@ -256,7 +256,9 @@ void m25p16_pageProgram(uint32_t address, const uint8_t *data, int length)
* Read `length` bytes into the provided `buffer` from the flash starting from the given `address` (which need not lie
* on a page boundary).
*
* The number of bytes actually read is returned, which can be zero if an error occurred.
* Waits up to DEFAULT_TIMEOUT_MILLIS milliseconds for the flash to become ready before reading.
*
* The number of bytes actually read is returned, which can be zero if an error or timeout occurred.
*/
int m25p16_readBytes(uint32_t address, uint8_t *buffer, int length)
{