flush the write buffer */
| 205 | flush the write buffer |
| 206 | */ |
| 207 | bool 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 |
no test coverage detected