Skip to content

Commit 67e7e5b

Browse files
committed
[sg fromlist] fat_fs: Add reentrant zephyr support
This commit enables zephyr to configure the FatFs FF_FS_REENTRANT option and support fs actions from multiple threads. CONFIG_FS_FATFS_REENTRANT enables the option and provides zephyr mutex wrappers. R2D2-8240 FS reentrant zephyrproject-rtos#51484 Signed-off-by: Nicola Ochsenbein <[email protected]>
1 parent 8a441de commit 67e7e5b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

subsys/fs/Kconfig.fatfs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,11 @@ config FS_FATFS_WINDOW_ALIGNMENT
155155
that, in worst scenario, value provided here may cause FATFS
156156
structure to have size of twice the value
157157

158+
config FS_FATFS_REENTRANT
159+
bool "FatFs reentrant"
160+
help
161+
Enable the re-entrancy (thread safe) option of the FatFs
162+
158163
endmenu
159164

160165
endif # FAT_FILESYSTEM_ELM

west.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ manifest:
4545
groups:
4646
- tools
4747
- name: fatfs
48-
revision: a30531af3a95a9a3ea7d771ea8a578ebfed45514
48+
revision: 44c0080876f28a193085078c7381908f7fbc1bbc
4949
path: modules/fs/fatfs
5050
groups:
5151
- fs

0 commit comments

Comments
 (0)