diff --git a/portable/Zynq.2019.3/ff_sddisk.c b/portable/Zynq.2019.3/ff_sddisk.c index fc33b22..f12310f 100644 --- a/portable/Zynq.2019.3/ff_sddisk.c +++ b/portable/Zynq.2019.3/ff_sddisk.c @@ -432,17 +432,19 @@ static CacheMemoryInfo_t * pucGetSDIOCacheMemory( BaseType_t xPartition ) } /*-----------------------------------------------------------*/ -/* Initialise the SDIO driver and mount an SD card */ -BaseType_t xMountFailIgnore = 0; +FF_Disk_t * FF_SDDiskInit( const char * pcName ) +{ + return FF_SDDiskInitWithSettings( pcName, pdFALSE, 0U ); +} -/* _HT_ : the function FF_SDDiskInit() used to mount partition-0. - * It would be nice if it has a parameter indicating the partition - * number. - * As for now, the partion can be set with a global variable 'xDiskPartition'. +/** + * Initialize the SD Disk with configurable settings + * @param[in] uxMountFailIgnore ignore fails on mount, set to true when have systems where may not have initialized mount + * @param[in] uxDiskPartition the disk partition number to use */ -BaseType_t xDiskPartition = 0; - -FF_Disk_t * FF_SDDiskInit( const char * pcName ) +FF_Disk_t * FF_SDDiskInitWithSettings( const char * pcName, + BaseType_t xMountFailIgnore, + BaseType_t xDiskPartition ) { FF_Error_t xFFError; BaseType_t xPartitionNumber = xDiskPartition;