| 108 | } |
| 109 | |
| 110 | static void flash_erase(uint32_t size) { |
| 111 | assert(!(size & (size - 1))); |
| 112 | if (flash.commandStatus[1] & 1 << 1) { |
| 113 | memset(&mem.flash.block[flash.commandAddress & (SIZE_FLASH - 1) & -size], 0xFF, size); |
| 114 | } |
| 115 | flash_finish_command(); |
| 116 | } |
| 117 | |
| 118 | static void flash_execute_command(void) { |
| 119 | flash_flush_cache(); |
no test coverage detected