FS_Init()
FS_ERR FS_Init (FS_CFG *p_fs_cfg);
File | Called from | Code enabled by |
---|---|---|
| Application | N/A |
Initializes µC/FS and must be called prior to calling any other µC/FS API functions.
Arguments
p_fs_cfg
Pointer to file system configuration (see FS_CFG
).
Returned Value
FS_ERR_NONE
, if successful;
Specific initialization error code, otherwise.
The return value SHOULD be inspected to determine whether µC/FS is successfully initialized or not. If µ/FS did not successfully initialize, search for the returned error in fs_err.h and source files to locate where µC/FS initialization failed.
Notes/Warnings
- µC/LIB memory management function
Mem_Init()
must be called prior to calling this function.