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
Hello,
what about to write to the forum what steps should be performed to make the usblib more RTOS friendly?
Here is one of them:
- Replace the HcdDelayMS(uint32_t delay), file HCD.c, by your RTOS function to wait n milliseconds.
In the course of time I'll add more and more.
Best
Martin