Revision 55e8ef7a usrp/host/lib/usrp_prims_common.cc

b/usrp/host/lib/usrp_prims_common.cc
218 218
    if (n > quanta)
219 219
      n = quanta;
220 220

221
    a = usb_control_transfer (udh, 0x40, 0xA0,
222
                         addr, 0, (unsigned char *)(buf + (addr - start_addr)), n, 1000);
221
    a = usb_control_transfer (udh, 0x40, 0xA0, addr, 0,
222
                       (unsigned char*)(buf + (addr - start_addr)), n, 1000);
223 223

224 224
    if (a < 0){
225 225
      fprintf(stderr,"write_internal_ram failed: %u\n", a);
......
425 425

426 426
  // we use the Cypress firmware down load command to jam it in.
427 427
  int r = usb_control_transfer (udh, 0x40, 0xa0, hash_slot_addr[which], 0,
428
                           (unsigned char *) hash, USRP_HASH_SIZE, 1000);
428
                                (unsigned char *) hash, USRP_HASH_SIZE, 1000);
429 429
  return r == USRP_HASH_SIZE;
430 430
}
431 431
  
......
437 437

438 438
  // we use the Cypress firmware upload command to fetch it.
439 439
  int r = usb_control_transfer (udh, 0xc0, 0xa0, hash_slot_addr[which], 0,
440
                           (unsigned char *) hash, USRP_HASH_SIZE, 1000);
440
                                (unsigned char *) hash, USRP_HASH_SIZE, 1000);
441 441
  return r == USRP_HASH_SIZE;
442 442
}
443 443

Also available in: Unified diff