Hello.
I'm trying to alter the example USB MSC driver from the Processor SDK to read/write blocks from the SD card rather than the RAMDISK. The problem I'm having is that my SD card read/write API needs to execute in the Task context but the USB handlers are executing in the Hwi context. In fact the entire driver executes in the Hwi context as far as I can tell. Normally, I would Event_post from the Hwi context to notify an Event_pend'ing Task but in this case it is really not clear how to asynchronously callback into the USB MSC driver when the Task-processing is finished (i.e. a block has been read and is ready to be sent).
Does anyone have any advice?
Kind regards
Brian