fatfs: Add trim ioctl call, set FF_USE_TRIM as default option.

FF_USE_TRIM is set by default with this commit. Fatfs invokes disk_ioctl
with CTRL_TRIM to erase the sectors calling sdmmc_erase_sectors to choose the right
argument for the erase operation based on media type.
This commit is contained in:
Vamshi Gajjela
2022-03-05 16:35:37 +05:30
parent ffdbeee9f6
commit 964592e189
2 changed files with 30 additions and 1 deletions

View File

@@ -235,7 +235,7 @@
/ f_fdisk function. 0x100000000 max. This option has no effect when FF_LBA64 == 0. */
#define FF_USE_TRIM 0
#define FF_USE_TRIM 1
/* This option switches support for ATA-TRIM. (0:Disable or 1:Enable)
/ To enable Trim function, also CTRL_TRIM command should be implemented to the
/ disk_ioctl() function. */