Versions Compared

Key

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


Code Block
languagecpp
FS_PARTITION_NBR  FSDev_PartitionAdd (CPU_CHAR    *name_dev,

...


                                      FS_SEC_QTY   partition_size,

...


                                      FS_ERR      *p_err);


File

Called from

Code enabled by

fs_dev.c

Application

FS_CFG_PARTITION_EN and not FS_CFG_RD_ONLY_EN

Adds a partition to a device. See also section 7-5 “Partitions” Partitions.

Arguments

name_dev

Device name

...

Or device access error (see Device µC/FS Error Codes).

Returned Value

The index of the created partition. The first partition on the device has an index of 0. FS_INVALID_PARTITION_NBR is returned if the function fails to add the partition.

Notes/Warnings

  1. Device state change will result from device I/O, not present or timeout error.