Other Parts Discussed in Thread: OMAPL138, OMAP-L138
Tool/software: TI-RTOS
In pdk_omapl138_1_0_5/packages/ti/drv/usb/src/usb_func/device/usb_dev_dman.c I see
/** \brief Global variable to contain the request which is to be made to * the lower layer driver. */ usbDevRequest_t req;
Which pretty much means there can only be one request "in flight" at a time.
I'm using the USB bulk device, and I'd like to be doing reads in one task while doing writes in another task, because I'll be constantly producing data, and host writes will be only occasional.
It seems this global request variable will be clobbered by the two tasks.
Is my design goal reasonable? (i.e. would the hardware support it if the driver were written properly?)
Or do I just not understand how USB Bulk devices are supposed to work?