#include "./usb/usb_defs.h"
#include "./usb/usb_vend.h"
-
-#include "can/lpc17xx_can.h"
+extern int can_lmc1_register(struct hwspecops_t *hwspecops);
+extern int ul_usb1_register(struct hwspecops_t *hwspecops);
#define MASK_EP1RX 0x01
#define MASK_EP1TX 0x02
}
}
-/***********************************************************************
- * Microsecond delay routine
- ***********************************************************************/
-/*
-void udelay(long time)
-{
- volatile long ticks=(time * CCLK) / 2000000;
- do{
- ticks--;
- } while(ticks>0);
-}
-*/
-
/***********************************************************************
* Routine for visible LED blinking (on USB transmission)
***********************************************************************/
}
- //***********************************************************************
+ // ***********************************************************************
// * CAN device initialization - device side (adapted from LinCAN setup.c)
// ***********************************************************************
- // DEBUG
- //ul_usb1_register(candev->hwspecops); //(defined in ul_usb1.c)
- // register for another board:
- can_lmc1_register(candev->hwspecops);
+ ul_usb1_register(candev->hwspecops);
+// can_lmc1_register(candev->hwspecops);
}
+
}