MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / flash_erase

Function flash_erase

core/flash.c:110–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110static 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
118static void flash_execute_command(void) {
119 flash_flush_cache();

Callers 1

flash_execute_commandFunction · 0.70

Calls 1

flash_finish_commandFunction · 0.85

Tested by

no test coverage detected