Part Number: TM4C123GH6PM
Other Parts Discussed in Thread: TM4C123GH6PGE
Tool/software: TI-RTOS
Hi,
We have been using TM4C123GH6PM with TI-RTOS in our several products. A new requirement is to add USB host keyboard support with TI-RTOS.
I can't find any USB host example for TM4C123 with TI-RTOS ( there is one in Tiva-C examples, however), and also found the following in EK_TM4C123GXL.c in all the TM4C123 TI-RTOS example projects.
/*
* =============================== USB ===============================
*/
/*
* ======== EK_TM4C123GXL_initUSB ========
* This function just turns on the USB
*/
void EK_TM4C123GXL_initUSB(EK_TM4C123GXL_USBMode usbMode)
{
/* Enable the USB peripheral and PLL */
SysCtlPeripheralEnable(SYSCTL_PERIPH_USB0);
SysCtlUSBPLLEnable();
/* Setup pins for USB operation */
GPIOPinTypeUSBAnalog(GPIO_PORTD_BASE, GPIO_PIN_4 | GPIO_PIN_5);
if (usbMode == EK_TM4C123GXL_USBHOST) { // <========= here
System_abort("USB host not supported\n");
}
}
Please advise how to get it work or where I should look into. Thanks !
CCS: V6.1.2.00015
TI-RTOS: v 2.16.1.14
Eric