I have been trying to get USB OTG working on my DK-TM4C129X dev kit, and found what looks like a mistake in the sample code. Starting at line 252 of usb_otg_mouse.c (in the main() function) there is the following code:
// Initialize the USB controller for dual mode operation with a 2ms polling
// rate.
//
USBOTGModeInit(0, 2000, g_pui8HCDPool, HCD_MEMORY_SIZE);
The description for the second parameter of the USBOTGModeInit() function in the USBLIB UG states that the value is supposed to be in ms. Yet the function is being called with a value of 2000 rather than 2, which would be needed to match the comment that says it is being set up for 2 ms polling.
Seems like the comment should either say you are initializing the controller for 2 seconds polling, or the parameter should be changed to 2.
Regards,
Dave