MCPcopy Create free account
hub / github.com/kiibohd/controller / memory_is_blank

Function memory_is_blank

LoadFile/teensy_loader_cli.c:785–795  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

783}
784
785int memory_is_blank(int addr, int block_size)
786{
787 if (addr < 0 || addr > MAX_MEMORY_SIZE) return 1;
788
789 while (block_size && addr < MAX_MEMORY_SIZE) {
790 if (firmware_mask[addr] && firmware_image[addr] != 255) return 0;
791 addr++;
792 block_size--;
793 }
794 return 1;
795}
796
797
798

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…