-----Original Message-----
From: lpc2000@yahoogroups.com [mailto:lpc2000@yahoogroups.com]On Behalf Of
Joel Winarske
Sent: Thursday, March 30, 2006 1:16 AM
To: lpc2000@yahoogroups.com
Subject: RE: [lpc2000] Not getting the Reset and Endpoint0 Interrupts
Hi Sarita,
> We are developing USB HID and Core Driver on Olimex LPC2148 board.
>
> The USB _ISR is getting invoked when the USB Cable is plugged out and
the
> interrupt DEV_STAT_INT is getting invoked.
>
> But when i connect the USB Cable, the Reset interrupt is not getting
> generated.
Reset triggers DEV_STAT_INT. You then need to query engine with
CMD_USB_GET_DEV_STAT cmd, as below:
// Device Status interrupt
if(UsbDevIntrSt.Status)
{
// Clear Device status interrupt
DEVINTCLR = bmUSB_DevStatusInterrupt;
// Get device status
USB_DevStatus.Data = USB_Cmd(CMD_USB_GET_DEV_STAT,0);
// Device connection status
if(USB_DevStatus.ConnectChange)
{
if(UsbUserFun[UsbConnectEvent] != NULL)
{
UsbUserFun[UsbConnectEvent]((void *)USB_DevStatus.Connect);
}
}
// Device suspend status
if(USB_DevStatus.SuspendChange)
{
if(UsbUserFun[UsbSuspendEvent] != NULL)
{
UsbUserFun[UsbSuspendEvent]((void *)USB_DevStatus.Suspend);
}
}
// Device reset
if(USB_DevStatus.Reset)
{
USB_HwReset();
if(UsbUserFun[UsbResetEvent] != NULL)
{
UsbUserFun[UsbResetEvent](NULL);
}
}
}
SPONSORED LINKS Microcontrollers Microprocessor Intel microprocessors
----------------------------------------------------------------------------
--
YAHOO! GROUPS LINKS
a.. Visit your group "lpc2000" on the web.
b.. To unsubscribe from this group, send an email to:
lpc2000-unsubscribe@yahoogroups.com
c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.
----------------------------------------------------------------------------
--
----------
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s)and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender or administrator@...
[Non-text portions of this message have been removed]