mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 21:36:28 +08:00
Fix an error in the PIC32 USB device driver
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4261 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -3639,7 +3639,7 @@ void up_usbinitialize(void)
|
|||||||
|
|
||||||
pic32mx_hwsetup(priv);
|
pic32mx_hwsetup(priv);
|
||||||
|
|
||||||
/* Attach USB controller interrupt handlers. The hardware will not be
|
/* Attach USB controller interrupt handler. The hardware will not be
|
||||||
* initialized and interrupts will not be enabled until the class device
|
* initialized and interrupts will not be enabled until the class device
|
||||||
* driver is bound. Getting the IRQs here only makes sure that we have
|
* driver is bound. Getting the IRQs here only makes sure that we have
|
||||||
* them when we need them later.
|
* them when we need them later.
|
||||||
@@ -3649,11 +3649,8 @@ void up_usbinitialize(void)
|
|||||||
{
|
{
|
||||||
usbtrace(TRACE_DEVERROR(PIC32MX_TRACEERR_IRQREGISTRATION),
|
usbtrace(TRACE_DEVERROR(PIC32MX_TRACEERR_IRQREGISTRATION),
|
||||||
(uint16_t)PIC32MX_IRQ_USB);
|
(uint16_t)PIC32MX_IRQ_USB);
|
||||||
goto errout;
|
up_usbuninitialize();
|
||||||
}
|
}
|
||||||
|
|
||||||
errout:
|
|
||||||
up_usbuninitialize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
|||||||
Reference in New Issue
Block a user