refractor msc host app examples
This commit is contained in:
3
vendor/fatfs/diskio.h
vendored
3
vendor/fatfs/diskio.h
vendored
@@ -84,7 +84,8 @@ DRESULT disk_ioctl (BYTE pdrv, BYTE cmd, void* buff);
|
||||
static inline bool disk_is_ready(BYTE pdrv);
|
||||
static inline bool disk_is_ready(BYTE pdrv)
|
||||
{
|
||||
return (disk_status(pdrv) & (STA_NOINIT | STA_NODISK)) == 0;
|
||||
return (pdrv < TUSB_CFG_HOST_DEVICE_MAX) &&
|
||||
( (disk_status(pdrv) & (STA_NOINIT | STA_NODISK)) == 0 );
|
||||
}
|
||||
|
||||
|
||||
|
3
vendor/fatfs/ffconf.h
vendored
3
vendor/fatfs/ffconf.h
vendored
@@ -9,6 +9,7 @@
|
||||
#ifndef _FFCONF
|
||||
#define _FFCONF 82786 /* Revision ID */
|
||||
|
||||
#include "tusb_config.h"
|
||||
|
||||
/*---------------------------------------------------------------------------/
|
||||
/ Functions and Buffer Configurations
|
||||
@@ -127,7 +128,7 @@
|
||||
/ Physical Drive Configurations
|
||||
/----------------------------------------------------------------------------*/
|
||||
|
||||
#define _VOLUMES 1
|
||||
#define _VOLUMES TUSB_CFG_HOST_DEVICE_MAX
|
||||
/* Number of volumes (logical drives) to be used. */
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user