lpcware

lpcopen usblib rtos integration

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by wella-tabor on Wed Jul 03 00:42:12 MST 2013

Hello,


I am using an RTOS with 1 ms tick rate (locked). Because "The USB task must be serviced within 30ms while in device mode, or within 1ms while in host mode.", it is almost impossible to get on timings. I am not sure if a creation of a task with low priority and for(;;) loop is a good solution. Is it possible to execute USB_USBTask() right after the SOF interrupt?


E.g.


<code>RTOS_USB_Task(){ for(;;){ wait_for_SOF_int(); USB_USBTask() } </code>


Best,


Martin


 


Usb configuration: host


Processor: LPC1788

Outcomes