Quantcast
Channel: Forum - Recent Threads
Viewing all articles
Browse latest Browse all 5781

USB Mass Storage media_status (device is busy notification)

$
0
0

Hello!

 

Where can I find possible values for media_status, returned by USBX mass storage callback functions?

 

Or, more specifically, how do I notify USB host that mass storage is temporarely not ready? My device using shared resource (QSPI flash) for mass storage, and I need to notify host when this resource is busy (during erase operations for example), but will be available soon. Currently I use mutex with TX_WAIT_FOREVER, but I'm not sure if it's correct approach.

 

Thanks in advance,

Eighth


Viewing all articles
Browse latest Browse all 5781

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>