void USBDCallbacks_Initialized(void) { #if defined(BOARD_USB_UDP) // Configure and enable the UDP interrupt AIC_ConfigureIT(AT91C_ID_UDP, 0, USBD_InterruptHandler); AIC_EnableIT(AT91C_ID_UDP); #elif defined(BOARD_USB_UDPHS) // Configure and enable the UDPHS interrupt AIC_ConfigureIT(AT91C_ID_UDPHS, 0, USBD_InterruptHandler); AIC_EnableIT(AT91C_ID_UDPHS); #else #error Unsupported controller. #endif }