Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Code Block
languagecpp
void  FSDev_PartitionInit (CPU_CHAR    *name_dev,

...


                           FS_SEC_QTY   partition_size,

...


                           FS_ERR      *p_err);


File

Called from

Code enabled by

fs_dev.c

Application

not FS_CFG_RD_ONLY_EN

Initialize the partition structure on a device. See also section 7-5 “Partitions”also Partitions.

Arguments

name_dev

Device name.

...

Or device access error (see section B-4 “Device Error Codes” µC/FS Error Codes).

Returned Value

None.

Notes/Warnings

  1. Function blocked if a volume is open on the device. All volume (and files) must be closed prior to initializing the partition structure, since it will obliterate any existing file system.
  2. Device state change will result from device I/O, not present or timeout error.