usb_check_events(&usb_device);
usb_control_response(&usb_device);
-// useless with lpc17xx:
-// if (!(IO0PIN&P0_SJA1000_INT_PIN)) //INT PIN is inverted
-// chip->chipspecops->irq_handler(0,chip);
+#ifdef CONFIG_OC_LINCAN_CARD_ul_usb1
+ /* polled IRQ mode for ul_usb1 board*/
+ if (!(IO0PIN&P0_SJA1000_INT_PIN)) /* INT PIN is inverted */
+ chip->chipspecops->irq_handler(0,chip);
+#endif
if (usb_device.ep_events & MASK_EP1RX) { //EP1RX - data waiting to receive