XilinxProcessorIPLib/drivers/usbpsu/examples/xusb_freertos_keyboard_example.c
void SetupInterruptSystem(struct XUsbPsu *InstancePtr, u16 UsbIntrId)
{
	xPortInstallInterruptHandler(UsbIntrId,
			(XInterruptHandler)XUsbPsu_IntrHandler,
			(void *)InstancePtr);

	XUsbPsu_EnableIntr(InstancePtr, XUSBPSU_DEVTEN_EVNTOVERFLOWEN |
			XUSBPSU_DEVTEN_WKUPEVTEN |
			XUSBPSU_DEVTEN_ULSTCNGEN |
			XUSBPSU_DEVTEN_CONNECTDONEEN |
			XUSBPSU_DEVTEN_USBRSTEN |
			XUSBPSU_DEVTEN_DISCONNEVTEN);

	vPortEnableInterrupt(UsbIntrId);
}
/****************************************************************************/
/**
* This function setups the interrupt system such that interrupts can occur.
* This function is application specific since the actual system may or may not
* have an interrupt controller.  The USB controller could be
* directly connected to a processor without an interrupt controller.
* The user should modify this function to fit the application.
*
* @param	InstPtr is a pointer to the XUsbPsu instance.
* @param	UsbIntrId is the interrupt ID of the USB controller
*
* @return	None
*
* @note		None.
*
*****************************************************************************/
This function setups the interrupt system such that interrupts can occur.
This function is application specific since the actual system may or may not
have an interrupt controller.  The USB controller could be
directly connected to a processor without an interrupt controller.
The user should modify this function to fit the application.
This function setups the interrupt system such that interrupts can occur . This function is application specific since the actual system may or may not have an interrupt controller . The USB controller could be directly connected to a processor without an interrupt controller . The user should modify this function to fit the application .
void SetupInterruptSystem(struct XUsbPsu *InstancePtr, u16 UsbIntrId)
{
	xPortInstallInterruptHandler(UsbIntrId,
			(XInterruptHandler)XUsbPsu_IntrHandler,
			(void *)InstancePtr);
	XUsbPsu_EnableIntr(InstancePtr, XUSBPSU_DEVTEN_EVNTOVERFLOWEN |
			XUSBPSU_DEVTEN_WKUPEVTEN |
			XUSBPSU_DEVTEN_ULSTCNGEN |
			XUSBPSU_DEVTEN_CONNECTDONEEN |
			XUSBPSU_DEVTEN_USBRSTEN |
			XUSBPSU_DEVTEN_DISCONNEVTEN);
	vPortEnableInterrupt(UsbIntrId);
}
void SetupInterruptSystem ( struct XUsbPsu * InstancePtr , u16 UsbIntrId ) { xPortInstallInterruptHandler ( UsbIntrId , ( XInterruptHandler ) XUsbPsu_IntrHandler , ( void * ) InstancePtr ) ; XUsbPsu_EnableIntr ( InstancePtr , XUSBPSU_DEVTEN_EVNTOVERFLOWEN | XUSBPSU_DEVTEN_WKUPEVTEN | XUSBPSU_DEVTEN_ULSTCNGEN | XUSBPSU_DEVTEN_CONNECTDONEEN | XUSBPSU_DEVTEN_USBRSTEN | XUSBPSU_DEVTEN_DISCONNEVTEN ) ; vPortEnableInterrupt ( UsbIntrId ) ; }
This function setups the interrupt system such that interrupts can occur.
This function setups the interrupt system such that interrupts can occur .