diff options
Diffstat (limited to 'src/class/msc/msc_device.c')
| -rw-r--r-- | src/class/msc/msc_device.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/class/msc/msc_device.c b/src/class/msc/msc_device.c index f32a1f833..dc3d47dfd 100644 --- a/src/class/msc/msc_device.c +++ b/src/class/msc/msc_device.c @@ -110,6 +110,11 @@ static inline uint16_t rdwr10_get_blockcount(uint8_t const command[]) return __be2n_16(block_count);
}
+bool tud_msc_ready(void)
+{
+ return ( _mscd_itf.ep_in != 0 ) && ( _mscd_itf.ep_out != 0 ) ;
+}
+
//--------------------------------------------------------------------+
// USBD-CLASS API
|
