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

Function ihex_get_data

LoadFile/teensy_loader_cli.c:765–783  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

763}
764
765void ihex_get_data(int addr, int len, unsigned char *bytes)
766{
767 int i;
768
769 if (addr < 0 || len < 0 || addr + len >= MAX_MEMORY_SIZE) {
770 for (i=0; i<len; i++) {
771 bytes[i] = 255;
772 }
773 return;
774 }
775 for (i=0; i<len; i++) {
776 if (firmware_mask[addr]) {
777 bytes[i] = firmware_image[addr];
778 } else {
779 bytes[i] = 255;
780 }
781 addr++;
782 }
783}
784
785int memory_is_blank(int addr, int block_size)
786{

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…