diff options
| author | hathach <[email protected]> | 2018-07-25 12:24:16 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-07-25 12:26:08 +0700 |
| commit | 2729937e87feef3baa45113e220feddd82fde722 (patch) | |
| tree | 9a747aaae8658002592fb0b63994e466098e5dd8 /src/class/msc/msc_device.c | |
| parent | c5a41ac9d8d899be40c1234fcecf325423d720cf (diff) | |
add tud_msc_ready()
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
|
