 
 void setup()
 {
-  // Serial.begin(9600);
-  SerialUSB.begin(BAUD);
-  while(!SerialUSB);
+  Serial.begin(9600);
+  delay(100);
 
   usbInfo();
-  setFullSpeed();
-  usbInfo();
 
-  // Serial.print("SIZE=");
-  // Serial.println(SIZE);
+  Serial.print("SIZE=");
+  Serial.println(SIZE);
 
-  // Serial.print("BAUD=");
-  // Serial.println(BAUD);
+  Serial.print("BATCH_SIZE=");
+  Serial.println(BATCH_SIZE);
 
-  // Serial.print("BATCH_SIZE=");
-  // Serial.println(BATCH_SIZE);
-
+  // USB comms ignore baud
+  SerialUSB.begin(9600);
+  while(!SerialUSB);
 
   for (int i = 0; i < BATCH_SIZE; i++) {
     BUFFER[i] = CHAR;
   }
   unsigned long t1 = millis();
-
 
   SerialUSB.println(SIZE, DEC);
   sendBytes(SIZE);

  unsigned long t2 = millis();

  float durationSeconds = (float)(t2 - t1) / 1000;
  // Serial.print("duration seconds: ");
  // Serial.println(durationSeconds);
  // Serial.print("rate: ");
  // Serial.print((float)SIZE / durationSeconds);
  // Serial.println(" bytes/second");
}

void usbInfo() {
  // Serial.print("REG_USB_DEVICE_STATUS: ");
  // Serial.println(REG_USB_DEVICE_STATUS, HEX);

  // Serial.print("USB->DEVICE.STATUS.reg: ");
  // Serial.println(USB->DEVICE.STATUS.reg, HEX);

  // Serial.print("USB->DEVICE.STATUS.bit.SPEED: ");
  // Serial.println(USB->DEVICE.STATUS.bit.SPEED, HEX);
}

void sendBytes(unsigned long count) {

const uint8_t EOT = 0x04;
const uint8_t CHAR = 'x';

const unsigned long SIZE = 1024 * 10 * 10;

// arduino/samd/cores/arduino/USB/samd21_device.c indicated 128 is the largest
// buffer we can use safely.
