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

Function flash_write_flush

Tools/AP_Bootloader/support.cpp:207–214  ·  view source on GitHub ↗

flush the write buffer */

Source from the content-addressed store, hash-verified

205 flush the write buffer
206 */
207bool flash_write_flush(void)
208{
209 if (fbuf.n == 0) {
210 return true;
211 }
212 fbuf.n = 0;
213 return flash_func_write_words(fbuf.address, fbuf.buffer, ARRAY_SIZE(fbuf.buffer));
214}
215
216/*
217 write to flash with buffering to 32 bytes alignment

Callers 4

bl_protocol.cppFile · 0.85
handle_postMethod · 0.85
flash_write_bufferFunction · 0.85

Calls 1

flash_func_write_wordsFunction · 0.85

Tested by

no test coverage detected