     CAN.get_rx_buff(&message);
     motorcontroller->handleFrame(message);
   }
-  if (Serial.available()) serialEvent(); //due doesnt have int driven serial yet
+  if (SerialUSB.available()) serialEvent(); //due doesnt have int driven serial yet
   if (tickReady) {
-    if (dotTick == 0) Serial.print('.'); //print . every 256 ticks (2.56 seconds)
+    if (dotTick == 0) SerialUSB.print('.'); //print . every 256 ticks (2.56 seconds)
     dotTick = dotTick + 1;
     tickReady = false;
     //do tick related stuff

  for(uint8_t count = 0; count < 5; count++) {
    CAN.mailbox_init(count);
    CAN.mailbox_set_mode(count, CAN_MB_RX_MODE);
    CAN.mailbox_set_accept_mask(count, 0x7F0, false);
  }
  //First three mailboxes listen for 0x23x frames, last two listen for 0x65x frames
  CAN.mailbox_set_id(0, 0x230, false); CAN.mailbox_set_id(1, 0x230, false); CAN.mailbox_set_id(2, 0x230, false);

  sysPrefs.Read(EESYS_RTC_DATE, &temp);
  rtc_clock.change_date(temp);
  */
  SerialUSB.println("RTC INIT OK");
  
  setup_sys_io(); //get calibration data for system IO
  SerialUSB.println("SYSIO INIT OK");
}

void setup() {
  
  SerialUSB.begin(115200);

  SerialUSB.println("GEVCU alpha 04-21-2013");

  setup_due();
  
