Part Number: TM4C1294NCPDT
Tool/software: TI-RTOS
The following piece of code is required to run USB under TI RTOS.
/*
* ======== serviceUSBHost ========
* Task to periodically service the USB Stack
*
* USBHCDMain handles the USB Stack's state machine. For example it handles the
* enumeration process when a device connects.
* Future USB library improvement goal is to remove this polling requirement..
*/
static Void serviceUSBHost(UArg arg0, UArg arg1)
{
unsigned int key;
while (true) {
key = GateMutex_enter(gateUSBLibAccess);
USBHCDMain();
GateMutex_leave(gateUSBLibAccess, key);
/* Future enhancement to remove the Task_sleep */
Task_sleep(10);
}
}
The comment says: Future USB library improvement goal is to remove this polling requirement..
What are the plans to implement this since polling in a real time system is not the best solution?
Thanks,
Ed