#include "./usb/usb_vend.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)
***********************************************************************/
- // DEBUG
- //ul_usb1_register(candev->hwspecops); //(defined in ul_usb1.c)
- // register for another board:
+#ifdef CONFIG_OC_LINCAN_CARD_ul_usb1
+ ul_usb1_register(candev->hwspecops);
+#endif
+#ifdef CONFIG_OC_LINCAN_CARD_can_lmc1
can_lmc1_register(candev->hwspecops);
-
-
+#endif
bd=baudrate[0];
if (candev->hwspecops->init_hw_data(candev)){