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

Function init_flash

core/flash.c:337–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335};
336
337eZ80portrange_t init_flash(void) {
338 flash.uniqueID = UINT64_C(0xFFFFFFFFDE680000) | (rand() & 0xFFFF);
339 gui_console_printf("[CEmu] Initialized Flash...\n");
340 return device;
341}
342
343void flash_reset(void) {
344 memset((uint8_t*)&flash + sizeof(flash.uniqueID), 0, sizeof(flash) - sizeof(flash.uniqueID));

Callers 1

plug_devicesFunction · 0.85

Calls 1

gui_console_printfFunction · 0.50

Tested by

no test coverage detected