rboot/rboot.c
// calculate checksum for block of data
// from start up to (but excluding) end
calculate checksum for block of data
from start up to (but excluding) end
calculate checksum for block of data from start up to ( but excluding ) end
static uint8_t calc_chksum(uint8_t *start, uint8_t *end) {
  uint8_t chksum = CHKSUM_INIT;
  while(start < end) {
    chksum ^= *start;
    start++;
  }
  return chksum;
}
static uint8_t calc_chksum ( uint8_t * start , uint8_t * end ) { uint8_t chksum = CHKSUM_INIT ; while ( start < end ) { chksum ^= * start ; start ++ ; } return chksum ; }
calculate checksum for block of data
from start up to (but excluding) end
calculate checksum for block of data from start up to ( but excluding ) end