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

Function flash_write_command

core/flash.c:186–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184 return 0;
185}
186static void flash_write_command(uint8_t byte) {
187 switch (flash.command[0xF]) {
188 case 0x32: // Quad Input Page Program
189 mem.flash.block[flash.commandAddress & (SIZE_FLASH - 1)] &= byte;
190 flash.commandAddress = (flash.commandAddress & ~0xFF) | ((flash.commandAddress + 1) & 0xFF);
191 break;
192 }
193}
194static void flash_command_byte_transferred(void) {
195 if (!--flash.commandLength) {
196 flash.commandStatus[0] &= ~(3 << 1);

Callers 1

flash_writeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected