#include <rtl.h>
int finit (
const char *drive); /* drive to initialize */
Description
The function finit initializes the Flash File System and
must be called before invoking any other file system function. The
parameter drive is a character pointer specifying
the drive to initialize.
The function is included in the library RL-FlashFS. The prototype
is defined in the file rtl.h.
The following values are allowed for drive:
drive
Initialized Drives
""
Default System drive as defined in the file
File_Config.c
#include <rtl.h>
void main (void) {
finit (NULL); /* Initialize all enabled drives. */
}
#include <rtl.h>
#include <stdio.h>
void main (void) {
if (finit ("M") != 0) {
printf ("Initialization failed.\n");
printf ("The drive is not enabled in the file 'File_Config.h'\n");
}
}
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.