MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / _flash_write

Method _flash_write

libraries/AP_HAL_ChibiOS/Storage.cpp:350–358  ·  view source on GitHub ↗

write one storage line. This also updates _dirty_mask. */

Source from the content-addressed store, hash-verified

348 write one storage line. This also updates _dirty_mask.
349*/
350bool Storage::_flash_write(uint16_t line)
351{
352#ifdef STORAGE_FLASH_PAGE
353 EXPECT_DELAY_MS(1);
354 return _flash.write(line*CH_STORAGE_LINE_SIZE, CH_STORAGE_LINE_SIZE);
355#else
356 return false;
357#endif
358}
359
360/*
361 callback to write data to flash

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected