FatFS
LEAVE_MKFS
is only used within FatFS.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Arguments
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
FatFS
LEAVE_MKFS
LEAVE_MKFS macro
Syntax
Show:
Summary
Declaration
from
ff.c:555
#define
LEAVE_MKFS
(
res
)
{
if
(
!
work
)
ff_memfree
(
buf
)
;
return
res
;
}
Arguments
Argument
res
Examples
References
from
examples
Code
Location
#define
LEAVE_MKFS
(
res
)
return
res
ff.c:508
#define
LEAVE_MKFS
(
res
)
return
res
ff.c:543
#define
LEAVE_MKFS
(
res
)
{
if
(
!
work
)
ff_memfree
(
buf
)
;
return
res
;
}
ff.c:555
if
(
disk_read
(
pdrv
,
buf
,
0
,
1
)
!=
RES_OK
)
LEAVE_MKFS
(
FR_DISK_ERR
)
;
/* Load MBR */
ff.c:5991
if
(
ld_word
(
buf
+
BS_55AA
)
!=
0xAA55
)
LEAVE_MKFS
(
FR_MKFS_ABORTED
)
;
/* Check if MBR is valid */
ff.c:5992
if
(
ipart
>
4
||
pte
[
PTE_System
]
==
0
)
LEAVE_MKFS
(
FR_MKFS_ABORTED
)
;
/* No partition? */
ff.c:6019
if
(
disk_ioctl
(
pdrv
,
GET_SECTOR_COUNT
,
&
sz_vol
)
!=
RES_OK
)
LEAVE_MKFS
(
FR_DISK_ERR
)
;
ff.c:6024
if
(
sz_vol
<
MIN_FAT12_SEC_VOL
)
LEAVE_MKFS
(
FR_MKFS_ABORTED
)
;
/* Check if volume size is >= MIN_FAT12_SEC_VOLs */
ff.c:6041
if
(
sz_vol
<
(
MIN_FAT12_SEC_VOL
+
1
)
)
LEAVE_MKFS
(
FR_MKFS_ABORTED
)
;
/* Check if volume size is >= (MIN_FAT12_SEC_VOL+1)s */
ff.c:6043
if
(
!
(
fsopt
&
FM_FAT
)
)
LEAVE_MKFS
(
FR_INVALID_PARAMETER
)
;
/* no-FAT? */
ff.c:6063
if
(
n_clst
<=
MAX_FAT16
||
n_clst
>
MAX_FAT32
)
LEAVE_MKFS
(
FR_MKFS_ABORTED
)
;
ff.c:6243
if
(
sz_vol
<
b_data
+
pau
*
MIN_FAT12_DATA_SEC
-
b_vol
)
LEAVE_MKFS
(
FR_MKFS_ABORTED
)
;
/* Too small volume? */
ff.c:6275
LEAVE_MKFS
(
FR_MKFS_ABORTED
)
;
ff.c:6280
LEAVE_MKFS
(
FR_MKFS_ABORTED
)
;
ff.c:6292
LEAVE_MKFS
(
FR_MKFS_ABORTED
)
;
ff.c:6296
if
(
fsty
==
FS_FAT12
&&
n_clst
>
MAX_FAT12
)
LEAVE_MKFS
(
FR_MKFS_ABORTED
)
;
/* Too many clusters for FAT12 */
ff.c:6299
if
(
disk_write
(
pdrv
,
buf
,
b_vol
,
1
)
!=
RES_OK
)
LEAVE_MKFS
(
FR_DISK_ERR
)
;
/* Write it to the VBR sector */
ff.c:6343
if
(
disk_write
(
pdrv
,
buf
,
sect
,
(
UINT
)
n
)
!=
RES_OK
)
LEAVE_MKFS
(
FR_DISK_ERR
)
;
ff.c:6372
if
(
disk_write
(
pdrv
,
buf
,
sect
,
(
UINT
)
n
)
!=
RES_OK
)
LEAVE_MKFS
(
FR_DISK_ERR
)
;
ff.c:6382
if
(
disk_read
(
pdrv
,
buf
,
0
,
1
)
!=
RES_OK
)
LEAVE_MKFS
(
FR_DISK_ERR
)
;
/* Read the MBR */
ff.c:6406
if
(
disk_write
(
pdrv
,
buf
,
0
,
1
)
!=
RES_OK
)
LEAVE_MKFS
(
FR_DISK_ERR
)
;
/* Write it back to the MBR */
ff.c:6408
if
(
res
!=
FR_OK
)
LEAVE_MKFS
(
res
)
;
ff.c:6414
if
(
disk_ioctl
(
pdrv
,
CTRL_SYNC
,
0
)
!=
RES_OK
)
LEAVE_MKFS
(
FR_DISK_ERR
)
;
ff.c:6418
LEAVE_MKFS
(
FR_OK
)
;
ff.c:6420
LEAVE_MKFS
(
res
)
;
ff.c:6454
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
All items filtered out
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out